MSSQL Query Blog

Running Large Sized SQL Scripts in SQL Server

Hello everyone, In this article, I will try to give information about running large SQL Scripts in SQL Server. In SQL Server, in some cases, you may want to run SQL scripts that consist of too many queries, but in this case, you may also get an error. You can...

Cursor Changing Schema Name in SQL Server

Hello everyone, In this article, I will provide information on how to write a cursor that changes the schema name in SQL Server. While researching in SQL Server I was wondering how to change all schema names in one go. You can see the sample code for this below. Just...

Function to Clear Special Characters in SQL Server

Hello everyone, In this article, I will try to give information about the function that clears special characters in SQL Server. In SQL Server you may want to clear special characters in some cases. You can easily do this using the function below. CREATE FUNCTION fn_Ozel_Karakterleri_Temizle (@Temp VARCHAR(2000)) RETURNS VARCHAR(2000)...

Finding Unused and Missing Indexes in SQL Server

Hello everyone, In this article, I will try to give information about finding unused and missing Indexes in SQL Server. In SQL Server, in some cases, you may want to find unused and missing Indexes. You can easily do this using the code below. Finding Missing Indexes SELECT TOP 25...

Don`t copy text!