Hello,
I am trying to automate a procedure and the user would like to have the RowID column numbered 1 thru 300 each time this procedure is run.
Right now I have the procedure in test and I perform the commands
ALTER TABLE tmpGeneralLedger DROP COLUMN RowID
ALTER TABLE tmpGeneralLedger ADD RowID INT IDENTITY(1,1)
It works the way I want but the DBA has the production database tighten down and he said that the Alert Table command may not work.
Is there something else I can do to get the proper numbering of the RowID column?
Thank you,
TomR100
I am trying to automate a procedure and the user would like to have the RowID column numbered 1 thru 300 each time this procedure is run.
Right now I have the procedure in test and I perform the commands
ALTER TABLE tmpGeneralLedger DROP COLUMN RowID
ALTER TABLE tmpGeneralLedger ADD RowID INT IDENTITY(1,1)
It works the way I want but the DBA has the production database tighten down and he said that the Alert Table command may not work.
Is there something else I can do to get the proper numbering of the RowID column?
Thank you,
TomR100