Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set up dbf as linked server in SQL2005 fails
Message
De
07/06/2007 08:27:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Set up dbf as linked server in SQL2005 fails
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01231206
Message ID:
01231206
Vues:
60
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform