Red Gate forums :: View topic - Insert into 2 tables with PK FK relationship
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

Insert into 2 tables with PK FK relationship

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



Joined: 07 Nov 2011
Posts: 2

PostPosted: Mon Nov 07, 2011 10:39 am    Post subject: Insert into 2 tables with PK FK relationship Reply with quote

I am trying to insert 1 record of data into 2 tables - the first table assigns the user a person_id and I want then for this person_id to link the 2 tables and the record to have a relationship through this id. At the moment when I go to generate the data 2 rows are inserted with 2 different person_id.

Any help would be much appreciated........
Back to top
View user's profile Send private message MSN Messenger
Chris.Allen



Joined: 12 Mar 2009
Posts: 588

PostPosted: Tue Nov 08, 2011 2:32 pm    Post subject: Reply with quote

have you tried assigning it as the foreign key generator?
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