Foros del Web » Creando para Internet » Diseño web »

problema al insertar datos en una tabla de access

Estas en el tema de problema al insertar datos en una tabla de access en el foro de Diseño web en Foros del Web. Hola estoy aprendiendo el lenguaje C# y a utilizar bases de datos, y necesito ayuda, tengo un error al querer insertar datos en una tabla ...
  #1 (permalink)  
Antiguo 19/08/2008, 19:59
 
Fecha de Ingreso: agosto-2008
Mensajes: 4
Antigüedad: 15 años, 8 meses
Puntos: 0
problema al insertar datos en una tabla de access

Hola estoy aprendiendo el lenguaje C# y a utilizar bases de datos, y necesito ayuda, tengo un error al querer insertar datos en una tabla de access esto me dice el error:

Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:

Line 63:
Line 64: orden.Connection.Open();
Line 65: orden.ExecuteNonQuery();
Line 66: orden.Connection.Close();
Line 67:


Source File: c:\Inetpub\wwwroot\prog21.aspx Line: 65

Stack Trace:

[OleDbException (0x80004005): Operation must use an updateable query.]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult) +192
System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult) +48
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method) +106
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108
ASP.prog21_aspx.INSERTAR(Object sender, EventArgs e) in c:\Inetpub\wwwroot\prog21.aspx:65
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

No se que es lo que pasa alguien podria ayudarme esto es lo que esta en la linea 65 ( orden.ExecuteNonQuery(); )

Gracias.

Última edición por Wacko; 19/08/2008 a las 20:02 Razón: error
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:02.