Re: Stores Procedures..
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 07/20/04
- Next message: Val Mazur: "Re: Hierarchical Recordset"
- Previous message: Mugunthan Mugundan[MS]: "Re: ADODB: Server will not allow .Mode=adModeShareDenyNone"
- In reply to: Coneection OLAP: "Stores Procedures.."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 19:09:24 -0700
Yo siento. Mi Espanol no es bastante bueno a contestarle en su lengua.
When you execute a stored procedure that does not return a rowset (from a
SELECT), the Recordset returned is "closed" (adStateClosed). this is normal
for a stored procedure. Either change the stored procedure by adding SET
NOCOUNT ON or step over the empty rowsets with NextRecordset.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Coneection OLAP" <ConeectionOLAP@discussions.microsoft.com> wrote in
message news:93723BE2-0346-48EB-A93A-A4F07EADAE5A@microsoft.com...
> Hola A Todos:
>
> Mi Problema Es El Siguiente, Deseo Acceder A Un Procedure desde una Pagina
ASP
> El Código Que utilizo Es El Seguiente:
>
> Dim cnn, cmd, rst
> Dim sQuery, ls_SQL
>
> Set cnn = Server.CreateObject ( "ADODB.Connection" )
> Set rst = Server.CreateObject ( "ADODB.Recordset" )
>
> cnn.Open "Provider=SQLOLEDB.1;server=MXPOLFILE1; uid=USR_WEB2004;
pwd=aspnet; database=dbWaldosMart;"
>
> sQuery = "EXEC spS_MultiSelect'2','Sexo'"
> rst.Open sQuery, cnn
>
> While Not rst.EOF
> Response.Write("<br> " & rst(0).Value)
> rst.MoveNext
> Wend
>
> rst.Close()
> cnn.Close()
> Set rst = Nothing
> Set cnn = Nothing
>
> Y Al Momento Que Quiero Ver Los Resulados En La WEB, Me Manda El
siguiente Mensaje De Error:
>
> ADODB.Recordset error '800a0e78'
> Operation is not allowed when the object is closed.
>
> Me Gustaria Saber Si Alguien Conoce El por Que Del Error Y Si Fuera Tan
ambale De Decirme Como Corregirlo..
>
> De Antemano Agradesco Su Atención...
>
> saludos..!!!
>
>
>
- Next message: Val Mazur: "Re: Hierarchical Recordset"
- Previous message: Mugunthan Mugundan[MS]: "Re: ADODB: Server will not allow .Mode=adModeShareDenyNone"
- In reply to: Coneection OLAP: "Stores Procedures.."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|