| Ver tema anterior :: Ver tema siguiente |
| Autor |
Mensaje |
rockfavc Cmdr


Registrado: 23 Ago 2002Mensajes: 138Ubicación: Colombia (Medellín)
|
Publicado: Vie 20 Ago, 2004 4:46 pm Asunto: Sentencia Update en un TQuery |
|
|
Hola amigos!
Alguien me puede decir: cuando en un TQuery se ejecuta una sentencia Update, como saber que se ejecutó bien o no, puede ser que no encuentre la consicion a la cual esta sometida la sentencia.
Muchas gracias.
Saludos |
|
| Volver arriba |
|
 |
XyVy Master


Registrado: 25 Ago 2002Mensajes: 557Ubicación: Murcia (España)
|
Publicado: Vie 20 Ago, 2004 4:55 pm Asunto: |
|
|
Puedes ver si afecto a alguna tupla:
| Cita: | Returns the number of rows operated upon by the latest query execution.
__property int RowsAffected = {read=GetRowsAffected, nodefault};
Description
Inspect RowsAffected to determine how many rows were updated or deleted by the last query operation. If no rows were updated or deleted, RowsAffected has a value of zero. RowsAffected will have a value of –1 if the execution of the SQL statement could not be executed due to an error condition. This latter situation would typically follow the throwing of an exception.
|
Espero que te sirva. _________________ OJO!! Ya tenemos subforo de Bases de Datos!!
Gracias a los admins. |
|
| Volver arriba |
|
 |
|