Quick tip: Querying database metadata with DBCC DBINFO
Page 9 in file 1 (of the primary filegroup) in a SQL Server database is the header page and contains...
2012-09-11
2,140 reads
Page 9 in file 1 (of the primary filegroup) in a SQL Server database is the header page and contains...
2012-09-11
2,140 reads
A lot of a DBA’s time is spent managing and investigating transaction log files.
A commonly used tool is the command:
DBCC...
2012-09-10
2,790 reads
In SSAS we build what’s known as a UDM, or Unified Dimensional Model, over the top of a database schema,...
2012-08-01
7,095 reads
“You’re only as good as your last restore”
I’ve no idea who originally said that – but it probably qualifies as DBA...
2012-08-01
1,044 reads
Analysis Services databases should be backed up at regular intervals like any other database. Here are the basics.
Using the GUI:...
2012-07-24 (first published: 2012-07-19)
2,764 reads
SQL Server stores its authentication mode in the registry. The registry can be read and updated using the T-SQL commands...
2012-07-11
1,310 reads
I’ve been doing a fair bit of research and investigation into the behavior of the plan cache recently. So I was concerned...
2012-06-28 (first published: 2012-06-25)
3,795 reads
An interesting case arose at work the other day. SAN issues had caused SQL Server to shutdown and it was...
2012-06-20
763 reads
Service Broker is SQL Server’s internal messaging system. It has been designed as an asynchronous, reliable and transactional messaging system...
2012-06-13 (first published: 2012-06-07)
10,649 reads
I was curious to look at the effect of database options, on the SQL server plan cache.
I have restored the...
2012-05-23
1,180 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