I am making a Inventory Software . In that i need to make a auto generated item code so that the users can use that code to pick that item. I would like to know how to make such colum and whats the best way to do it.
i need to start the itemcode from “1000”
For example i have the following columns in my table
ItemID int
ItemCode
ItemName
If the GUID or the Autoincrement column is not enough for your business you have to create a Function to auto generate your custom code
have a look at the below:
http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server