![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
||||
|
||||
|
Necesitas un SQLCommandBuilder para hacer las Inserciones, Modificaciones y Eliminación de Registros junto con tu SQLDataAdapter , de ese dataAdapter obtienes el Dataset.
SqlDataAdapter da = SqlDataAdapter("select * from tabla", con); SqlCommandBuilder cb = New SqlCommandBuilder(da); Dataset ds = new Dataset(); da.Fill(ds, "TuTabla"); Ahora con el Dataset nuevoRow = dataset.Tables("TuTabla").newRow(); nuevoRow("codigo") = "dfdfd"; dataset.Tables("TuTabla").rows.Add(nuevoRow); luego añades a tu Base de Datos en una instrucción con: da.Update(ds.Tables("TuTabla"));
__________________
self.free; |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| ayuda urgente con nt | Patricio | Windows | 9 | 13-03-2007 13:37:47 |
| Ayuda URGENTE...! | AMINOA2R | Firebird e Interbase | 2 | 04-05-2006 22:26:53 |
| Urgente Ayuda, por fa, | emartinez | SQL | 3 | 29-06-2005 00:38:05 |
| Ayuda urgente | JulioGO | Firebird e Interbase | 2 | 29-12-2004 11:20:38 |
| Ayuda urgente | isc_hilda | Conexión con bases de datos | 1 | 27-06-2003 18:46:33 |
|