You are viewing limited content. For full access, please sign in.

Question

Question

SQL Server Counter Setup and data extraction

asked on May 18, 2018

Please forgive this rudimentary question but I do not have access to our SQL database and I need to be able to describe how to set up a table to store an incremented number so we can assign application numbers.  The caveat is that we need to restart the numbering every year.

Can anyone help me describe how the sql table needs to be formatted/set up so I can let our database manager know our needs?  Is it one column?  Does it maintain the date?  We understand how to do this once the table has been set up but it is designing the table that is giving us a headache.

Our ultimate goal is to address our need to not only assign a permit number but extract information submitted with an online form associated with this assigned number.   Should the table include these fields of basic permit information also?

0 0

Replies

replied on May 18, 2018

The link below describes it best. Restarting the numbers every year would not change anything without more context. If you assign numbers, starting with the number 1, then remove all numbers, followed by re-assigning numbers, starting with the number 1 again. This is the same as not re-assigning and just continuing to assign new numbers.

 

https://www.w3schools.com/sql/sql_autoincrement.asp

0 0
replied on May 18, 2018

Thank you.  I have given it to our database manager and I hope this will guide us in setting this up.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.