dynamic sql and a char crash
Dynamic SQL can be helpful, but a pain to debug. I spent hours today working on figuring out why my...
2013-04-18
446 reads
Dynamic SQL can be helpful, but a pain to debug. I spent hours today working on figuring out why my...
2013-04-18
446 reads
One of the goals early on with SQL Saturday was to spread them far and wide. Andy Warren and I...
2013-04-18
793 reads
There has been lots of speculation in the SQL Server community as to what the official name of the next...
2013-04-18
1,281 reads
I went to the PASS Business Analytics Conference last week, and had an absolute blast. I presented two sessions, and...
2013-04-18
1,191 reads
Introduction
A few months back, I was asked how long a particular nightly process took to run. It was a super...
2013-05-01 (first published: 2013-04-18)
6,555 reads
Populating default dates in SSRS can be helpful to save the user from having to constantly input the date range...
2013-04-18
111,274 reads
Copy and Paste the below content in Set-FindandReplaceString.PS1. Please read the instructions carefully. Try to do a dry run on some...
2013-04-17
715 reads
Each release of SQL Server is chalk full of new features and an assorted amount of bells and whistles. Some...
2013-05-03 (first published: 2013-04-17)
3,225 reads
This past Saturday I had the pleasure of speaking at one of the largest SQL Saturdays I have ever attended...
2013-04-17
579 reads
{Start Circus bumper music here} LADIES and GENTLEMEN; SQL SERVER
PROFESSIONALS of ALL AGES, Come one, come all!
Get ready for a...
2013-04-17
1,241 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...
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...
Comments posted to this topic are about the item Data Lost in the Cloud
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