Actualizar una tabla desde dataset
Publicado por NESTOR (8 intervenciones) el 19/03/2007 22:14:50
Hola gente
Necesito ayuda con el Dataset y la update con la BD.
Dentro del Dadaset se modifican los datos. Utilizo lo siguiente para identificar si el usuario ha modificado algun dato:
If Not DS.HasChanges(DataRowState.Modified) Then Exit Sub
Luego para actualizar la tabla estoy utilizando lo siguiente:
Adapter.Update(DS, "CLIENTE")
Inmediatamente me aparece el siguiente mensaje:
"Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
Me podrina ayudar!!! Muchas gracias
Necesito ayuda con el Dataset y la update con la BD.
Dentro del Dadaset se modifican los datos. Utilizo lo siguiente para identificar si el usuario ha modificado algun dato:
If Not DS.HasChanges(DataRowState.Modified) Then Exit Sub
Luego para actualizar la tabla estoy utilizando lo siguiente:
Adapter.Update(DS, "CLIENTE")
Inmediatamente me aparece el siguiente mensaje:
"Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
Me podrina ayudar!!! Muchas gracias
Valora esta pregunta


0