Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set up dbf as linked server in SQL2005 fails
Message
From
07/06/2007 08:27:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Set up dbf as linked server in SQL2005 fails
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01231206
Message ID:
01231206
Views:
61
I add the linked server like so:
Declare @server varchar(50),
@srvproduct varchar(50),
@provider varchar(50),
@datasrc varchar(50)

Set @server = 'AccData'
Set @srvproduct = ''
Set @provider = 'MSDASQL'
Set @datasrc = 'AccData'

EXEC master.dbo.sp_addlinkedserver
   @server,  
   @srvproduct,
   @provider,
   @datasrc

* Where AccData is a VFP ODBC datasource (System dsn), that points to a free-table directory
And when I try to query I get

....
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "AccData". (Microsoft SQL Server, Error: 7303)

For help, click...


Of course there is no help to be had from MS and googleing it has not brought me further, so an help is welcome.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Next
Reply
Map
View

Click here to load this message in the networking platform