1
Reply

Working with UniqueIdentifiier when inserting from App.

Peter Ishere

Peter Ishere

Apr 13 2009 10:12 AM
2.2k
Hi. I have a table with id(pk),name,surname and email. I want to add a record using the SQLClient. When I set up the SQLCommand and specifying the values to insert, do I need to specify all four colum values or will it be possible to only specify name, surname and email because of the UniqueIdentifier? What I am trying to do here is add records to the table with my code but ensuring that the ID is always incremented with 1 when I add a new entry. How can I achieve this?

Answers (1)