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 enter image description here

then try added data table enter image description here

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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -