Viewing 15 posts - 1 through 15 (of 31 total)
The query that was slowing the sproc was an UPDATE statement and it's condition was comparing an attribute that was of bigint type. I changed the attribute to varchar type...
May 17, 2005 at 10:27 am
I run profiler. I run TSQL duration, Tuning and TSQL SPs templates and they all told me the same thing ( which I already knew) that one query was slowing...
May 17, 2005 at 9:36 am
Ok, so I checked the execution plans of each individual query in the sproc and compared them to the entire sproc - the plans are the same.
After running the sproc...
May 16, 2005 at 2:32 pm
sorry if this seems like a silly question but how can I print the wall clock time in the sproc?
May 16, 2005 at 1:02 pm
I've tried dropping anf re-entering and sp_recompile. Didn't make a difference.
I've beed playing around with different isolation levels but they all give me the same results. 10 minutes execution time.
Should...
May 12, 2005 at 2:37 pm
Turns out the problem was the server address I was inputing. It was wrong! I put the wrong smtp ip...
So it all works great now.
Thanks for everyone's help.
April 26, 2005 at 12:05 pm
I've added the following error checking to my SPROC:
EXEC @hr = sp_OAGetErrorInfo @object, @source OUT, @description OUT
IF @hr = 0
BEGIN
SELECT @output = ' Source:...
April 26, 2005 at 8:52 am
Here is my SPROC:
CREATE PROCEDURE dbo.usp_sendmail (@recipients varchar(200), @message varchar(2000))
AS
declare @object int, @hr int, @v_returnval varchar(1000), @serveraddress varchar(100)
Set @serveraddress = 'xxx.xxx.xxx.xxx'
exec @hr = sp_OACreate 'SimpleCDO.Message', @object OUT
exec @hr =...
April 26, 2005 at 7:09 am
one second! It's great!
It's a part of a SPROC that has about 10 other queries so time is everything.
Thanks again!
April 18, 2005 at 12:45 pm
Thanks guys for all your help.
I see the error of my ways now.
🙂
Sandra
April 18, 2005 at 12:24 pm
Thank you Remi,
This query runs instantly, the only problem is it gives me a different record set. It finds more records to be inserted.
It may be because my old query...
April 18, 2005 at 12:03 pm
This is great sblock!
I'll try it.
Thanks!
November 12, 2004 at 2:11 pm
Never mind, I figured it out.
If anyone is interested:
system("dtsrun /S serverName /N \"PackageName\" /U userName /P password");
November 8, 2004 at 12:18 pm
Viewing 15 posts - 1 through 15 (of 31 total)