- Dec 1, 2000
- 2,419
- 0
- 0
command.CommandText = "CREATE TABLE Documents (" +
"ID INTEGER NOT NULL DEFAULT AUTOINCREMENT PRIMARY KEY," +
"FileName VARCHAR(256) NOT NULL," +
"Content LONGVARCHAR," +
"username VARCHAR(64) references Users );";
The backend is SQL Server 2000. The error is that AUTOINCREMENT is "not permitted in this context."
I think what I'm trying to do is obvious.
Thoughts?
"ID INTEGER NOT NULL DEFAULT AUTOINCREMENT PRIMARY KEY," +
"FileName VARCHAR(256) NOT NULL," +
"Content LONGVARCHAR," +
"username VARCHAR(64) references Users );";
The backend is SQL Server 2000. The error is that AUTOINCREMENT is "not permitted in this context."
I think what I'm trying to do is obvious.
Thoughts?