We have been able to use Control Server Permission since SQL Server 2005. You can use this permission as an alternative to sysadmin. But it …
Read More »MSSQL
How To Create Index in CREATE TABLE Statement in SQL Server
Before SQL Server 2014, we were able to create an index in two ways by right-clicking on SSMS and clicking new index, or using the …
Read More »UPDATE STATISTICS in SQL Server
In this article, I will explain you to how to update your statistics with the UPDATE STATISTICS command by table or database basis. I recommend …
Read More »Send Email When the Blocked Session Count Exceeds a Certain Number in SQL Server
In some cases, sessions are blocked in databases. There are many reasons for blocking. In this article, I will not go into details of this …
Read More »SQL Server Database Mail History Cleanup and Prevent msdb Database From Growing
If you are using SQL Server Database Mail, your msdb database can grow undesirably. We can use the msdb.dbo.sysmail_delete_mailitems_sp procedure to clear Database Mail History. …
Read More »Upgrade SQL Server
First of all, upgrade is an important task. Before upgrading, you must check your database is ready to upgrade with the help of Database Migration …
Read More »Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]
You may receive this error if you want to make a change in SQL Server Configuration Manager. Depending on the version of SQL Server you …
Read More »How To Create a Linked Server To Connect To PostgreSQL From SQL Server
You may want to transfer data to MSSQL from PostgreSQL or send query to PostgreSQL from MSSQL. There are different methods to perform this. One …
Read More »DBCC SHOW_STATISTICS in SQL Server
With DBCC SHOW_STATISTICS we can get detailed information about a statistic. As many of you know, statistics have one of the most important roles in …
Read More »SQL Server Failover Cluster Takes Disk Offline
This is very interesting case. One day we saw that a database is not accessible in a failover cluster due to an offline disk. And …
Read More »