Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

SQL Agent - UPDATE OPENROWSET not working

$
0
0

Hello,

I've deployed an SP to export some data to an Excel sheet (using OPENROWSET and Microsoft ACE provider) which works flawlessly when launched it from a query window using my admin credential. Basically, it exports data to several excel sheets within the same XLSX file.

I scheduled the SP on SQL Agent, but I'm facing a strange issue because not all sheets are populated. I noticed that when rows to be exported are under 15000, they are loaded with no problem. When inserting more than (about) 15000 rows, then no row is exported at all. Keep in mind that if I execute the SP I get all sheets populated.

It seems there is a limit or in the number of rows or in the maximum memory available for SQL agent job.

Am I missing something?

Thanks


Viewing all articles
Browse latest Browse all 15889

Trending Articles