A issue you should consider in using the method in the article is that your COMPUTED column is not the primary key or using any type of clustered index. If this is the column that all other tables are going to link on and you want it to be your PRIMARY KEY, then you will need to handle the computed column more like so--drop table Customerscreate table Customers( dbID int identity(1,1) not null, CustomerName varchar(100))goalter table Customers add CustomerNumber as ISNULL('C_' + right('0' + convert(varchar(10), dbID), 4),'0000') Primary Keyinsert into Customers(CustomerName)select 'hello-1' union allselect 'hello-2' select * from Customers
Success is 10% Intelligence, 70% Determination, and 22% Stupidity.\_/ _/ _/\_/ _/\_/ _/ _/- 881