The errors say the path is wrong, which it isn't. Other errors when clicking
"tables" under the linked server are "OLE DB" errors.
Does anyone have the correct syntax for creating a linked server to a dBASE
file? Which provider should I use?
-- Example 1:
Exec sp_addlinkedserver @server ='alarm_dBASE',
@srvproduct ='DBASE',
@Provider ='Microsoft.Jet.OLEDB.4.0',
@datasrc='E:\data\databases\myDBASEfile.dbf'
-- example 2
exec sp_addlinkedserver 'alarm_dBASE2',
'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0',
'E:\data\databases\myDBASEfile.dbf',
NULL,
'dBase IV'
go
exec sp_addlinkedsrvlogin @rmtsrvname='alarm_dBASE2',
@useself = 'FALSE',
@locallogin = NULL,
@rmtuser = NULL,
@rmtpassword= NULL
go
Note that the path is from the SQL Server machine, not on your local
machine. (Unless SQL Server runs on your local machine.)
Since I don't know anything about dBase, this is all I can contribute
with.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
"Erland Sommarskog" <esq...@sommarskog.se> wrote in message
news:Xns97BCD2B8B...@127.0.0.1...
Milan
i.e. @provstr = 'c:\' if you file is under c drive