Well, I changed the application so I could connect the linked server to a directory on a local drive, and everything works great from Query Analyzer... but when I run it from the web application, I get a vague error "OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error." I've given full permissions to the directory to everyone, thinking it might be a security access issue, but that didn't help.. any Ideas?
Thanks ...
(original post)
This works great for files on the local machine, thanks for the code. I have a situation where I would like to point to a directory on a different server, so I tried in the data source \\servername\dir\subdir
but havent had any success... have you done this sort of connection before? I have to mess with the security settings to get it to not error out, but even when there are no errors, the Tables section is empty...
if you have done this, could you explain the security settings you used on the Linked Server properties, plus the security settings for the directory you link to...
thanks..
Quote:
quote:Originally posted by pgtips
Thought I may as well post how to do the linked server set-up...
From Enterprise Manager:
Security > Linked Servers > New Linked Server
General tab inputs:
Linked Server : type anything, e.g. TEXTTEST
Server type - click 'other data source'
Provider : choose Microsoft Jet 4.0 OLEDB Provider
Product Name : leave blank
Data Source : type in the directory, e.g. C:\Temp
Provider String : type in Text;HDR=No;FMT=Delimited
leave other tabs with default values
then SQL becomes:
Code:
SELECT hst.PartNumber, lt.F1
FROM hawker.Summarytest hst
INNER JOIN
TEXTTEST...LSPRINT#TXT lt
ON hst.PartNumber = lt.F1
|