Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenRowSet
Message
From
10/11/2004 11:31:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
OpenRowSet
Miscellaneous
Thread ID:
00960045
Message ID:
00960045
Views:
44
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.
Next
Reply
Map
View

Click here to load this message in the networking platform