This is how I thought it was done but everytime I try this I get an error.
VB Code:
For Each FoundMatch As System.Text.RegularExpressions.Match In Mymatches Dim table8 As String = FoundMatch.Value MsgBox(table8) conn.Execute("CREATE TABLE " & table8 & "(file_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, file_name VARCHAR(64) NOT NULL, file_size MEDIUMINT UNSIGNED NOT NULL, file MEDIUMBLOB NOT NULL)") Next
The error is...
Code:System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147217900 Message="[MySQL][ODBC 3.51 Driver][mysqld-5.0.18-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30(file_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, file_name VARC' at line 1" Source="Microsoft OLE DB Provider for ODBC Drivers"




Reply With Quote