| Author |
Message |
dunski
Joined: 20 Jul 2012 Posts: 2
|
Posted: Sat Jul 21, 2012 12:01 am Post subject: Server assigned id as input for SQL Statement |
|
|
Is it possible to use a server assigned identity column in a SQL statement generator?
For example, I have an Account table with a primary key AccountId which is an autoassigned identity column. That same table has an AccountNumber column.
I want to use the following SQL statement generator to populate AccountNumber:
SELECT fn_GenerateAccountNumber(AccountId);
Thanks! |
|
| Back to top |
|
 |
dunski
Joined: 20 Jul 2012 Posts: 2
|
Posted: Sat Jul 21, 2012 12:06 am Post subject: |
|
|
Nevermind... Solved this with a simple trigger  |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group