yeah I was trying 'where row between 10 and 20' that seems to work although it bombs at the end on that statement but it does the copy non the less.
--- On Tue, 7/7/09, Walden H. Leverich <WaldenL@xxxxxxxxxxxxxxx> wrote:
From: Walden H. Leverich <WaldenL@xxxxxxxxxxxxxxx>
Subject: RE: CPYF in SQL Server
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: Tuesday, July 7, 2009, 6:09 PM
Adam,
How are you hoping to define 'n'. There is no RRN concept in SQLServer.
The rows are stored in order of the clustered index if there is one, or
in arrival (mostly*) sequence if the table is a heap (no clustered
index).
If you have a column, say an identity, on the table you could simply add
"where ID between x and y" to the select statement.
-Walden
*Ignoring ghost rows and forwarding pointers.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.