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
514 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
514 reads
Although it is a old feature for those who knows ORACLE but for SQL server developers it is a new...
2014-12-10
265 reads
When you do SQL Server maintenance one of important aspect is available space on server drive because your SQL SERVER...
2014-12-06
334 reads
You are reading this post just because of two reason
1) You are curious whether it is possible or not...
2014-11-20
282 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
454 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
327 reads
Suppose, sometimes you just need entry in the table with all the default values.
For example you have a Student...
2014-11-10
210 reads
Suppose, We are working on a stored procedure in which some complex operation is going. We are fetching some value...
2014-11-09
284 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
294 reads
Recently , one of my friends shared that some interviewer asked him a question “How to copy table structure only from...
2014-11-03
747 reads
By HeyMo0sh
As someone who works in DevOps, I’m always focused on creating systems that are...
By Brian Kelley
I am guilty as charged. The quote was in reference to how people argue...
By Steve Jones
Learn how to tie a bowline knot. Practice in the dark. With one hand....
Comments posted to this topic are about the item Restoring On Top II
Comments posted to this topic are about the item SQL Art 2: St Patrick’s...
Comments posted to this topic are about the item Breaking Down Your Work
I have a database, DNRTest, that has a number of tables and other objects in it. The other day, I was trying to mock up a test and ran this code on the same server:
-- run yesterday CREATE DATABASE DNRTest2 GO USE DNRTest2 GO CREATE TABLE NewTable (id INT) GOToday, I realize that I need a copy of DNRTest for another mockup, and I run this:
-- run today USE Master BACKUP DATABASE DNRTest TO DISK = 'dnrtest.bak' GO RESTORE DATABASE DNRTest2 FROM DISK = 'dnrtest.bak' WITH REPLACEWhat happens? See possible answers