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
 Unique Identity

Author  Topic 

Maecos
Starting Member

1 Post

Posted - 2011-05-23 : 13:50:12
Hi!Can you pliz help me with validation for differentiating identity.For example i want the employeeID in Employee table to start with the letter 'E' and SupplierID in the Supplier table to start with 'S'.

I will be happy if you will help me.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-05-23 : 13:54:44
You can't use the identity feature for this. Just attach E/S at the front end instead.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -