Shredding a simple xml structure to a single row flat table
I was helping out a user on the forums the other day where they were asking questions about shredding an...
2012-05-22 (first published: 2012-05-16)
5,401 reads
I was helping out a user on the forums the other day where they were asking questions about shredding an...
2012-05-22 (first published: 2012-05-16)
5,401 reads
In order to query the configuration settings of a server you can run this sproc:
exec sp_configureOn a default install of...
2012-05-16
1,138 reads
Over the past several months, Dell has been rolling out a number of new 12th generation servers that all use...
2012-05-16
2,256 reads
SQL Rally 2012 Recap and Session Files
Dallas Convention Center
SQL Rally 2012 was hosted by the North Texas SQL Server User...
2012-05-15
1,045 reads
When ad hoc queries are executed in sql server, if it is executed without parameters, and it is simple, SQL...
2012-05-15
4,922 reads
Session Files from SQL Saturday #107 Houston
Houston Skyline
SQL Saturday Houston was a great event hosted by the Houston Area SQL...
2012-05-15
1,267 reads
I was fortunate enough to get to present not 1 but 2 sessions at SQLRally 2012 in Dallas last week. ...
2012-05-15
755 reads
Cloud computing doesn’t seem to have any great definition. Like the physical structures is is named for, it is amorphous,...
2012-05-15
1,463 reads
Denali – Day 15: Support for Windows Server Core
Windows Server Core: Microsoft Server has so many features which is not required...
2012-05-15
972 reads
Replication is one of the more complex of the SQL native “HA/DR” technologies. There are a lot of moving parts....
2012-05-15
2,287 reads
By Steve Jones
I was experimenting with CHOOSE() recently after I was asked a question. In a...
By DesertDBA
I did not expect 27 responses to my T-SQL Tuesday #204 invitation, but it...
Should you adopt an off-the-shelf AI tool, partner with a specialist, build in-house, or...
Has anyone ever seen this before? I have sysadmin permission on a server. I...
Comments posted to this topic are about the item Switching Schema II
Comments posted to this topic are about the item A Practical Approach to Automating...
I run this query:
SELECT s.name AS schemaname , o.name AS objectname FROM sys.objects o INNER JOIN sys.schemas s ON s.schema_id = o.schema_id WHERE o.name = 'Beer'I get two rows back for the objects, named dbo.beer and etl.beer. Both the tables have identical schemas and are not partitioned. There are 25 rows in dbo.beer and 0 rows in etl.beer. I run this code:
ALTER TABLE dbo.beer switch TO etl.beerWhat happens? See possible answers