Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL Server 2005 - VFPOLEDB Linked Server Provider

 
   Database Forums (Home) -> Connect RSS
Next:  [Info-Ingres] 750 USD Free Welcome Bonus!  
Author Message
Caine Schneider

External


Since: Dec 14, 2007
Posts: 2



(Msg. 1) Posted: Fri Dec 14, 2007 8:05 am
Post subject: SQL Server 2005 - VFPOLEDB Linked Server Provider
Archived from groups: microsoft>public>sqlserver>connect (more info?)

Hello,
I'm having a problem getting the VFPOLEDB provider to work with SQL Server
2005. I have installed the VFP 9.0 OLE DB provider from Microsoft, but the
VFPOLEDB entry does not show up under Server Objects > Linked Servers >
Providers.

I was able to create a linked server using this command:
EXEC sp_addlinkedserver @server = 'linksvr', @srvproduct = 'Visual FoxPro',
@provider = 'VFPOLEDB', @datasrc = '\\server\path'

and set it to run in process:
EXEC master.dbo.sp_MSset_oledb_prop N'VFPOLEDB', N'AllowInProcess', 1

However, when I run a query such as:
SELECT * FROM linksvr...table

I get the following error:
Cannot create an instance of OLE DB provider "VFPOLEDB" for linked server
"linksvr".

I have stopped and restarted the MSSQLSERVER service and manually registered
VFPOLEDB.dll.

Kind of stuck at this point. This is on SQL Server 2005 Standard 64-bit
edition. I have the Developer edition installed on my PC (with VS 2005) and
these same commands work fine.

Thanks for any pointers.
Caine

 >> Stay informed about: SQL Server 2005 - VFPOLEDB Linked Server Provider 
Back to top
Login to vote
leebethune

External


Since: Feb 02, 2008
Posts: 1



(Msg. 2) Posted: Sat Feb 02, 2008 5:53 am
Post subject: RE: SQL Server 2005 - VFPOLEDB Linked Server Provider [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Don't know it this will help. Works on my system but slow for 250000
records.

I have VFP linked server working through SQL Server.
I am using Foxpro 2.6, Sql Server Express 2005, Access 2003

FOXPRO. Execute the following on SQL Server to create a Linked Server into
the Foxpro Database

sp_addlinkedserver @server = 'LEDGERS',
@srvproduct = 'VFP',
@provider = 'VFPOLEDB.1',
@datasrc = 'c:\FileServer\Ledgers.bak\Company\Pyrotech'

Note using vfpoledb.1 (VFP 9.0) downloaded from
http://www.microsoft.com/downloads/details.aspx?FamilyId=E1A87D8F-2D58...1F-A0FA

THEN SETUP AN ACCESS PASSTHROUGH QUERY

http://www.techonthenet.com/access/tutorials/passthrough/basics01.php

Would like to figure out how to setup a passthrough query completely in VB
code.

SAMPLE QUERIES

SELECT * FROM OPENQUERY(Ledgers, 'select aufiscyear from accounts');
or
SELECT aufiscyear FROM Ledgers...accounts;
Note: SELECT * FROM Ledgers...accounts; doesn't seem to work

TO EDIT THE QUERY IN VISUAL BASIC

Dim dbsCurrent As Database
Dim qryTest As QueryDef
Dim sql As String
Set dbsCurrent = CurrentDb
Set qryTest = dbsCurrent.QueryDefs("queryname")
qryTest.sql = "SELECT * FROM Ledgers...accounts"

"Caine Schneider" wrote:

> Hello,
> I'm having a problem getting the VFPOLEDB provider to work with SQL Server
> 2005. I have installed the VFP 9.0 OLE DB provider from Microsoft, but the
> VFPOLEDB entry does not show up under Server Objects > Linked Servers >
> Providers.
>
> I was able to create a linked server using this command:
> EXEC sp_addlinkedserver @server = 'linksvr', @srvproduct = 'Visual FoxPro',
> @provider = 'VFPOLEDB', @datasrc = '\\server\path'
>
> and set it to run in process:
> EXEC master.dbo.sp_MSset_oledb_prop N'VFPOLEDB', N'AllowInProcess', 1
>
> However, when I run a query such as:
> SELECT * FROM linksvr...table
>
> I get the following error:
> Cannot create an instance of OLE DB provider "VFPOLEDB" for linked server
> "linksvr".
>
> I have stopped and restarted the MSSQLSERVER service and manually registered
> VFPOLEDB.dll.
>
> Kind of stuck at this point. This is on SQL Server 2005 Standard 64-bit
> edition. I have the Developer edition installed on my PC (with VS 2005) and
> these same commands work fine.
>
> Thanks for any pointers.
> Caine

 >> Stay informed about: SQL Server 2005 - VFPOLEDB Linked Server Provider 
Back to top
Login to vote
Caine Schneider

External


Since: Dec 14, 2007
Posts: 2



(Msg. 3) Posted: Sat Feb 02, 2008 7:43 pm
Post subject: RE: SQL Server 2005 - VFPOLEDB Linked Server Provider [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I forgot to come back and update my original post. I determined that the
32-bit VFPOLEDB provider couldn't be used by 64-bit SQL Server. Note that on
a fresh install of SQL Server there are a number of providers on the 32-bit
edition that are not available on the 64-bit edition.

My workaround was to save the DBF files as text and import them with BULK
INSERT.

Caine
 >> Stay informed about: SQL Server 2005 - VFPOLEDB Linked Server Provider 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
linked server error: OLE DB provider 'SQLOLEDB' reported a.. - I set up a linked server between two SQL Server databases. I was able to query the linked database just fine. Then I deleted the linked server using Enterprise Manager. Then I re-created the linked server using Enterprise Manager but the original quer...

SQL Server 2000 linked server problem - This is SQL Server 2000 sp3a. I have linked servers that have been working for a fairly long time. If I am on the server (TermSvc), I cann connect and test through the linked server successfully. If I am initiating this from any workstation or..

What is the default server name of SQL Server 2005 Enterpr.. - How can I know? I just know computername\sqlexpress for 2005 Express. Is it possible to change the server name? Thanks for answering.

provider: Named Pipes Provider, error: 40 - Could not open.. - Hello. I have a sql server install / database on the web server. Work great, all my asp.net 2.0 code on that server can access the database with no problem. I can access the database on the web server from my development machine through sql..

SQL Server 2000/DB2 OLE DB Provider - What is the current DB2 OLE DB Provider for SQL Server 2000 + SP4 and how do I get it? I need to do some linked server connectivity to DB2. I have found the SQL Server 2005 version as part of a feature pack but I'm uncertain about what is current for...
   Database Forums (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]