Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i access the RecordCount pro

Status
Not open for further replies.

Discord

Programmer
Dec 7, 2001
133
US
how do i access the RecordCount property of a recordset returned by a stored procedure call? any help would be greatly appreciated.
 
connectionbject.Execute CommandText, RecordsAffected, Options

is your syntax, so if you have a command that executes the stored procedure:

dim sql
sql = "EXEC spMySproc"

then you need the following:

dim recordsAffected
connectionObject.execute sql, recordsAffected

'this will write the number of rows affected
response.write(recordsAffected)

:)
paul
penny1.gif
penny1.gif
 
var rsGetSomeData = Server.CreateObject("ADODB.Recordset");
rsGetSomeData.CursorLocation = 3; //adUseClient
. . .
rsGetSomeData.Open(myQuery, myConnection);
rsGetSomeData.RecordCount;
 
thank you all for your help. i just won't use the ADODB.Command object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top