ODBC API is a Microsoft Standard. There are a number of tutorials on the web showing how to do ODBC API calls. The syntax of the SQL statements might be a little difference.
For the rest of the operations:
Dynamically create Database , DSN -- Look at DTI PvCreateDatabase, PvCreateDSN, and SqlConfigDatasource
create DDFs --PvCreateDatabase can do this.
set connection to server or to workgroup computer. --This is done in the ODBC DSN (from a SQL perspective) based on the type of DSN (Engine or Client) used.
create tables, modify tables, drop tables -- Look at CREATE TABLE, ALTER TABLE, and DROP TABLE in the SQL Language Reference in the docs.
create indexes, foreign keys. -- Look in the SQL Language Reference.
Drop index -- Look in the SQL Language Reference.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.