Hi
When running the following query
EXEC msdb.dbo.sp_send_dbmail @profile_name = 'Profile'
,@recipients = 'EMAIL@EMAIL.COM'
,@Subject = 'TEST EMAIL'
,@Body = 'TEST EMAIL'
,@Query = 'SELECT GETDATE()'
I get the following error...
Msg 22050, Level 16, State 1, Line 0
Failed to initialize sqlcmd library with error number -2147467259.
However it works fine from another user.
Both users are sysadmin.
Is there an obvious issue I am missing?
Using SQL 2014 Enterprise.
Thanks
Sam