Easy way to reseed identity column ? TIP #77
Sometimes, we may require to reseed identity column of a table due to various reason.
For example we have deleted a...
2014-12-20
542 reads
Sometimes, we may require to reseed identity column of a table due to various reason.
For example we have deleted a...
2014-12-20
542 reads
Although it is a old feature for those who knows ORACLE but for SQL server developers it is a new...
2014-12-10
286 reads
When you do SQL Server maintenance one of important aspect is available space on server drive because your SQL SERVER...
2014-12-06
357 reads
You are reading this post just because of two reason
1) You are curious whether it is possible or not...
2014-11-20
302 reads
Sometimes it may require that you don’t know what will be output of a stored procedure ? what kind of result...
2014-11-19
478 reads
This is very interesting feature and I recently come to know this awesome feature.
Lets understand this by an example below...
2014-11-14
353 reads
Suppose, sometimes you just need entry in the table with all the default values.
For example you have a Student...
2014-11-10
221 reads
Suppose, We are working on a stored procedure in which some complex operation is going. We are fetching some value...
2014-11-09
310 reads
Hello friends,
Many times it happened with me I forgot the instance name of SQL Server.
So here is a small trick...
2014-11-07
314 reads
Recently , one of my friends shared that some interviewer asked him a question “How to copy table structure only from...
2014-11-03
773 reads
By ReviewMyDB
Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...
Note: This is more of a note to myself than an attempt to preach...
A practical guide to building an AI Center of Excellence, from choosing the right...
Comments posted to this topic are about the item Black Friday Gadgets
Comments posted to this topic are about the item Protecting Multi-Step Data Changes with...
Comments posted to this topic are about the item Switching Schema III
I run these queries:
SELECT COUNT(*) FROM dbo.Beer SELECT COUNT(*) FROM etl.beerI 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.beerWhat happens? See possible answers