Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/06/2006, 12:15
XONIX99
 
Fecha de Ingreso: junio-2006
Mensajes: 2
Antigüedad: 17 años, 11 meses
Puntos: 0
Alguien A Usado En Visual Basic La Propiedad Scope_identity

HOLA.
Quisiera saber si alguien ha usado la propiedad scope_identity, al momento de guardar una tabla con datos, sin usar stores procedures como lo pusieron?

actualmente uso esto
strSQL = "INSERT INTO cimPalletItem ( pallet,bobina,trans_number, weight, repeticiones, flag_ship, date_ship,ubiactual,item,qty_move) " & _
" VALUES (" & lblDataNumPallet.Caption & ", " & lblDataNumBobina.Caption & ", " & TransactionNumber & ", " & _
" " & DecimalNum(lblDataPesoBruto.Caption) & ", " & lblDataRepeticiones.Caption & ", 0, NULL ,'" & lblDataUbicacion.Caption & "', '" & mItem & "'," & lblDataPesoNeto.Caption & ");"
gConn.Execute strSQL

PERO TENGO PROBLEMAS CON LA LLAVE SE ME DUPLICA... LA LLAVE ES PALLET Y BOBINA...