Re: Output parameters
From: Roji. P. Thomas (lazydragon_at_nowhere.com)
Date: 07/22/04
- Next message: Steve Kass: "Re: the return value of sp_XML_removedocument"
- Previous message: Steve Kass: "Re: the return value of sp_XML_removedocument"
- In reply to: Willie Bodger: "Re: Output parameters"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 11:23:26 +0530
Use the OLDEDB Provide instead.
that will solve this issue.
-- Roji. P. Thomas Net Asset Management https://www.netassetmanagement.com "Willie Bodger" <willie@bodgerfam.com> wrote in message news:eg058C1bEHA.636@TK2MSFTNGP12.phx.gbl... > OK, I'm not sure if I'm missing something or the SQ Server is missing > something, but when I try this > Dim dbConn, connectionstring, Cmd, CmdParams, Description, EndDate > Set dbConn = Server.CreateObject("ADODB.Connection") > Set Cmd = Server.CreateObject("ADODB.Command") > Set CmdParams = Cmd.Parameters > CmdParams.Append Cmd.CreateParameter("@iTMSNSEntityID", adInteger, > adParamInput, 10, Request.QueryString("iEntityID")) CmdParams.Append > Cmd.CreateParameter("Description",adVarChar,adParamOutput,50) > CmdParams.Append Cmd.CreateParameter("EndDate",adDate,adParamOutput) > connectionstring="DRIVER={SQL > Server};SERVER=MyServer;UID=uid;PWD=pwd;DATABASE=db" > dbConn.Open connectionString > Set Cmd.ActiveConnection = dbConn > Cmd.CommandType = adCmdStoredProc > Cmd.Prepared = True > Cmd.CommandText = "wsp_CancelSubscription" > cmd.Execute ,,adCmdStoredProc + adExecuteNoRecords > > Set Cmd = Nothing > Set CmdParams = Nothing > > I get this: > > Microsoft OLE DB Provider for ODBC Drivers error '80040e21' > [Microsoft][ODBC SQL Server Driver]Optional feature not implemented > > /mysupport/CancelSubscription.asp, line 22 > > Where line 22 is the execution of the sproc and I'm stumped and to my eyes > the error doesn't help me much. Any thoughts on where the problem lies? Thx > for the help! > > wb > > "Roji. P. Thomas" <lazydragon@nowhere.com> wrote in message > news:%237EnGuubEHA.2544@TK2MSFTNGP10.phx.gbl... > > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlpro01/html/sql01b1.asp > > > > -- > > Roji. P. Thomas > > Net Asset Management > > https://www.netassetmanagement.com > > > > > > "Willie Bodger" <willie@bodgerfam.com> wrote in message > > news:%23YXB3JrbEHA.3476@tk2msftngp13.phx.gbl... > > > OK, if I have a sproc which has to return 2 values (a description and a > > > date) to an ASP page, what is the best way to do that? I was starting > with > > > Output parameters, but then realized I wasn't sure how to call them from > > the > > > ASP page that called the sproc. Any examples would be greatly > appreciated. > > > > > > wb > > > > > > > > > > > >
- Next message: Steve Kass: "Re: the return value of sp_XML_removedocument"
- Previous message: Steve Kass: "Re: the return value of sp_XML_removedocument"
- In reply to: Willie Bodger: "Re: Output parameters"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|