Is this code possible? I have inherited an SP that is bombing out w/ an error of:
Server: Msg 7399, Level 16, State 1, Line 2
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Unspecified error]
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: ].
Now I know I can work around this issue w/ a quick code change BUT my REAL questions is if this syntax is correct and permissable.
I thought the datasource had to be a database of some sort.
Here is the code:
Thanks
J. Kusch
Server: Msg 7399, Level 16, State 1, Line 2
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Unspecified error]
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: ].
Now I know I can work around this issue w/ a quick code change BUT my REAL questions is if this syntax is correct and permissable.
I thought the datasource had to be a database of some sort.
Here is the code:
Code:
select distinct [NoiseWord] = x.[F1]
from openrowset
(
'Microsoft.Jet.OLEDB.4.0',
'Text;HDR=NO;Database=C:\Program Files\Common Files\System\MSSearch\Data\Config\',
'select * from noise.enu'
) as x
where x.[F1] is not NULL
Thanks
J. Kusch