The following code segment created the Users table:
CREATE TABLE [Users2]
([UserID] int primary key, [UserName] text(255), [Hash1] text(255),
[Firstname] text(255), [Lastname] text(255), [Email] text(255),
[Hint] text(255), [Hash2] text(255), [Active] YesNo,
[StartDate] DateTime, [LastUse] DateTime, [Level] integer)
However, I need this piece of code to stay in my application until I'm sure all of the database users have the table added.
Every time I attempt to call the SQL using:
I get an OleDbException with the unhelpful message, "Syntax error in CREATE TABLE statement" or "Invalid SQL statement," respectively.
- CREATE TABLE IF NOT EXISTS [Users] or
- IF NOT EXISTS [Users] CREATE TABLE,
What am I doing wrong?