I'm calling a SQL stored procedure with the folowing
code. It seems to work fine but I want to know if it
doesn't return any rows and the oRsCatList.eof is not
working.
lcDisplayCatLis t = "Y"
Set oConn = Server.CreateOb ject("ADODB.Con nection")
oConn.Open Session("strCon n")
Set oCmd = Server.CreateOb ject("ADODB.Com mand")
set oCmd.ActiveConn ection = oConn
oCmd.CommandTex t = "spCategoryList "
oCmd.commandtyp e = AdCmdStoredProc
oCmd.Parameters .Append oCmd.CreatePara meter("@CatID",
adInteger, adParamInput)
oCmd.Parameters ("@CatID") = lnCatID
set oRsCatList = oCmd.Execute
if oRsCatList.EOF then
lcDisplayCatLis t = "N"
end if
Even when it doesn't return any rows, lcDisplayCatLis t is
still = "Y"
Can anyone help point me in the right direction?
TIA
-Bruce
code. It seems to work fine but I want to know if it
doesn't return any rows and the oRsCatList.eof is not
working.
lcDisplayCatLis t = "Y"
Set oConn = Server.CreateOb ject("ADODB.Con nection")
oConn.Open Session("strCon n")
Set oCmd = Server.CreateOb ject("ADODB.Com mand")
set oCmd.ActiveConn ection = oConn
oCmd.CommandTex t = "spCategoryList "
oCmd.commandtyp e = AdCmdStoredProc
oCmd.Parameters .Append oCmd.CreatePara meter("@CatID",
adInteger, adParamInput)
oCmd.Parameters ("@CatID") = lnCatID
set oRsCatList = oCmd.Execute
if oRsCatList.EOF then
lcDisplayCatLis t = "N"
end if
Even when it doesn't return any rows, lcDisplayCatLis t is
still = "Y"
Can anyone help point me in the right direction?
TIA
-Bruce
Comment