Red Gate forums :: View topic - Server assigned id as input for SQL Statement
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Generator 2
SQL Data Generator 2 forum

Server assigned id as input for SQL Statement

Search in SQL Data Generator 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
dunski



Joined: 20 Jul 2012
Posts: 2

PostPosted: Sat Jul 21, 2012 12:01 am    Post subject: Server assigned id as input for SQL Statement Reply with quote

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
View user's profile Send private message
dunski



Joined: 20 Jul 2012
Posts: 2

PostPosted: Sat Jul 21, 2012 12:06 am    Post subject: Reply with quote

Nevermind... Solved this with a simple trigger Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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