.NETGURU
advice needed - what approach for sql access
Messages   Related Types
This message was discovered on microsoft.public.dotnet.faqs.

Post a new message to this list...

KavvY
After messing about I've made some headway towards getting a DataSet filled
with data from an SQL database, unfortunately I've been advised that this
isn't the way forward due to the overhead involved of filling the DataSet
with every page access.

So what method is prefereable to use?

Am I supposed to create a DataAdapter that only fetches a certain query,
dependant on what the users type in fields? Or am I supposed to use a
DataSet in the same way?

The book I bought is pretty useless in the respect that it focuses on the
DataSet as the all-encompasing solution to all your needs. Which I debate
TBH.

All I want to do is execute SQL queries and put the results in to text
boxes, then update the SQL tables with an update query afterwards....

Any advice greatly appreciated.
Rich.

Reply to this message...
 
    
CT
One option is to cache the DataSet in the Session or ViewState. I can't tell
how much data you're retrieving, but that obviously affects what is the
"right" approach for you. If you need to display and update data, the
DataSet is most likely your best choice. Are you extracting data from just
one table, in which case you might just need the populate a DataTable object
instead of a DataSet.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"KavvY" <k@u.r> wrote in message
news:ODcJc.3026$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Data.Common.DataAdapter
System.Data.DataSet
System.Data.DataTable




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification