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

failed to open rowset

Status
Not open for further replies.

sheridan101

Programmer
Dec 31, 2003
29
US
I am sick of this error!!!! If a report is attached to a stored procedure, and ANY INSERT...SELECT... query within the procedure inserts no records, this error WILL result and the report aborts!!!! The same results from trying to perform a RTrim()/MAX/MIN on a NULL produced by a Join, which is also a non-fatal query condition that does not cause the query to terminate. IS THERE A WAY TO TURN THIS OFF AND ALLOW THE REPORT TO FINISH WITHOUT HAVING TO DUPLICATE THE QUERY TO COUNT THE NUMBER OF RECORDS IT WILL RETURN FIRST??? THIS WASTES TIME UNNECESSARILY!!!!!

Ultimately, what I want to do is insert the data from the query into a temp table variable. If there were 0 records inserted, then insert a dummy record for processing, or in some cases, simply produce an empty report. If I execute the stored procedure by itself through Query Analyzer, this process works perfectly. However, because INSERTING 0 records seems to generate a non fatal internal query error, Crystal detects this condition and generates this stupid error in response, terminating the report every time, and I am fed up with it!!! It is THE most useless error because it also tends to mask other more serious errors that a stored procedure might generate!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top