John Cassell
Well-known member
- Joined
- Mar 20, 2007
- Messages
- 65
- Programming Experience
- Beginner
Hi all, I have hit a brick wall with a problem I am having and am despearate for some help if possible..
If I just explain what I need instead of going into how I have tried to solve it, it may avoid any confusions...
I need my tblJobs to have a 'JobNumber' column in this format "AB1", where "AB" is a fixed 2 chars and 1 is an incremented digit, so next job would be automatically assigned "AB2", "AB3" etc..
I also need this column to be the primary key so I can create relationships with another table against the job number.
I am using SQL Server 2005 Express and Visual Studio 2005.
Hope someone can help!
Thanks
John
If I just explain what I need instead of going into how I have tried to solve it, it may avoid any confusions...
I need my tblJobs to have a 'JobNumber' column in this format "AB1", where "AB" is a fixed 2 chars and 1 is an incremented digit, so next job would be automatically assigned "AB2", "AB3" etc..
I also need this column to be the primary key so I can create relationships with another table against the job number.
I am using SQL Server 2005 Express and Visual Studio 2005.
Hope someone can help!
Thanks
John