[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.sqlserver.programming

Setting a field default questions

.Net Sports

3/29/2007 3:37:00 PM

I need to assign a default for varchar datatype field in my dbase,
where as each time a row is added, an image name for that particular
field is automatically generated. What I need to do is to add the
'category' field name plus concatenate the ID # 'id', a primary key
integer datatype as the 'imagename' for each entry'/row, but having
trouble using CAST (to change the 'id' into a character) to do this, I
am using MyLittle SQL Admin as the management tool.
thanks in advance
NetSports

1 Answer

Anith Sen

3/29/2007 6:49:00 PM

0

Your requirements are not entirely clear, however have you considered using
a computed column for this?

--
Anith