Viewing 15 posts - 31 through 45 (of 57 total)
Just arrived in work and surprised by the reaction to this one! Apologies if the wording was confusing to some. I tried to make the question has clear as possible...
January 10, 2011 at 3:30 pm
It's triggered 3 times in the past 24 hours on our production server :sick:
January 6, 2011 at 9:36 pm
Eureka! So I finally solved the issue - just by trail and error.
When I set the 'Run as user' to 'dbo' in the Job Step it runs without an error....
January 5, 2011 at 5:17 pm
Eureka! So I finally solved the issue - just by trail and error.
When I set the 'Run as user' to 'dbo' in the Job Step it runs without an error.
I...
January 5, 2011 at 5:15 pm
I just tried that and also added the service account to the DatabaseMailUserProfile role in the msdb and that didnt make any difference either :crazy:
January 5, 2011 at 4:48 pm
Hi Geoff,
Thanks for getting back. Yes that works without a problem. The issue is this statement:
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'default',
@recipients = 'xxxxx@xxxxxxx',
@subject = @mysubject,
@body = 'Deadlock has occurred. View attachment...
January 5, 2011 at 3:33 pm
I still cant get this script to work with an SQL SERVER AGENT job - I am trying to solve it over on this forum post but still no luck...
January 5, 2011 at 2:43 pm
Hi Craig - thanks for the reply....
In youe extract is says : "When no profile_name is specified, sp_send_dbmail uses the default private profile for the current user."
But in my script...
January 4, 2011 at 5:11 pm
thanks for the replies....
The Job falls over when it hits the
EXEC msdb.dbo.sp_send_dbmail
profile_name = 'default',
@recipients = 'xxxxxxx@xxxxxxxxxx',
@subject = @mysubject,
@body = 'Deadlock has occurred. View attachment to see the deadlock...
January 4, 2011 at 4:53 pm
Unfortunately not 🙁 I have changed the job owner to the the same account that runs the SQL AGENT which has sysadmin privileges. The same error still persists. The whole...
January 4, 2011 at 2:41 pm
I have checked and the account that is running the SQL AGENT has sysadmin priviledges on the sql server instance and also the code run Ok if I run it...
January 3, 2011 at 3:43 pm
Hi LutzM - Ok - I take on board the comment about nchar - I'm actually in 2008 now but will need to deploy this to 2005 so could use...
December 22, 2010 at 5:28 pm
When I run the sql contained in the job within the QA it works Ok and I get a mail. However when I try and execute the job itself I...
December 13, 2010 at 3:35 pm
Thanks for the replies......
I'm actually getting a clustered index scan on the table. The date for the orders is actually not contained in the order_products table
but a parent orders table....
December 9, 2010 at 6:19 pm
Viewing 15 posts - 31 through 45 (of 57 total)