I have the following problem, I am running a script that makes an export of a SQL Server 2012 server to another SQL Server that is tied by a Linked Server, the script is as follows:
INSERT INTO [192.168.10.82].[INTERFAZ_IQWARE].[dbo].[T_FACTURACLI] (IDFactura, FechaDocumento, NombreCliente, NIT, DireccionFacturacion, Folio, Subfolio, Habitacion, Serie, NumeroDoc, IdVendedor, IDClienteIQware, IDClienteSAP, DocType)
SELECT
IDFactura,
FechaDocumento,
NombreCliente,
NIT,
DireccionFacturacion,
Folio,
Subfolio,
Habitacion,
Serie,
NumeroDoc,
IdVendedor,
IDClienteIQware,
IDClienteSAP,
DocType
FROM [T_FACTURACLI]
WHERE (FechaDocumento = (SELECT CurrentHotelDate - 1 FROM prProperty))
The problem is that I log in with the user and the script works correctly, but when setting up a Job so that the process is done automatically, the procedure fails, even if the user is already the owner of the Job and it still does not work.