Viewing 15 posts - 1 through 15 (of 22 total)
i see no problem with performance... but im not quite good at tuning and performance
i saw the execution plan and Client Statistics of these two queries
select MY_DateTime_Field from My_table
select convert(datetime,convert(varchar,MY_DateTime_Field,112))...
September 23, 2009 at 3:18 pm
instead of
da.Fill(ds.Tables(0))
da.Fill(ds.Tables(1))
da.Fill(ds.Tables(2))
use this
da.fill(ds)
the dataadapter fills the dataset with the resultset of your stored procedure , if your stored procedure returns three resultsets, then the dataadapter will fill your dataset with...
September 22, 2009 at 4:59 pm
It's functionally equivalent to a cursor. The WHILE loop really will not buy you any perf advantage here. That said - pulling things out in descreasing row order will get...
September 22, 2009 at 4:00 pm
This is bound to go *boom* if ANYONE is doing inserts on the table while you're running this loop.
What is the inner stored procedure doing? This approach tends to be...
September 22, 2009 at 3:25 pm
i would do something like this
DECLARE @MAX_ID int, @CONS int, @CURRID int
SELECT @MAX_ID=0, @CONS=1
SELECT @MAX_ID=COUNT(*)
FROM YOUR_TABLE
WHILE @CONS<=@MAX_ID
BEGIN
SELECT @CURRID=ID
from (
select ROW_NUMBER() OVER (order by ID desc) ROWNUMBER,*
from YOUR_TABLE
) a
where ROWNUMBER=@CONS
if @CURRID...
September 22, 2009 at 3:02 pm
if the system does crash, upon power-up the transaction log is reviewed and any transactions that havent been checkpointed are now written to the database.
September 22, 2009 at 12:41 pm
why are you using size = -1?
just dont specify the size value? i think that would work
September 22, 2009 at 10:33 am
it would be helpful if you post an example of your procedure
September 22, 2009 at 10:22 am
i think this could help...:-)
INSERT INTO #Test_Destination
SELECTa.*
FROM#Test_Staging a
left join #Test_Destination b
on a.id=b.id and a.Date=b.Date
where b.id is null
DELETE #Test_Staging
FROM #Test_Staging a
inner join #Test_Destination b
on a.id=b.id and a.Date=b.Date and...
September 21, 2009 at 12:36 pm
anytime ๐
September 21, 2009 at 10:00 am
you're welcome ๐ im gald i could help
see you next time.
September 18, 2009 at 3:41 pm
no problem :), i guess we all are here to help each other.
well im not sure if its like .NET but, when you execute a function it has to be...
September 18, 2009 at 2:46 pm
i've never used Delphi before, so im not quite sure what the problem is... but i read a little, and i found something called TADOQuery... maybe you could execute a...
September 18, 2009 at 1:27 pm
Viewing 15 posts - 1 through 15 (of 22 total)