ropewrench
Programmer
I just started receiving this error after 3 months of flawless operation
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Could not find installable ISAM.]
Here is the code that is being processed
declare @dosStmt varchar(200)
set @dosStmt = ' del h:\autoemailtemp\ChemStar_NS_Status.xls '
exec master..xp_cmdshell @dosStmt
--GO
--declare @dosStmt varchar(200)
-- Create an Empty Excel file as the target file name by copying the template Empty excel File
set @dosStmt = ' copy h:\autoemailtemp\ChemStar_NS_Status_Temp.xls ' + 'h:\autoemailtemp\ChemStar_NS_Status.xls'
exec master..xp_cmdshell @dosStmt
--GO
--EXEC sp_dropserver 'Excel1', 'droplogins'
-- Create a "temporary" linked server to that file in order to "Export" Data
EXEC dbo.sp_addlinkedserver 'Excel1',
'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0',
'h:\autoemailtemp\ChemStar_NS_Status.xls',
NULL,
'Excel 8.0'
--'Excel 5.0'
--GO
EXEC sp_addlinkedsrvlogin Excel1,FALSE,NULL,NULL,Null
--GO
declare @tsqlStmt varchar(500)
-- construct a T-SQL statement that will actually export the query results
-- to the Table in the target linked server
set @tsqlStmt = 'Insert Excel1...[TEST]' + 'SELECT Warehouse,VENDOR,PRODUCT_CODE, PROD_DESC, LOCATION_CODE,LOT_CODE, NS_STATUS From [Priya].dbo.RinNSStatus'
print @tsqlStmt
-- execute dynamically the TSQL statement
exec (@tsqlStmt)
-- drop the linked server
EXEC sp_dropserver 'Excel1', 'droplogins'
respectfully,
ropewrench
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Could not find installable ISAM.]
Here is the code that is being processed
declare @dosStmt varchar(200)
set @dosStmt = ' del h:\autoemailtemp\ChemStar_NS_Status.xls '
exec master..xp_cmdshell @dosStmt
--GO
--declare @dosStmt varchar(200)
-- Create an Empty Excel file as the target file name by copying the template Empty excel File
set @dosStmt = ' copy h:\autoemailtemp\ChemStar_NS_Status_Temp.xls ' + 'h:\autoemailtemp\ChemStar_NS_Status.xls'
exec master..xp_cmdshell @dosStmt
--GO
--EXEC sp_dropserver 'Excel1', 'droplogins'
-- Create a "temporary" linked server to that file in order to "Export" Data
EXEC dbo.sp_addlinkedserver 'Excel1',
'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0',
'h:\autoemailtemp\ChemStar_NS_Status.xls',
NULL,
'Excel 8.0'
--'Excel 5.0'
--GO
EXEC sp_addlinkedsrvlogin Excel1,FALSE,NULL,NULL,Null
--GO
declare @tsqlStmt varchar(500)
-- construct a T-SQL statement that will actually export the query results
-- to the Table in the target linked server
set @tsqlStmt = 'Insert Excel1...[TEST]' + 'SELECT Warehouse,VENDOR,PRODUCT_CODE, PROD_DESC, LOCATION_CODE,LOT_CODE, NS_STATUS From [Priya].dbo.RinNSStatus'
print @tsqlStmt
-- execute dynamically the TSQL statement
exec (@tsqlStmt)
-- drop the linked server
EXEC sp_dropserver 'Excel1', 'droplogins'
respectfully,
ropewrench