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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I return the results text from SQL to ASP W/O a stored proc? 2

Status
Not open for further replies.

nomofoxpro

Programmer
Sep 14, 2000
13
US
Is there any way to return the results text to ASP? For instance When you run an update query and the results pane says (2 Rows Affected). Can you somehow get this value with out using a stored procedure?
 
There may be some properties of a recordset you can use - something like RowsAffected

Simon
 
There is an optional parameter of the Command objects Execute method called RecordsAffected. I think this is what you want. You can issue direct SQL statements via this object (aswell as cretae temporary stored procedures on the fly!!).

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
The time to make all these postings I mean. It was not a programming question.

Thanks again it worked smashingly!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top