Jason Brimhall


Blog Post

On the Fifth Day…

Today we will have a quick change of pace.  This will be less about maintenance and more about internals. Today’s topic is one of particular interest to me as...

2012-12-17

16 reads

Blog Post

On the Fourth Day…

We have come to the fourth day in this mini-series.  So far I have laid down some under-carriage maintenance for one of our favorite databases.  That database being the...

2012-12-16

15 reads

Blog Post

On the Third Day…

Mais Oui! But of course, we must have some french hens for today!  Today we have the third day of pre-Christmas.  And as was mentioned we have more undercarriage...

2012-12-15

11 reads

Blog Post

On the Second Day…

  Yesterday, I introduced the 12 Days of pre-Christmas.  In that first article, I gave you a gift to help maintain your msdb undercarriage.  Today I want to continue...

2012-12-14

20 reads

Blog Post

On the First Day…

Many of us have heard the song “The Twelve Days of Christmas.”  Some are familiar with how that song has some connection with the Holiday season for Christians.  Fewer...

2012-12-13

24 reads

Blogs

What's New in SQL Server for the Developer: SQL Server 2016

By

Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...

The DBA Moves Up the Stack: From SQL Server on a VM to Azure SQL and Managed Instance

By

Note: This is more of a note to myself than an attempt to preach...

AI Center of Excellence: How to build one in 90 days

By

A practical guide to building an AI Center of Excellence, from choosing the right...

Read the latest Blogs

Forums

Black Friday Gadgets

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Black Friday Gadgets

Protecting Multi-Step Data Changes with TRY...CATCH and XACT_ABORT in SQL Server

By Imran2629

Comments posted to this topic are about the item Protecting Multi-Step Data Changes with...

Switching Schema III

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Switching Schema III

Visit the forum

Question of the Day

Switching Schema III

I run these queries:

SELECT COUNT(*) FROM dbo.Beer
SELECT COUNT(*) FROM etl.beer
I get 25 as the result for dbo.beer and 1 for the result for etl.beer. Both tables have identical sructures and both of these are nonpartitioned tables. I run this code:
ALTER TABLE dbo.beer switch TO etl.beer
go
SELECT COUNT(*) FROM dbo.Beer
SELECT COUNT(*) FROM etl.beer
What happens?

See possible answers