Re: Fast Sequencing
From: Rob Diamant (rob_at_usi.com)
Date: 01/20/05
- Next message: Adam Machanic: "Re: Beware: Timestamps are not contained inside Transactions!!"
- Previous message: Dave Slinn: "Beware: Timestamps are not contained inside Transactions!!"
- In reply to: David Gugick: "Re: Fast Sequencing"
- Next in thread: David Gugick: "Re: Fast Sequencing"
- Reply: David Gugick: "Re: Fast Sequencing"
- Reply: Dan Guzman: "Re: Fast Sequencing"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 Jan 2005 15:47:49 -0600
David,
Thanks for the info. I already can sequence the SubID's in my application. I
am trying to find a way to cheat (ie faster) by using SQL.
In a related topic is there a way to get the select the ROWID?
Rob
"David Gugick" <davidg-nospam@imceda.com> wrote in message
news:OievhCz$EHA.464@tk2msftngp13.phx.gbl...
> Rob Diamant wrote:
>> I have a table that I am trying to bulk load 100K records via SQL.
>> The table has a primary key of ID and SubID. I am creating a
>> temporary table that will populate ID just fine, but is there a fast
>> way I can run through these records and assign the SubID. I have no
>> problem doing this in VB (it runs in 2 min) , but when I try doing
>> this in SQL using a cursor it takes hours.
>> The net effect is as follows.
>> ID, SubID
>> 1001, 1
>> 1001, 2
>> 1001, 3
>> 1002, 1
>> 1003, 1
>> 1003, 2
>> 1003, 3
>>
>> TIA
>>
>> Rob
>
> Cursors are slow because they are not set-based. Do it in your application
> and then bulk-load the data. I don't how we would know how to help you
> assign a sub id since we don't know anything about your requirements. Are
> you saying the SubID values do not exist in the file? If so, how do you
> know how to assign them? How do you assign the IDs for that matter?
>
> --
> David Gugick
> Imceda Software
> www.imceda.com
- Next message: Adam Machanic: "Re: Beware: Timestamps are not contained inside Transactions!!"
- Previous message: Dave Slinn: "Beware: Timestamps are not contained inside Transactions!!"
- In reply to: David Gugick: "Re: Fast Sequencing"
- Next in thread: David Gugick: "Re: Fast Sequencing"
- Reply: David Gugick: "Re: Fast Sequencing"
- Reply: Dan Guzman: "Re: Fast Sequencing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|