Apr 7, 2003 #1 week MIS Feb 14, 2001 118 US I am not aware of anything like this but anyone knows any existing function that will create identity column with yyyymm at the end as part of the ID? Thanks.
I am not aware of anything like this but anyone knows any existing function that will create identity column with yyyymm at the end as part of the ID? Thanks.
Apr 7, 2003 #2 smin Programmer Nov 28, 2001 37 US This can be done using an insert trigger. Create Trigger triggername on YourTable For Insert As update YourTable set YourColumn = YourIdentityColumn + cast(getdate() as string) Something like that. Upvote 0 Downvote
This can be done using an insert trigger. Create Trigger triggername on YourTable For Insert As update YourTable set YourColumn = YourIdentityColumn + cast(getdate() as string) Something like that.
Apr 7, 2003 Thread starter #3 week MIS Feb 14, 2001 118 US Sounds like a good idea!! Thanks. Upvote 0 Downvote