I have daily schedule sql job which insert data into excel through OPENROWSET.
but from last two days its not working.
if I run query in query window it works but its not running under agent service.
Insert Into OPENROWSET ('Microsoft.ACE.OLEDB.12.0','Excel 8.0;Database='+ @FileName +';','Select
* from [sheet1$]')