c# - Reset Auto Increment by day in visual studio - SQL -


i´m looking solution reset auto increment id day change.

let's have order , want store 2 identification numbers... daylie order number , order itself.

e.g. order#123123 orderday#3 article#something, etc.

the order number auto increment , primary while day id counter see how many orders company got in day.

the day counter has reset new day.

i´m working on windows forms project local sql server database.

thanks in advance

you can schedule job resets day id 1 each day:

msdn sql server - schedule job


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -