Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to updating a ddf file with SQL

Status
Not open for further replies.

timeframe

Programmer
Aug 15, 2000
12
GB
I'm wanting to link tables from various DBs to one combined DB without using the PCC. I tried using an SQL statement via an ADO connection through an ODBC DSN, but this caused an error which said "you are not authorised to perform this operation". The SQL syntax was:

UPDATE X$File SET Xf$Loc = 'crm01\DCRM01CU.dat' WHERE Xf$ID = '1'

Also Access gives a similar error message when I try to update a linked File.ddf.

Updates work on the Billing table (using adoCon.Execute)in Demodata but that's not a system table.

How do I gain the correct permissions to perform such an update using SQL, or is it a restriction imposed by Pervasive's ODBC driver?
 
Your best bet is to update to SP3 of Pervasive.SQL. This includes a number of additional SQL ALTER commands that allow you to point to different files, change the DDF definition without changing the physical file, etcetera.
 
Yes I've got ALTER table to work now with SP3 installed. You can't use UPDATE on a system table it seems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top