Viewing 15 posts - 16 through 30 (of 388 total)
Hi,
Do you have trigger on the target table?
...and your only reply is slàinte mhath
July 28, 2010 at 5:36 pm
Hi,
You need to install only Integration Services to be able to run the packs from command line or .NET code. Obviously, if you want to deploy the packs to the...
...and your only reply is slàinte mhath
June 18, 2010 at 4:15 pm
You ave to create SQLConnection object, then SQL Command, configure the SQLCommand object and eventually execute it. There are several methods of execution, varying with the returned results. Please read...
...and your only reply is slàinte mhath
June 5, 2010 at 5:38 am
Thanks for sharing this. The trick with sp:CacheMiss is interesting to know.
Piotr
...and your only reply is slàinte mhath
May 18, 2010 at 6:02 pm
That's a nice question, thanks Ron.
For what it's worth, I remembered that I read about this naming convention in Inside SQL Server 2005 Query Tuning and Optimization. Page 229. 🙂
Also...
...and your only reply is slàinte mhath
April 17, 2010 at 7:37 am
Are you sure that you have exactly same schema on this database and others? It maybe that lack of an index on other table triggers scan on the big one....
...and your only reply is slàinte mhath
April 12, 2010 at 3:36 pm
How does your code populate the temp tables? By the look of your last post would it be a loop or cursor? Please forgive me if I am wrong.
Have you...
...and your only reply is slàinte mhath
April 6, 2010 at 4:24 pm
Thanks Paul, I didn't see this post before. I really enjoy Craig's posts about execution plans.
Regards
Piotr
...and your only reply is slàinte mhath
March 19, 2010 at 9:52 am
I found it might be better to use TOP syntax in the end anyway. The ROWCOUNT setting appears to be not taken into consideration by the query optimizer and this...
...and your only reply is slàinte mhath
March 19, 2010 at 9:34 am
Tom, you might also consider adding Execute SQL Task to your package to grab the newsequentialguid() from database instead of using the ExecutionInstanceGuid. It looks like you would need to...
...and your only reply is slàinte mhath
March 19, 2010 at 5:44 am
Could you post execution plans for both queries? Have you tried to wrap the query in a stored proc and pass the parameters to it? The sp_executesql overhead is minimal,...
...and your only reply is slàinte mhath
March 15, 2010 at 1:08 pm
If may I ask, why do you want to run this code in a cursor? It doesn't look like you need to.
Regards
Piotr
...and your only reply is slàinte mhath
March 12, 2010 at 9:05 am
Yes, basically you will have rows in inserted and deleted pseudotables for UPDATE, in inserted for INSERT and in deleted only for DELETE.
So you'd have to check something like
if(exists...
...and your only reply is slàinte mhath
March 11, 2010 at 11:07 am
Agreed, if it possible, batch the data. You can build an xml fragment and flush it to database at appropriate interval, the performance of your app will gain tremendously.
Regards
Piotr
...and your only reply is slàinte mhath
March 10, 2010 at 8:32 am
Would you mind posting actual execution plans for both cases? There is a chance that query optimizer doesn't have enough information (statistics) about the values of dates in the temp...
...and your only reply is slàinte mhath
March 9, 2010 at 12:49 pm
Viewing 15 posts - 16 through 30 (of 388 total)