Re: How to create a small test db from a huge db.



On Thu, 24 May 2007 03:15:01 -0700, Larou <Larou@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I have a db that in total has 35million records. However, these have been
broken down into 5 different files. This still makes it very difficult for me
to make any progress on working with them.

I want to create a new, smaller db and fill it with a random selection of
records from one of the 5 huge db's first. Then crerate the Quries and Forms
that I can then run on the bigger ones.

How do you want to select your "random" records? You can use the TOP keyword in an INSERT INTO or SELECT INTO query to
move records from one file to another ... this wouldn't be truly random since it would always get the first xxx records,
but you could use various ORDER BY clauses to change the order of the recordsets.

With 35 million records, it sounds as if archiving might be in order, unless you have some pressing need to query this
many records for day-to-day operations (and you may very well have).

Scott McDaniel
scott@xxxxxxxxxxxxxxxxxxxxxxxxx
www.infotrakker.com
.



Relevant Pages

  • Re: DataReader - how to get record count without closing?
    ... Ah, yes, but it causes the entire query to run twice. ... They provide a progress bar and jump ... >> would be close to Static recordset provided by DAO 3.6 (which is ... >>> the DataReader twice - first time to calculate the rows and second time ...
    (microsoft.public.dotnet.framework.adonet)
  • Access queries have very bad manners
    ... In my long queries, if my screensaver comes on, or I open a new window (say ... the Access window does not repaint until the query has ... I am curious as to how the progress bar at the ...
    (microsoft.public.access.queries)
  • Re: grouping for subtotals
    ... progress from authoring through final approval. ... I have fields set for each step in the progression; set up as date fields. ... I need to get a subtotal by each chapter of how many documents are in each phase; my problem is this query: ... Collaboration field (date the document entered collaboration) = criteria Is Not Null ...
    (microsoft.public.access.queries)
  • Re: Querys using combo boxes
    ... > (In progress, completed, cancelled etc) ... If the text is needed in your query and the text is in column 2 (not the ... bound column), you can create a function in a module: ... Function GetStatus() As String ...
    (microsoft.public.access.queries)
  • Poking Database calculated values into spreadsheets
    ... My production database calculates labor and progress values for our various ... jobs by JobID. ... I have a query thats liste JOBID, SatusDate, Hours, Progress for all active ... I want to loop through the query and poke the values for StatusDate, Hours, ...
    (microsoft.public.access.formscoding)

Quantcast