General information
Category:
Visual FoxPro and .NET
Title:
Create Table using VFP OleDB
Environment versions
Network:
Windows 2000 Server
I am trying to create a new table in a foxpro database in c# and was wondering why it doesn't create the physical table, here is the code below which i am using...
*-------------------------------------------------------------
string conn = "Provider=VFPOLEDB.1;Data Source=C:\\Temp\\FoxPro\\test.dbc;Password='';Collating Sequence=MACHINE";
OleDbConnection oleconn = new OleDbConnection(conn);
OleDbCommand olecmd = new OleDbCommand("CREATE TABLE newtable (number CHAR(15))", oleconn);
oleconn.Open();
olecmd.ExecuteNonQuery();
oleconn.Close();
*-------------------------------------------------------------
Could this be an issue with the oledb foxpro driver??
Any help would be appreciated..
Cheers
Dave
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only