normally i open my recordset like so:
set objRS = Server.CreateObject("ADODB.Recordset"
objRS.LockType = 1 'adLockReadOnly
objRS.CursorType = 0 'adOpenForwardOnly
but now i want to use this method so I can use input parameters in my SPO for recordcounts. Does this method default to adOpenForwardOnly and adLockReadOnly or do I have to do something else to it?
Set objCommand = Server.CreateObject("ADODB.Command"
objCommand.ActiveConnection = objConn
objCommand.CommandType = adCmdStoredProc
objCommand.CommandText = "usp_pagingtest1"
objCommand.Parameters.Append objCommand.CreateParameter("@SrchCriteria", adVarChar, adParamInput, 50, strSrchCriteria)
objCommand.Parameters.Append objCommand.CreateParameter("@TotalRecs", adInteger, adParamOutput, 4)
Set objRS = objCommand.Execute
thanks
set objRS = Server.CreateObject("ADODB.Recordset"
objRS.LockType = 1 'adLockReadOnly
objRS.CursorType = 0 'adOpenForwardOnly
but now i want to use this method so I can use input parameters in my SPO for recordcounts. Does this method default to adOpenForwardOnly and adLockReadOnly or do I have to do something else to it?
Set objCommand = Server.CreateObject("ADODB.Command"
objCommand.ActiveConnection = objConn
objCommand.CommandType = adCmdStoredProc
objCommand.CommandText = "usp_pagingtest1"
objCommand.Parameters.Append objCommand.CreateParameter("@SrchCriteria", adVarChar, adParamInput, 50, strSrchCriteria)
objCommand.Parameters.Append objCommand.CreateParameter("@TotalRecs", adInteger, adParamOutput, 4)
Set objRS = objCommand.Execute
thanks