Data Adapter Wizard problem!!

M

Mike Lambert

I have a table with a row set as UniqueIdentifier, RowGuid = Yes, and the
row is set as the primary key, but when I try to use the Data Adapter Wizard
it give me an error that it can't create the Update and Delete command
because it can not determine unique columns in the table. If a create a
test table with a column set the same way it work fine. How can the wizard
have a hard time determining a unique column when the primary key is
set?????

Thanks,
Mike
 
G

Guest

Does your SELECT statement retrieve the primary key? All the other statements are based on the SELECT Statement so that if you are not selecting the primary key (frequently done when it has no inherent meaning) the generation of the update statements can't use it to identify each row

Also, if you include it in you SELECT Statement to get around this problem, you may encounter a problem wherein the wizard tries to gen a statement that wants to update the primary key (I am getting that problem with Timestamp).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top