Click here to Skip to main content
15,908,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I am Created A Class.cs File for SQL Operations(Such as Insert,Update,Delect,Select). and I am Created a Object for Class.cs in every page and execute the Sql Operations..

It Runs well And Gives The Best OutPut. But when I occurs The Object Functions, each and every time Class.cs File Communicates With The Sql Server..

For That Data Transfer Rate Is Increased And Take Some more Time For Finishing Sql Operation..

How Can I avoid Communicating With SQL-SERVER Each And Every Time.


Regards

SureshKumar.Y
Posted

1 solution

Hi,
How have you handled your class file ??
I think you are doing some sql operation in your class constructor.
Please relook your class file well.
And to avoid frequent sql operations use State Management concepts more effectivly like ViewState,Session,etc. along with ADO.Net DataAdapters
and DataSets. This will help in improving your application's performance by reducing trips to database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900