sql - WebMatrix set Insert_Identity on -
i've made database in webmatrix. , i've set isidentity true table wont auto increment. gives me error saying "insert_identity off".
how turn on?.
the sql code used create table
create table product ( _id integer identity not null, primary key(_id), unique(_id), name varchar(50) not null ) and here how gui looks 
then try added data table 
and the error happens. i've got no clue on whats going on
i'm having same issue, i've been looking , found
webmatrix 3 sql server ce 4 busted?
it says webmatrix3 doesn't support db gui interaction.
that's answer question... hope helps in case did. can create, show data,etc basic mysql commands. furthermore...
when i/someone create sql script creates table no problems @ all. u should not have problem either.
otherwise, when insert values webpage, error comeback :( , cannot find why...
this example of did.
var db = database.open("db"); var insertcommand = "insert driver(name, lname, dni) values(@0, @1, @2)"; db.execute(insertcommand, name, lname, dni); response.redirect("~/driver"); i writing because you/someone might have same problem laterrr in webpage , complete answer, because creating tables said before sql script u should have no problem @ all, but, inserting form, think autoincrement problem because shows error pk ...(in of cases i've been reading).
hope helps, read comeback webmatrix2 :( ...
Comments
Post a Comment