Hi Guys,I do the following steps in my sql 2005 server:CREATE TABLE BBB(A VARCHAR(10))ALTER TABLE BBB ADD CONSTRAINT DF_FOR_ADEFAULT (left(replace(suser_sname(),'SAM\',''),50)) FOR AGOSP_HELP BBB
I get teh default value in the system as:(left(replace(suser_sname(),'SAM\',''),(50)))The 50 for left has come in brackets.I tried the same in 2000 and it came as I inserted it..without the brackets.Is this how it is in 2005 or have I done somethign wrong here?ThanksSam