Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 database mail

Author  Topic 

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-06 : 11:43:39
Hi All,

I am going made here. I set up database mail on a 2005 box. It was working fine, untill I needed to reboot it. Now it does not.

If I run a test with 2000 it works fine. However 2005 does not.

I go to the test mail bit and it says its sent, but it never turns up. So I ran:-

SELECT * FROM msdb.dbo.sysmail_event_log

And I get the fowwloing error:-

259 error 2008-06-06 16:38:24.493 Could not retrieve item from the queue. 5708 NULL NULL 2008-06-06 16:38:24.493 UK_domain\USER


Any ideas at all would be gratfull aprisiated!!!

Thanks

Dave


Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-06 : 11:55:32
similar discussions :-
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1182253&SiteID=1

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2439313&SiteID=17
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-06 : 12:07:14
Hi,

Thanks for that! Yeah I have seen them pages and followed it, but still does not work.

For me no mail ever comes!

Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-06 : 13:43:56
Did you restart SQL agent service?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-06-07 : 00:01:28
Is mail server running?
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-09 : 05:41:20
Hi guys,

Yeah the mail server is running fine. I can mail from an sql 2000 instance on the box no problem.

Also yeah I have tryed restarting the agent. Not sure what else to do?!

Any ideas?

Dave


Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-09 : 05:56:12
Ok fixed it!

Its quiter strange! I removed all settings. And then added it back with the slef sma esettings. Strange!

Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-12 : 09:56:57
Ok this is strange! It worked for two days, in witch time I never even used the server, and now:-

1) Exception Information =================== Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException Message: The Transaction not longer valid. Data: System.Collections.ListDictionaryInternal TargetSite: Void ValidateConnectionAndTransaction() HelpLink: NULL Source: DatabaseMailEngine StackTrace Information =================== at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.ValidateConnectionAndTransaction() at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.RollbackTransaction() at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.GetDataFromQueue(DataAccessAdapter da, Int32 lifetimeMinimumSec) at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel)

What is doing this? I can remove it and start again, but I bet it will happen again.

Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2008-06-12 : 10:50:54
Ok got it!

The job was to send me the disk space in an email of all my servers. But the test box it was running on, kida run out. WoopS!

Mail stops working when disk space runs out!

Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
Go to Top of Page
   

- Advertisement -