Ver Mensaje Individual
  #1  
Antiguo 22-04-2007
rhasshid rhasshid is offline
Registrado
 
Registrado: mar 2007
Posts: 6
Reputación: 0
rhasshid Va por buen camino
Error en insert into

hola a todos bueno creo que no envie en el dato correcto pero quisiera que por favor me ayuden con esto
Tengo una base de datos en interbase 6 y quiero agregarle datos a la tabla permisos pero cuando ejecuto la instruccion insert into me da un error y quisiera saber porque
El error es el siguiente:
Project Julsa.exe raised exception class EDatabaseError with message 'DBX Error: No Mapping for Error Code Found'. Process stopped. Use Step or Run to Continue.
gracias se los agradece muchisimo
el codigo que uso es el siguiente:

Código Delphi [-]
 with dmDatos.qryModifica do begin
sContra := Encripta(txtContra.Text);
if sModo = 'Insertar' then begin
Close;
SQL.Clear;
SQL.Add('INSERT INTO usuarios (login, contra,nombre, fecha_cap, Direccion, Ciudad,');
SQL.Add('Provincia, Departamento, telefono) VALUES(');
SQL.Add('''' + txtUsuario.Text + ''',');
SQL.Add('''' + sContra + ''',''' + txtNombre.Text + ''',' + FormatDateTime('mm/dd/yyyy hh:nn:ss',Now)+ ''',');
SQL.Add('''' + txtDireccion.Text + ''',''' + txtCiudad.Text + ''',');
SQL.Add('''' + txtProvincia.Text + ''',''' + txtDepartamento.Text + ''',''' + txtTelefono.Text + ''')');
 
 
ExecSQL;

Última edición por marcoszorrilla fecha: 22-04-2007 a las 20:22:02.
Responder Con Cita