我无法在经典的 asp 代码中使用以下存储过程。它应该返回数据行。我会很感激你的帮助。谢谢
代码:
Set cmdSessionProc = Server.CreateObject("ADODB.Command")
cmdSessionProc.ActiveConnection = conn
cmdSessionProc.CommandText = "GetDetails"
cmdSessionProc.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("RetVal", adInteger, adParamReturnValue)
cmdSessionProc.Parameters.Append
cmdSessionProc.CreateParameter "SessionID", adInteger, adParamReturnValue
cmdSessionProc("SessionID")= required data value (int)
cmdSessionProc.execute
ALTER Procedure [xxxxxxx].[GetDetails]
(@ID int)
AS
SELECT *
FROM [xxxtablexxx]
WHERE [ID] = @ID