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:
No creo que sea por el INNER que es muy grande no???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()
Gracias