Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 using sql server stored procs with classic asp
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

9 Posts

Posted - 12/29/2012 :  10:11:16  Show Profile  Reply with Quote
Hi, I am struggling to get SQL Server stored procedures working with an existing (old) classic ASP website.
The site has worked for many years but it is now being hacked so I need to rewrite the SQL bits.
I am trying to use procs for the database accesses.
For example:

Dim cmdSessionProc
Set cmdSessionProc = Server.CreateObject("ADODB.Command")
cmdSessionProc.ActiveConnection = conn
cmdSessionProc.CommandText = "GetSessionDetails"
cmdSessionProc.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("RetVal", adInteger, adParamReturnValue)
cmdSessionProc.CreateParameter("SessionID", adInteger, adParamReturnValue)

cmdSessionProc("SessionID")= strSessionID

DIM xxx1=cmdSessionProc(0)
DIM xxx2=cmdSessionProc(1) etc.

Any help would be appreciated.
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000