Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a linked server to VFP data in a diff fold
Message
From
28/05/2010 09:54:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2000
Application:
Desktop
Miscellaneous
Thread ID:
01466274
Message ID:
01466375
Views:
39
>Here is what we got when we tried your query
>
>Server: Msg 7399, Level 16, State 1, Line 1
>OLE DB provider 'VFPOLEDB' reported an error.
>[OLE/DB provider returned message: Unspecified error]
>OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IColumnsInfo::GetColumnsInfo returned 0x80004005: ].
>
>
>The DBC is in the root of the drive and the .dbf is in a subfolder of that same drive. We believe this is the problem.

I don't know what might be your exact problem. It works for me. Just tried this to be sure:
SELECT * FROM OPENQUERY(VFP_LINK,'select * from (''D:\MyFolderName\MyFolder\myTable.dbf'')')
and VFP_Link linked server's creation script:
EXEC master.dbo.sp_addlinkedserver 
@server = N'VFP_LINK', 
@srvproduct=N'Benim foxpro baglantim', 
@provider=N'VFPOLEDB', 
@datasrc=N'C:\Program Files\Microsoft Visual FoxPro 9\Samples\Northwind\Northwind.dbc'
The error message code makes me think it is a security issue. Doesn't 0x80004005 mean access denied?

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform