G
Guest
Hi,
I am getting the following error when I run my Visual Basic
application:
"Cannot add primary key constraint since primary key is
already set for the table"
I am using datasets with primary keys which are filled from
an SQL Server database. These datasets were automatically
generated in Visual Studio.
Now, the application worked fine for a while until I added
buttons onto a form. I did not touch any datasets or the
data in the database. I did not touch the file in which the
error is thrown.
Does anybody know what causes this error? I have searched
extensively on Microsoft and Google, and the only solution
I can find is to remove the primary key constraints in the
dataset. I would be grateful if there was another solution
to this rather frustrating problem.
Thankyou
Stephen.
I am getting the following error when I run my Visual Basic
application:
"Cannot add primary key constraint since primary key is
already set for the table"
I am using datasets with primary keys which are filled from
an SQL Server database. These datasets were automatically
generated in Visual Studio.
Now, the application worked fine for a while until I added
buttons onto a form. I did not touch any datasets or the
data in the database. I did not touch the file in which the
error is thrown.
Does anybody know what causes this error? I have searched
extensively on Microsoft and Google, and the only solution
I can find is to remove the primary key constraints in the
dataset. I would be grateful if there was another solution
to this rather frustrating problem.
Thankyou
Stephen.