Enforcing T-SQL quality with SSDT Analysis Extensions
What? Simply put, it is possible to include checks in the SSDT (Sql Server Data Tools) build process - you come...
2014-12-30
220 reads
What? Simply put, it is possible to include checks in the SSDT (Sql Server Data Tools) build process - you come...
2014-12-30
220 reads
I got an email recently where someone asked me how they can refresh a dev environment with Powershell. I guess...
2015-01-01 (first published: 2014-12-29)
9,388 reads
It’s that time of year when people look back on the past year(s) and think about what they have and...
2014-12-29
818 reads
I work for a large organization that over the last few years has been doing a LOT of reorgs. And...
2014-12-31 (first published: 2014-12-29)
5,877 reads
So I’ve written my second article for SQL Shack. This time instead of an overview of auditing options in sql...
2014-12-29
1,219 reads
As we know, when we create database on SQL Server instance, SQL Server engine sets the login that created the database as the default database owner. This gives the...
2014-12-28
12 reads
As we know, when we create database on SQL Server instance, SQL Server engine sets the login that created the...
2014-12-28
1,881 reads
In last TIP #78 we have discussed Change tracker (CT) which was introduced in SQL SERVER 2008. CT feature only...
2014-12-27
1,047 reads
TSQL: To find number of words in a given string
Download the codehttps://gallery.technet.microsoft.com/T-SQL-How-to-Find-Number-533b6b39
DECLARE @DemoTable Table
(Col varchar(500));
INSERT INTO @DemoTable (Col)VALUES ('JOHN...
2014-12-30 (first published: 2014-12-26)
8,360 reads
For more Information refer Technet Article
Introduction
sp_spaceused is one of the system stored procedure used frequently by many DBA’s that reveals amount...
2014-12-26
1,057 reads
A RAG pipeline that answers questions in the demo is not the same thing...
By Steve Jones
“A multitude of bad ideas is necessary for one good idea” – from Excellent...
Yesterday I gave a talk for MSSQLTips called “Building a DBA Agent for Your...
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...
Comments posted to this topic are about the item Looking for New Blood
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