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

Different Result Sets in Stored Procedure

Status
Not open for further replies.

strom99

MIS
Nov 28, 2000
126
US
I have a stored procedure that is dynamically built and returns 13222 rows when executed as

exec pr_rpt_das014 1, 0

When I run the SQL by itself I get 10249 rows, how can these be different? Any ideas?
SQLServer2000

Thanks Much
 
Can't help you without seeing the queries. The obvious answer is that the queries being executed are different or the data changed betwen executions. Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top