Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

PROBLEM WITH DBCC CHECKIDENT

$
0
0

Hello,
I'm working with SQLSERVER 2008 R2, and I need use the DBCC CHECKIDENT for reseed an identity field

DBCC CHECKIDENT(@TabbleName, RESEED, @newSeedValue); 

This statement does not give any result when the reference table has been never used. 

EXAMPLE: 

DBCC CHECKIDENT('Tabella1', RESEED, 1000); 

Result:Checking identity information: current identity value 'NULL', current column value '1000 '. 
etc..

But in truth, the statement is not effective. 

anyone can help me please?
Thank you very much


Roberto Tomassini


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>