Microsoft
Software
Hardware
Network
Question : Reset autonumbering in a table automatically
I have been researching resetting autonumber in a table. I understand that the best approach would be to delete the column and when it is readded, the column renumbers rows. This works perfectly, but my users will be running reports off of this table.
Is there a way I can delete a column and re-add it through a query or vba.
The outcome really that when the user presses a button they get a report that runs a query against the table and the table has the new row numbering. I have a really complex query that needs this table row updated each time they run the report. Automating it would be the best!
Answer : Reset autonumbering in a table automatically
You can (and I did) also run the as a Data Definition Query:
ALTER TABLE [tbl_NEXT_OPERATION]] ALTER COLUMN [ROWID] COUNTER(1,1)
What didn't work for you ?
mx
Random Solutions
WCF: can't figure out reliable session error
How to disable the Open File - Security Warning on Windows 7
Options with Importing Pictures and Videos not functioning
somethine or a user is running sql profiler on my sql server 2008 instance - how can i identify the session
SQL Server 2005 Windows 7 64bit
Free Proxy Servers or Services
Issue with performance of a SQL query
Where or between on row_number
How do I store the result of a select query into a variable
hstbar.xla can not be found After Excel 2007 was installed