Viewing 12 posts - 1 through 12 (of 12 total)
Ahh I see... I didn't provide you with my final corrected Pseudo code:
update dbo.mytable
set
mytable.one = source.uno
,mytable.two = source.due
,mytable.three = source.tre
from
#mySource source
where
mytable.dte = source.dte
and
source.type = 'SELL'
I assumed you saw the above and were...
December 12, 2006 at 7:57 am
Please, why so?
December 12, 2006 at 7:09 am
Ahhh, I think I have it:
CREATE TABLE #mySource (
dte varchar (8)
,uno int
,due int
,tre int
,type varchar(4) )
INSERT #mySource (
dte
,uno
,due
,tre
,type)
EXECUTE [dbo].[myStoredProcedure] GetDate()
update dbo.mytable
set
mytable.one = source.uno
,mytable.two = source.due
,mytable.three = source.tre
from
(exec [dbo].[myStoredProcedure] GetDate())...
December 11, 2006 at 7:28 am
Thank you both for very considerate responses.
To stay in line with the other objects I've created, I believe that I prefer the temp table approach... How would that work considering...
December 11, 2006 at 6:55 am
I believe that I read something like that just recently while researching the problem: that the records may not have inserted as I wrote them.
However, I DID use a clustered...
September 10, 2004 at 3:26 pm
That was kinda my point in posting originally.
Assuming all records went into table sequentually as written, the first 14 mil would have been the first batch and anything later would...
September 10, 2004 at 2:48 pm
I loaded 14 million rows and then loaded an additional 1.5 million rows.
TOP would better be classified as FIRST
A late breaking requirement was to...
September 10, 2004 at 2:31 pm
Jaret:
Your solution is wonderful but from the start, my requirement WAS to consider the update sequentially.
I must update the FIRST or TOP 14...
September 10, 2004 at 11:16 am
Yes, the plan is to process a small table first then to move on to bigger issues.
However, Assuming I wanted to update a 20,000 row table and chose to break...
September 10, 2004 at 9:29 am
OMG! I just lost my first reply as well!
I had a clustered index on a field that is hit often and produces a sizable recordet. From that sense, the index...
September 10, 2004 at 8:38 am
OMG! This is probably NOT the best way of doing it but I was desperate
I added an IDENTITY column to the table @ last...
September 9, 2004 at 12:05 pm
Viewing 12 posts - 1 through 12 (of 12 total)