Don't read success stories, you will only get a message.Read failure stories,you will get some ideas to get success. Dr. APJ Abdul Kalam
Thursday, 17 October 2013
Friday, 11 October 2013
SQL SERVER : RESET Identity Column in SQL SERVER Table
The Following Statement RESET the Identity Column in Required table :
DBCC CHECKIDENT (<table_name>, RESEED, <reseed_value>)
With the help of TRUNCATE statement you can reset the value of identity column but TRUNCATE will the reset value to Identity value which is defined at the time of table creation.
NOTE : IDENTITY Column does not Stand for uniqueness unless you don't define identity column as part of Primary key.
Here is the Sample Code :
DBCC CHECKIDENT (<table_name>, RESEED, <reseed_value>)
With the help of TRUNCATE statement you can reset the value of identity column but TRUNCATE will the reset value to Identity value which is defined at the time of table creation.
NOTE : IDENTITY Column does not Stand for uniqueness unless you don't define identity column as part of Primary key.
Here is the Sample Code :
Subscribe to:
Posts (Atom)
Using Polybase to load data into Azure Synapse Analytics (SQL DW) from Blob Storage
Azure Synapse Analytics supports many data loading methods. The fastest and most scalable way to load is through Polybase technology. Polyba...
-
Azure Synapse Analytics supports many data loading methods. The fastest and most scalable way to load is through Polybase technology. Polyba...
-
The Following Statement RESET the Identity Column in Required table : DBCC CHECKIDENT (<table_name>, RESEED, <reseed_value>) ...
-
Remove a column from a Sql server table use the following code : Syntax : ALTER TABLE [table_name] DROP COLUMN [column_name] E.g. ...