J
Joey Martin
The last thing I want to be doing is working on Father's day when i have
4 kids wanting to play, but I have no choice. I am hoping someone can
quickly bail me out.
I have an ASP page the passes parameters to a SP and it all works
PERFECT. But, now I want to get the total # of records retrieved.
I always get a -1. I have ready 50 articles on how to fix this with
adUseClient, etc, etc, but none seem to work.
Can you please look at my code and let me know what I am doing wrong??
PLEASE and Thank you!!
--my Code---
Set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=sqloledb;Data Source=xxx;Initial
Catalog=xxx;User Id=xxx;Password=xxx!!"
conn.Open
Set comm=Server.CreateObject("ADODB.Command")
comm.ActiveConnection = conn
comm.CommandText="sp_Search"
comm.CommandType=adCmdStoredProc
comm.Parameters.Append comm.CreateParameter("@keyword", adVarChar,
adParamInput, 1000, thekeyword)
Set rs = Server.CreateObject("ADODB.recordset")
Set rs = comm.Execute
i=rs.RecordCount
4 kids wanting to play, but I have no choice. I am hoping someone can
quickly bail me out.
I have an ASP page the passes parameters to a SP and it all works
PERFECT. But, now I want to get the total # of records retrieved.
I always get a -1. I have ready 50 articles on how to fix this with
adUseClient, etc, etc, but none seem to work.
Can you please look at my code and let me know what I am doing wrong??
PLEASE and Thank you!!
--my Code---
Set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=sqloledb;Data Source=xxx;Initial
Catalog=xxx;User Id=xxx;Password=xxx!!"
conn.Open
Set comm=Server.CreateObject("ADODB.Command")
comm.ActiveConnection = conn
comm.CommandText="sp_Search"
comm.CommandType=adCmdStoredProc
comm.Parameters.Append comm.CreateParameter("@keyword", adVarChar,
adParamInput, 1000, thekeyword)
Set rs = Server.CreateObject("ADODB.recordset")
Set rs = comm.Execute
i=rs.RecordCount