20,213 Total Views 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 NOT NULL…
how to drop a stored procedure in sql server
433 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
1,106 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,818 Total Views This recipe will explain with Step by step example of how to insert result of a store procedure into temporary table in sql…
how to replace null with 0 in sql server
1,724 Total Views Problem: Replace null value with 0 in sql server You are selecting rows from a table, and your results contain NULL values. You…
how to check table size in sql server
395 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
445 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
459 Total Views This recipe will demonstrate how to Fix Sql Server Msg 8152, Level 16, State 14, Line 1 String or binary data would be…
Cannot Insert Explicit Value For Identity Column In Table
420 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,444 Total Views, 2 views today Sql Drop Temp Table If Exists: Drop a temporary table if it is already created or exists. Then you can create…