Multiple instances, single query window
Anyone who has been reading my blog for a while should realize that several divisions in my company have been...
2013-02-18
1,035 reads
Anyone who has been reading my blog for a while should realize that several divisions in my company have been...
2013-02-18
1,035 reads
Welcome to Day 18 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-18
806 reads
Two weeks ago I delivered a presentation called “Things You Can Find In The Plan Cache” to the israeli SQL Server...
2013-02-18
501 reads
Actually I’m off to Bellevue this week for the annual MVP Summit that Microsoft puts on each year. This is...
2013-02-18
798 reads
It’s been four years – maybe more – since I last bought a workstation to use for development and lab work. It’s...
2013-02-18
751 reads
If you're located relatively near the Atlanta, Georgia area, I wanted to bring your attention to data warehousing training on...
2013-02-18
1,113 reads
PerformancePoint provides functionality to map several time dimensions across multiple data sources to a ‘Master Time Dimension’. Data sources that...
2013-02-18
1,858 reads
It's easy enough to use sys.foreign_keys and sys.foreign_key_columns to identify foreign keys. But what if you want to script out your foreign...
2013-02-18
1,204 reads
There are a number of articles on dealing with the insertion of binary data into SQL Server using BULK INSERT,...
2013-02-17
20,915 reads
Here's a script to determine, based on your database's foreign key relationships, what the insertion order would be for, say,...
2013-02-17
1,550 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