
26/07/2005, 10:26
|
| | Fecha de Ingreso: enero-2005 Ubicación: Benifaió (Valencia)
Mensajes: 319
Antigüedad: 20 años, 2 meses Puntos: 0 | |
Error raro al hacer INSERT INTO desde VB.NET Buenas tardes, ya estoy incordiando otra vez xD
Haber, en uno de los formularios que tengo, intento insertar con INNER JOIN (como hacia hasta ahora si casi problemas), pero me sale un mensaje de error diciendo "Los datos de cadena o binarios se truncarian. Se termino la instruccion"
Y no se muy bien a que se refiere.
El codigo es este:
Código:
Dim SqlCommando As New SqlCommand("INSERT INTO tbl1ComputerConfig(IdXNComputer, idNItem, fldTComuperName, fldTDomainName, idNUser, fldTCPU, fldNCPUspeed, fldNRAM, fldTTipDriveA, fldTTipDriveB, fldTGbDriveC, fldTGbDriveD, fldTGbDriveE, fldTGbDriveF, fldTCDROMDrive, fldTOtherDrives, fldTVideo, fldTLANCard, fldTMAC) VALUES(' " & txtCodigo.Text & " ',' " & sel & " ',' " & txtComputerName.Text & " ',' " & txtDominio.Text & " ',' " & usuario & " ',' " & txtCpu.Text & " ',' " & txtVelocidad.Text & "',' " & txtRam.Text & "',' " & txtA.Text & "',' " & txtB.Text & "',' " & txtC.Text & "',' " & txtD.Text & "',' " & txtE.Text & "',' " & txtF.Text & "',' " & txtCDROM.Text & "',' " & txtOtros.Text & "',' " & txtVideo.Text & "',' " & txtLan.Text & "',' " & txtMac.Text & "')", conection)
SqlCommando.ExecuteNonQuery()
MsgBox("Inserción realizada con éxito")
refrescar = 0
conection.Close()
Dim frm As New frmModItemAsset
frm.Show()
Me.Close()
No creo que sea por el INNER que es muy grande no???
Gracias
Última edición por fredy666; 26/07/2005 a las 10:43 |