Error al hacer consulta de BD My SQL en ASP.net
Publicado por DIDI (2 intervenciones) el 26/09/2007 16:05:32
Hola a todos!...
Me pasa lo siguiente, tengo este código:
Dim mConn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sql As String
Dim special As String
mConn = New ADODB.Connection
rs = New ADODB.Recordset
sql = "select SPECIAL from tbl_user_ncm where IDE_USER_NCM= & user & "
rs.Open(sql, mConn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockReadOnly) ------ AL LLEGAR AQUI ME DA ESTE ERROR:
"The connection cannot be used to perform this operation. It is either closed or invalid in this context."
no se que puede estar pasando me pueden ayudar?... de verdad lo necesito.
Saludos
Me pasa lo siguiente, tengo este código:
Dim mConn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sql As String
Dim special As String
mConn = New ADODB.Connection
rs = New ADODB.Recordset
sql = "select SPECIAL from tbl_user_ncm where IDE_USER_NCM= & user & "
rs.Open(sql, mConn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockReadOnly) ------ AL LLEGAR AQUI ME DA ESTE ERROR:
"The connection cannot be used to perform this operation. It is either closed or invalid in this context."
no se que puede estar pasando me pueden ayudar?... de verdad lo necesito.
Saludos
Valora esta pregunta


0