how to save record from datagrid back to sql server?

J

jaYPee

anyone know how can i save record from datagrid back to sql server
using datacommand? im trying to use dataset but no luck. the source
has a join table and when i use the dataadapter wizard it says in the
update statement and delete statement that "Could not determine which
columns uniquely identify..."

now i read from msdn that a datacommand can update directly to the
database and i want to know how can i save record from datagrid.

thanks in advance
 
P

Paul Deibel

Jay,

Do your tables have primary keys (unique indexes?)

If not, most wizards will not work right.

Hope that helps.

P.D.
 
D

Dennis Redfield

This does not seem reasonable to me. If you are doing your joins on the
client then you are putting biz logic onto the client. There has gotta' be
a way.

dlr
 

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