Using ADO, you can use the Connection object to perform DDL operations, such as creating a table. Example VBS:
SET oConn = CreateObject("ADODB.Connection"
oConn.Open "dsn=MyDSN"
oConn.Execute "CREATE TABLE C:\Table2(Field1 c(10))"
oConn.Close
SET oConn = NOTHING
There is also ADOX - but I've never used it on VFP tables/databases.
If you using this in ASP as you mention, make sure your DSN's Fetch data in background option is disabled. If you're not using a DSN, make sure your connection string sets BackgroundFetch=No. Failing to do this can eventually crash IIS. Jon Hawkins
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.