Im sending mails with xp_sendmail, this use a query to create an attachment,
In this query im accessing tables from another server through a link server, some queries works but another complex queries return the next error:
[Microsoft][ODBC SQL Server Driver]Timeout expired
I checked the timeout of the link server, is 0 that means unlimited, the remote server in its properties the timeout for remote server connections is 0 (unlimited too), and in the local server the timeout for remote server connections is 0.
This query if i run it in Query analizer is slow but it works, but in my xp_sendmail command it doesn't work and return the error of timeout expired
If someone knows something, please help me