SELECT TOP 5 PERCENT WITH TIES
LinkedIn sent me an email on Monday that said my profile was in the top 5% of viewed profiles in...
2013-02-12
877 reads
LinkedIn sent me an email on Monday that said my profile was in the top 5% of viewed profiles in...
2013-02-12
877 reads
Friends, Life is not easy and every time we cannot create a fresh/new server, environment or a new configuration. What...
2013-02-12
777 reads
Today is day 27 of my series 31 Days of Disaster Recovery, and I want to talk about restoring a...
2013-02-12
1,112 reads
One of the really great things about being married to an MCM is that I can steal recycle his blogs,...
2013-02-12
1,219 reads
Use following script to generate random Passwords
DECLARE @id int,@list varcharSET @list ='abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ23456789.,-_!$@#%^&*'selectreplace(SUBSTRING(CONVERT(varchar(255),NEWID()),8, 8),'-','')as RANDOM
Example:
Suppose you have a table tblUser with columns[id],[userid],[password].
CREATETABLE [dbo].[tblUser]( ...
2013-02-12
4,885 reads
My first official entry for T-SQL Tuesday (my first was a guest post hosted by Kendal Van Dyke (blog|twitter), so I’m not really counting it) is brought to you...
2013-02-12
13 reads
February is a short month… and if you are following the Monday’s you know that today’s the second Monday of the...
2013-02-11
678 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
700 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,514 reads
This past weekend was the first SQL Saturday in New Mexico. I had written about our trip down last week,...
2013-02-11
1,076 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