Help getting the following create table function to work with mysql and C#

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-27T10:46:18Z Indexed on 2010/05/27 10:51 UTC
Read the original article Hit count: 186

Filed under:
|
|
string createTable = "CREATE TABLE IF NOT EXISTS " + m_strDatabase + "_TimeLogs (logName VARCHAR(16), logTime INTEGER, logCountry TEXT, UNIQUE(logName)) TYPE=MyISAM;";

When this runs, no table is created. No errors either.

Im using an ODBC connector.

the variable passes in the db name, so that the table created would be users_TimeLogs if the database was called users for example.

Am I doing something wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about mysql