Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello every body!
Im creating my new application "car archive" which based on sql server database
im using dataset and 'drag and drop' mathod . the dataset includes all tabeles of the data base.
did this effect on the speed of the program?
i noteced that the form is too slow, it takes 2-3 seconds.
the other question : Does it better if i make a seperate datasets for each table or not?

Thanks Alot
Ahmed Abu aziz
Posted

1 solution

Hi,

I generally create datasets that have similar tables in them or that do a similar job. Unless you have hundreds of tables there should not be a speed problem.

However using the drag and drop method, VS creates a default select statement that has no filters.(ie bring back everything in the table.)
To make it quicker you will need to add another query to the adapter and specify what you want returned (put in a where clause somewhere)

If you are using the ObjectDatasource, then specify the new query, and there you go, faster loads.

Hope this helps...
 
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