Hey here's a good one -
I'm trying without success to get the recordcount property of an adodb recordset object populated by using the adodb.connection execute method in javascript.
The <insert rude words here> always reports either -1 or 0 depending on how I try to get at it. However I know I have six records returned into the recordset object as I can traverse the set using the moveNext() method.
Here is my code
Code:
//DataConn is a legit data source that works (SQLServer) as I can see the data.
SQL = "Exec sp_GetAccountRate @IdString = \"918|808|1214|89|995|300|\""
AccountsData.Data = DataConn.Execute(SQL,rows,1);
Response.Write("No Of Records = " + AccountsData.Data.recordCount);// = 'No Of Records = -1'
Response.Write("No Of Records = " + rows ); //No Of Records = 0
Why does this not work?
When I run the stored proc in SQL analyzer I get the expected data and a rows affected count of 6, @@ROWCOUNT also reports 6.
regards
Shaun McGuile