I've the following 'typical' connection, executing a stored procedure and putting it on a recordset
Set cn = Server.CreateObject("ADODB.Connection")
cn.open "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=Intranet;User Id=sa; Password=;"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open StoredProcedureName,1
I want to execute a Stored procedure that bring me some rows...
and I want to check whether it bring me rows or not....
but... as i try to do a rs.Recordcount, it raises an error.
How can I do it?
thanks in advance!