I have a stored procedure in which I reset the indentity field using the dbcc checkident ("TableName",reseed,0) command.
Everything works as expected but I am having something strange happen with a few of my customer when they run the stored procedure.
99% are able to run the stored procedure calling the command with no issues but there are a few when trying to run the stored procedure get a msg returned:
Checking identity information: current identity value '40', current column value '0'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.
This return message causes the calling program to bomb because instead of a recordset, the stored procedure is returning this message.
I know this can be resolve by simply adding the 'with no_infomsgs' at the end of the DBCC checkident call but does anyone have any idea why this would not occur with all of my customers?
Is there a setting within SQL that they may be missing?
The SQL versions I am working with are 2000 and 2005.
Anyone with any ideas?
Everything works as expected but I am having something strange happen with a few of my customer when they run the stored procedure.
99% are able to run the stored procedure calling the command with no issues but there are a few when trying to run the stored procedure get a msg returned:
Checking identity information: current identity value '40', current column value '0'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.
This return message causes the calling program to bomb because instead of a recordset, the stored procedure is returning this message.
I know this can be resolve by simply adding the 'with no_infomsgs' at the end of the DBCC checkident call but does anyone have any idea why this would not occur with all of my customers?
Is there a setting within SQL that they may be missing?
The SQL versions I am working with are 2000 and 2005.
Anyone with any ideas?