473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SqlDataAdapters

Hi All,

I am creating a web app and on one form I am using multiple
SqlDataAdapters which I dont think from a design stand point I should
be doing, correct? Can I only use one and change the sqlcommands
associated with the sqldataadapter to point to other sp's that I have
created in Sql server? I guess I would have to have the datasets that
are pointing to certain SqlDataAdapters to point to just the one. How
would I do this?

Thanks,

JJ

Nov 17 '05 #1
1 1229
SqlDataAdapter are essentially objects running under the web server
thread(s) and they use a relatively small footprint of memory when you
compare them to other objects like DataSets or SqlCommand, so the benefit of
reducing their number is near zero.

It's the same question as asking « I am better creating 20 distinct
variables or creating only 10 variables and reusing some of them for double
usages ? »

Beginners will often choose the second option - in the false hope of saving
memory - while more experienced programmers will go directly for the first.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
<jj****@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi All,

I am creating a web app and on one form I am using multiple
SqlDataAdapters which I dont think from a design stand point I should
be doing, correct? Can I only use one and change the sqlcommands
associated with the sqldataadapter to point to other sp's that I have
created in Sql server? I guess I would have to have the datasets that
are pointing to certain SqlDataAdapters to point to just the one. How
would I do this?

Thanks,

JJ

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ASP.Net programmer | last post by:
I have a few SQLDataAdapters which select a MAX() value from a few different tables. Here is a sample of the SQL statement: SELECT MAX(startdate) AS startdate FROM some_table1 WHERE (startdate...
2
by: JJ | last post by:
Hi All, On my webform in ASP.net I have dragged 4 SqlDataAdapters and have dropped them to webform. I was wondering what is the norm for how many SqlDataAdapters should be used in a webform? Is...
0
by: Peter Walburn | last post by:
Hi I have been using VB .Net 2002 for quite a while now and have had no (well very few) problems with it. I have lots of forms with DataSets and SqlDataAdapters on them. Everything has been fine...
0
by: John | last post by:
Is there any way I can access the SqlDataAdapter wizard from VS2005? (for ported .net 1.1 projects) This doesn't seem to work in webforms, only in windows forms. Thanks, John
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.