C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Please help me


Posted Date: 12 Oct 2008      Total Responses: 3

Posted By: O. Narendra Babu       Member Level: Bronze     Points: 1


Hi,

I am developing a C#.net application which shows a report of a retail store, the database contains some lacks records, i wrote a query which retrives data to display in the report. It is taking more than 5 mins to execute the query in SQL Server. When i run this query in my application it is giving "time out" error, In sql server I am getting the records, where as in my .net application it is giving the error.

Please help me in this matter.

Thanks & Regards,
O. NARENDRA BABU.




Responses

Author: Antony s Nasarath    12 Oct 2008Member Level: SilverRating:     Points: 4
Hi,

You can limit number of records return at a time, say 1000 records when you load the page and next 1000 when next button clicked on the page.

or

You can increase connection timeout

or You can use third party datgrid like Componentart to get records incrementay (does first option above).

Regards,
Antony



Author: Meetu Choudhary    12 Oct 2008Member Level: GoldRating:     Points: 3
i would suggest you to limit your records while fetching it from database and display them in a grid that might help you

--
Thanks and Regards
Meetu Choudhary



Author: Muralidhar    13 Oct 2008Member Level: BronzeRating:     Points: 4
If fetching of data is an asynchronous process; then, increasing the coneection timeout looks good. If fetching of data is a synchronous process, it will definitely have an impact on Naive users.

Rather, fetch limited number of records from the database. Doing so, user need not wait for long time till all the records are fetched, and moreover, the UI looks good.



Post Reply
You must Sign In to post a response.
Next : how to resize the controls and forms for all monitor size in vb.net 2005
Previous : Regarding word files.
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing

Contact Us    Privacy Policy    Terms Of Use