Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there any difference in performance between the <asp:SqlDataSource > control and the sqldatareader in code behind?

to get better performance witch on should be used?
thanks...
Posted

Two are different.You can have a look at how to increase performance using sqldatareader here.Sqldatareader is the fastest to access the database.There is brief discussion over here
 
Share this answer
 
v2
btw, the sql data source executes a datareader in background. so there isnt much difference between theese two.
 
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