| Author |
Message |
gsuttie
Joined: 30 Nov 2005 Posts: 44 Location: Glasgow, Scotland
|
Posted: Fri Feb 26, 2010 9:37 am Post subject: Data Generation Question |
|
|
Is there any way to take an existing table and then have it ignore say the primary key column and have the tool generate new data for existing rows.
We have some rubbish test data in a table - really long surnames and phone numbers which are garbage and Id like to generate some clean data which has actual names and proper phone numbers.
Is this possible ? or can you suggest a way to clean the data?
Thanks
Gregor |
|
| Back to top |
|
 |
Anu Deshpande
Joined: 20 Apr 2009 Posts: 590 Location: Cambridge
|
Posted: Mon Mar 01, 2010 1:55 pm Post subject: |
|
|
Many thanks for your post.
What type of Primary column is it? I mean data type? Is it an Identity seed?
You can clean the existing data by selecting the option 'Delete data from table before generation'.
When you choose to delete the data from the table before generation, if possible SQL Data Generator truncates the table to remove all the existing rows before re-populating the table. _________________ Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com |
|
| Back to top |
|
 |
gsuttie
Joined: 30 Nov 2005 Posts: 44 Location: Glasgow, Scotland
|
Posted: Mon Mar 01, 2010 2:45 pm Post subject: Reply |
|
|
Hi,
The primary key is a uniqueidentifier - I don't actually want to delete the data id rather like to say grab the surname columns and have the tool generate new surnames for the rows I have selected - that really would make the data generation powerful.
Cheers
Gregor |
|
| Back to top |
|
 |
Anu Deshpande
Joined: 20 Apr 2009 Posts: 590 Location: Cambridge
|
Posted: Tue Mar 02, 2010 10:28 am Post subject: |
|
|
I have emailed you asking for the details. _________________ Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com |
|
| Back to top |
|
 |
great49er
Joined: 02 Mar 2010 Posts: 1
|
Posted: Tue Mar 02, 2010 10:56 pm Post subject: Matching Composite Keys? |
|
|
Hi all,
I have a question similar to some others I've seen on the forums.
I'm trying to load a table with data (call it table E) that must have a matching record in a different table (P). Unfortunately, the unique identifier in P is a composite key between 2 columns (for example, ID & Company).
At first I thought I'd do a simple lookup using the SQL statement generator - select statement, just make sure I was grabbing 2 valid answers for each column, generate data, and then address the errors with my other db tool. Unfortunately, after generating 100k records I only ended up with 7 that match... that's too many errors for my other tool.
How can I pull a composite key out of table P and use it to populate table E so that my generated data in E will match a real record in P? _________________ Thanks |
|
| 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