2008-11-06 (first published: 2008-09-12)
1,053 reads
2008-11-06 (first published: 2008-09-12)
1,053 reads
This script will return record count of all user tables from the current database
2008-11-05
1,091 reads
This Store procedure is used to add primary key to all tables in a database, if table does not contain it.
2008-11-04
988 reads
2008-11-04
1,964 reads
Feed it two delimited strings of horizontal data and it returns it back as a vertical table with the two column data in the same synchronized position order.
2008-11-03 (first published: 2008-08-05)
2,237 reads
This SP helps you to find the data file/s and log usage for a given DB
2008-11-01
1,326 reads
Compare SQL code of sp, functions, or triggers. Can run across DB and/or servers. Generates report similar to windif. See details in comments
2008-10-31 (first published: 2008-09-05)
1,131 reads
This utility will find strings in procedures, functions, views, and even check constraints.
2008-10-31
452 reads
for huge data insertion and deletion by avoiding locking you can use partition tables.
2008-10-28
815 reads
2008-10-28 (first published: 2008-07-25)
4,048 reads
By Steve Jones
It’s time for T-SQL Tuesday again and this is a great prompt to start...
How I used AI for this postChatGPT to generate images based on info specifically...
By ReviewMyDB
My T-SQL Tuesday #202 entry for Marlon Ribunal's invitation on memorable SQL Server outages....
Hello everyone, Last week we performed an upgrade of our SQL Server instance, moving...
Comments posted to this topic are about the item Adding new column with DEFAULT
I've got a web application for my side business. I've added a SQL Server...
Which number will the COUNT() return after executing the following statements:
DROP TABLE IF EXISTS #test; CREATE TABLE #test (id INT) INSERT INTO #test (id) SELECT * FROM GENERATE_SERIES(1, 3) AS gs ; ALTER TABLE #test ADD flag BIT CONSTRAINT DF_#test_flag DEFAULT 0; go UPDATE #test SET flag = 0 WHERE id = 1 UPDATE #test SET flag = 1 WHERE id = 2 INSERT INTO #test (id) VALUES (4) SELECT COUNT(*) FROM #test AS t WHERE flag = 0See possible answers