Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Just help me

Author  Topic 

anwarmalik701
Starting Member

1 Post

Posted - 2010-08-28 : 02:52:42
I want to increment a char() type column in a table automatically.
"E0001" this is the format and integer part must be incremented by 1 at each INSERT.
For example "E0001" then "E0002" then "E0003" and so on upto "E9999".

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-08-28 : 03:02:12
see

http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -