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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert Finction in Default Constraint

Author  Topic 

deep2006
Starting Member

3 Posts

Posted - 2006-08-23 : 14:16:33

I have two fields CourseID and Erpid in table.

CourseID has identity property with integer datatype.

I need to add a default value for Erpid column which will show a value like 'A' + CourseID column. Erpid is Varchar column.

How can I use Convert function in default constraint? Or shall I use a Trigger?

Thanks!

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-08-23 : 17:18:20
Do not cross post!

Duplicate post:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=70937

CODO ERGO SUM
Go to Top of Page
   

- Advertisement -