Version 2000.
How do I do something like the example
SELECT *
FROM OpenDataSource( 'Microsoft.Jet. OLEDB.4.0',
'Data Source="c:\Fina nce\account.xls ";User ID=Admin;Passwo rd=;Extended
properties=Exce l 5.0')...xaction s
but use a .txt-file instead ?
I tried building it using Access (that usually works :-) ) and that gives a
connectionstrin g of:
Text;DSN=Link
Sammenkædningss pecifikation;FM T=Delimited;HDR =NO;IMEX=2;Char acterSet=850;DA T
ABASE=c:\temp
Sourcetablename =link.txt
but I can't seem to "massage" it into working on the sql-server.
If I quick and dirty swap 'Microsoft.Jet. OLEDB.4.0' with 'Text' it gives
error:
Could not locate registry entry for OLE DB provider 'Text'.
tia
/jim
How do I do something like the example
SELECT *
FROM OpenDataSource( 'Microsoft.Jet. OLEDB.4.0',
'Data Source="c:\Fina nce\account.xls ";User ID=Admin;Passwo rd=;Extended
properties=Exce l 5.0')...xaction s
but use a .txt-file instead ?
I tried building it using Access (that usually works :-) ) and that gives a
connectionstrin g of:
Text;DSN=Link
Sammenkædningss pecifikation;FM T=Delimited;HDR =NO;IMEX=2;Char acterSet=850;DA T
ABASE=c:\temp
Sourcetablename =link.txt
but I can't seem to "massage" it into working on the sql-server.
If I quick and dirty swap 'Microsoft.Jet. OLEDB.4.0' with 'Text' it gives
error:
Could not locate registry entry for OLE DB provider 'Text'.
tia
/jim
Comment