Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OpenRowSet
Message
De
10/11/2004 11:31:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
OpenRowSet
Divers
Thread ID:
00960045
Message ID:
00960045
Vues:
45
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
Time is a wonderful teacher. Unfortunately it kills all of its students.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform