Hi,
I have a database which has a primary key field (integer).
It should be autogenerated on every insert statement.
I am hardcoding it everytime to remove the error that the data supplied is less but the column values are more.
command.Command Text = "Insert into abc values(55,'" + strabcName + "','','O')" ;
This 55 is the primary key which needs to be hardcoded everytime.
Please help me how can I make it autogenerated everytime
I have a database which has a primary key field (integer).
It should be autogenerated on every insert statement.
I am hardcoding it everytime to remove the error that the data supplied is less but the column values are more.
command.Command Text = "Insert into abc values(55,'" + strabcName + "','','O')" ;
This 55 is the primary key which needs to be hardcoded everytime.
Please help me how can I make it autogenerated everytime
Comment