
05/11/2006, 10:24
|
| | Fecha de Ingreso: febrero-2002
Mensajes: 58
Antigüedad: 23 años, 1 mes Puntos: 0 | |
Attempted to read or write protected memory .... Sigo cerrando el cerco, el problema ocurre solo cuando en la clausula where pregunto por un campo varchar. Si pregunto por otro tipo de dato funciona bien.
SQL = "select CATE_ID from T_CATEGORIAS WHERE CATE_NOMBRE='@v_categoria'"
Dim prm As New FbParameter
Dim cmd As FbCommand
cmd = New FbCommand(SQL, FbConnection, Transaccion) cmd.Parameters.Add("@v_categoria", FbDbType.VarChar).Value = "Cat1"
cmd.CommandType = CommandType.Text
__________________ Un saludo
Mafc
España |