I have to insert a person's information into a database that is running through SQL Server, and I keep getting a foreign key constraint violation.
I am trying to insert the information into a table called Person.Person
, but it says the problem occurred in a table called Person.BusinessEntityID
. The BusinessEntityID
column is in both tables, so do I have to update both tables at the same time for it to work?
Also I noticed the BusinessEntityID
value corresponds with the row number in the database, so would it be possible to set a value equal to the row number in the table?
Thank you!