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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Table problem

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
0
0
CA
Hello,

I am trying to add a table through my VB application to a FoxPro database. The table is being created in the same folder as my VB application and not in the database specified by the connection.

On the msdn microsoft help site, it states that 'Tables created in the Visual FoxPro OLE DB Provider using CREATE TABLE are placed in the default folder of the calling application, unless you specify another location'.

Does anyone know how to specify another location?

Thanks!
 
It should be as simple as providing a full path name for the table. e.g. instead of
CREATE TABLE Mytable ...
use
CREATE TABLE c:\mydir\Mytable ...

Don't forget quotes if there are any embedded spaces in the path.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top