Red Gate forums :: View topic - Hardcode the Foreign Key value
Return to www.red-gate.com RSS Feed Available

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

Hardcode the Foreign Key value

Search in SQL Data Generator 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
hashcoderz



Joined: 24 Apr 2012
Posts: 1

PostPosted: Tue Apr 24, 2012 7:15 am    Post subject: Hardcode the Foreign Key value Reply with quote

Hi

I have a User table with UserStatusId as foreign key, where UserStatus table have two rows

UserStatusId Name
1 Active
2 Deleted

I am going to populate the User table, but i need to populate only Active users, that means UserStatusId is 1.

How should i do it in SQL Data Generator 1? Any suggestions?
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 209

PostPosted: Wed Apr 25, 2012 10:32 am    Post subject: Reply with quote

I believe using the Generic - SQL Statement generator may be able to accomplish what you are looking for.

See here for more information.

http://www.red-gate.com/supportcenter/Content?p=SQL%20Data%20Generator&c=SQL_Data_Generator/help/1.2/SDG_generic_generators.htm&toc=SQL_Data_Generator/help/1.2/toc52077.htm#o5532

Hope this helps.
_________________
Manfred Castro
Product Support
Red Gate Software
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