17,353 Total Views, 66 views today There are different ways to check whether specific column is exists in a sql server table Solution:1 IF COL_LENGTH('schemaName.tableName', 'columnName') IS…
Author: Solaiman
how to drop a stored procedure in sql server
331 Total Views You are no longer using a stored procedure and want to drop it from database. Drop stored procedure from database using DROP PROCEDURE…
how to drop a store procedure if exists in sql server
814 Total Views You are no longer using a stored procedure and want to drop it from database. Drop stored procedure from database using DROP PROCEDURE…
how to insert result of stored procedure into temporary table in sql server
1,007 Total Views, 2 views today This recipe will explain with Step by step example of how to insert result of a store procedure into temporary table…
how to replace null with 0 in sql server
1,295 Total Views, 1 views today Problem: Replace null value with 0 in sql server You are selecting rows from a table, and your results contain NULL…
how to check table size in sql server
313 Total Views SQL Server provides a built-in stored procedure sp_spaceused. By executing this stored procedure you can easily find the size of a table, including…
how to rename table in sql server
370 Total Views Rename table name in Sql Server By using sp_rename stored procedure you can rename table name. Syntax: exec sp_rename ‘Schema_Name.Old_Table_Name’, ‘New_Table_Name’; Example: USE…
String or binary data would be truncated
380 Total Views, 1 views today This recipe will demonstrate how to Fix Sql Server Msg 8152, Level 16, State 14, Line 1 String or binary data…
Cannot Insert Explicit Value For Identity Column In Table
342 Total Views This recipe will demonstrate how to Fix Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in…
Sql Drop Temp Table If Exists
1,146 Total Views, 3 views today Sql Drop Temp Table If Exists: Drop a temporary table if it is already created or exists. Then you can create…