Existing Data Source - Specify number of rows
lvdancerdave
Posts: 3
Still new to this tool. When setting up an existing data source for a table, there is the option "Specifiy number of rows by:" with several options, but I am having trouble finding documentation on the behavior of these values. If you select Numeric Value=1000, would you get the first 1000 rows of the source table or a random sampling? How does Proportion of Table work?
David Burt
Comments
You ask an excellent question and our documentation does not have any information on this. To answer your questions:
It is my belief that the product would select the first 1000 rows if there are over 1000 rows of data in the table selected as the data source.
The tool tip help contains this information:
I believe that the product using the example in the tool tip help would select the first 750 rows of data.
I will submit a request request to improve the documentation with regards to your questions and obtain confirmation of my answer.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
It looks pretty simple - when you select a potion from another table, it simply selects the top x number of records. If it needs to randomize the results it does so in memory - the SQL Profiler trace clearly shows it's getting the top x from the other table.
Proportion of table just lets you choose a second (reference) table, counts the number of records from it, and does a percentage on that and selects the top x records from the source table again (where x is the row count from the reference table divided by the percentage you had specified).
I have submitted Feature Request SDG-1046 for the Product Manager and Development Team to consider, for adding additional information to our help documentation. In particular when selecting an existing data source for the Specifying number of rows option and the drop down selections:
Numeric value
Proportion of table
Generation Time
Same as mapped data
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com