Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OpenRowSet
Message
 
 
À
10/11/2004 11:31:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00960045
Message ID:
00960056
Vues:
9
This message has been marked as the solution to the initial question of the thread.
Hi Jim,

You can create a linked server to VFP data as shown in Re: SQL Server 2000 Linked Server to Visual FoxPro Message #916251.

>I'm trying to get an SQL INSERT command to work that uses the OPENROWSET function but I get the following error message back from MS SQL Server:
>
> Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Ad
> hoc access to OLE DB provider 'VFPOLEDB' has been denied. You must
> access this provider through a linked server.
>
>The SQL command that I submit with SQLEXEC() is:
>
>INSERT INTO Messages SELECT *
>FROM OPENROWSET('VFPOLEDB', 'C:\MyDev\dBXSystems\Data\VisiPak.dbc';'';'',
>'SELECT * FROM Messages ORDER BY PrimeKey')
>
>My MS SQL Server 2000 is running on my workstation. Any help would be greatly appreciated.
>
>Jim White
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform