Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

problem in displaying result from stored procedure to Frontend application Expand / Collapse
Author
Message
Posted Thursday, September 27, 2012 1:25 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, May 22, 2013 3:33 AM
Points: 161, Visits: 865
Hi
I written a procedure to search hotel based on particular hotel name or based on a cityID. The procedure returns 10 tables.The procedure work fine...executing in 1 milisecond in SSMS.
The problem is after 2-3 days the result is not displaying in the front end(C# and Asp.net) but the result is coming in backend when i execute through SSMS.

When the results are not coming...I drop the procedure and recreate it, then it display results in frontend.

Any idea why this problem occuring
Post #1365064
Posted Monday, October 08, 2012 1:14 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, May 22, 2013 3:33 AM
Points: 161, Visits: 865
Any help?
Post #1369640
Posted Monday, October 08, 2012 2:16 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 10:34 AM
Points: 494, Visits: 2,158
Parameter sniffing possibly?

http://www.simple-talk.com/sql/t-sql-programming/parameter-sniffing/


-----------------------------------
http://www.SQL4n00bs.com
Post #1369664
Posted Monday, October 08, 2012 2:39 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, May 23, 2013 9:27 AM
Points: 5,618, Visits: 10,990
dilipd006 (9/27/2012)
Hi
I written a procedure to search hotel based on particular hotel name or based on a cityID. The procedure returns 10 tables.The procedure work fine...executing in 1 milisecond in SSMS.
The problem is after 2-3 days the result is not displaying in the front end(C# and Asp.net) but the result is coming in backend when i execute through SSMS.

When the results are not coming...I drop the procedure and recreate it, then it display results in frontend.

Any idea why this problem occuring


Can you post the code?


“Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Exploring Recursive CTEs by Example Dwain Camps
Post #1369670
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse