index | search | no replies | posting guidelines | help login | register
Index » Products » ASP DataGrid
search this forum:
:: store procedure ::    show all messagesPost a New Message | Post a Reply
Jul 29 2004, 10:41 PM
 Re: store procedurePost a Reply
 Yimei

View this author's profile Send this author a private message

from: Myrtle Creek, OR

After adding
        .SetProcedure("qaur")
        Call .AddParameter("param1", "200401")
        Call .AddParameter("param2", "200406")
I got this err msg:
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
How do I tell the grid to use command object? My original asp page would say:
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.open  strConn
    Set cm = Server.CreateObject("ADODB.Command")
    cm.CommandText = "qaur"
    cm.CommandType = adCmdStoredProc
    cm.ActiveConnection = conn
    Set R = cm.Execute (RecordsAffected, Array(200401,200406), adCmdStoredProc)
Thanks for your help.

Pages: (1)   [1]

search this forum: