if you execute Delete * from yourTbale then you will see what are seeing, Use Truncate instead of delete, eg, Truncate table yourTableName (this will delete all the rows from your table)
|||I reset the autoincrement with this but I've never tried running it from a stored procedure.
DBCC CHECKIDENT(MyTempTable1,RESEED, 0)
You might have to go this route. "EXEC ('DBCC CHECKIDENT(MyTempTable1,RESEED,0)')"
No comments:
Post a Comment