Partitioning Relational Data – (Part – 3)
This is the third part of the three part article series on partitioning relational data.
In the first part of this...
2013-02-23
574 reads
This is the third part of the three part article series on partitioning relational data.
In the first part of this...
2013-02-23
574 reads
Checkout the third part of my XML support and SQL Server article series here.
In this part, I talked about the...
2013-02-11
692 reads
Today, I received an email from the development team complaining why they have not received any of the SQL Agent...
2013-02-11
4,504 reads
This is the second part of the three part article series on partitioning relational data.
In the first part of this...
2013-02-05
713 reads
From time to time, I see the following question posted on various SQL forums asking how we can determine the...
2013-01-14
4,390 reads
A common requirement for dealing with large datasets is the ability to split the data into smaller blocks to help...
2013-01-08
1,023 reads
When creating XML documents, you must work from a design that defines the structure of the document. This strengthens the...
2013-01-08
1,002 reads
You can use the sp_spaceused system-stored procedure to return space usage information about a database or a table within a...
2013-01-02
1,521 reads
Database infrastructure security is extremely crucial for any organization, which is why Microsoft has invested heavily in SQL Server security...
2012-12-11
1,190 reads
Today, I received a phone call from a friend who is thinking to downgrade the database hosted in SQL Server...
2012-12-11
678 reads
Creating a Fabric workspace takes about 30 seconds. Restructuring workspaces after people have built...
By Steve Jones
It’s a small change, but a handy one. Flyway Desktop (FWD) now includes the...
By Steve Jones
Software is hard. While I love our Lucid Gravity, I realize that they are...
Comments posted to this topic are about the item Adding new column with DEFAULT...
Comments posted to this topic are about the item Advanced Deployment Scenarios: Stairway to...
Comments posted to this topic are about the item You Need a DBA Pipeline
Which number did the two COUNT(*) return:
DROP TABLE IF EXISTS #tmp CREATE TABLE #tmp (id INT NOT NULL) INSERT INTO #tmp (id) SELECT gs.value FROM GENERATE_SERIES(1, 5) AS gs ALTER TABLE #tmp ADD my_value INT NOT NULL CONSTRAINT df_tmp_my_value DEFAULT 1 SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1 ALTER TABLE #tmp DROP CONSTRAINT df_tmp_my_value ALTER TABLE #tmp ADD CONSTRAINT df_tmp_my_value DEFAULT 2 FOR my_value SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1See possible answers