Discussion Locked

SQL 7 and Outlook

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have had a SQL procedure running weekly for more than 4 months. It sends a report to users via Outlook and just recently has been taking an excessive amount of time to run. I have taken the procedure and pared it down to the following, and have no idea why this takes nearly a minute to complete???

EXEC xp_sendmail 'accounting',
@subject = 'Inventory and Delivery Record',
@message = 'Inventory and Delivery Record!'

Thanks.

3 replies

by keblerelf

This may or may not have anything to even remotely help out, but who knows. I ran into a problem somewhat like this when running SQL 7 on a smaller machine. Initially, everything fired super quick but kept getting slower and slower over time. What the problem was in my case is there was a secondary app running on the same box that was caching files like crazy. Basically it had filled up the hard drive so much that there wasn't very much space left for the paging file. Add that on top of SQL Server running which was hogging a ton of RAM anyway (as I said...not a huge box in my case) and the machine came to a slow crawl. I deleted the cache and later migrated the other app to a different machine and suddenly SQL was back to running pretty quick again. Was one of those things that looking for the problem through Enterprise Manager or something never would have helped though. Best of luck in figuring it out though.

This discussion is closed to new replies.