Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2007

Tip: Looking for answers? Try searching our database.

Table Adapter vs SQL Adapter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miro - 08 Oct 2007 06:19 GMT
Im assuming these two adapters are the same thing.

For example, go to your data sources in your project and drag and drop a
datagrid on your form.  You will get a TableAdapter automatically added
to the form.

The only "Table Adapter" i was able to find it the toolbox is, if I add
the "SQL Data Adapter" to the toolbox manually.

So my question is, are these the same, or where can I find the "table
adapter" that is added by the wizard in the toolbox?

Thanks

Miro
Cor Ligthert[MVP] - 08 Oct 2007 06:20 GMT
Miro,

I assume that most people who use direct the SqlDataAdapter are using it in
code.

\\\
Dim da as new SqlDataAdapter
///
That is for most less work than dragging it. (It becomes than as well nice
in your method, while the dragged methods create forever global objects).

Cor
Miro - 08 Oct 2007 17:25 GMT
> Miro,
>
[quoted text clipped - 9 lines]
>
> Cor
Thanks,

I just was looking for the actual object so i can click on it and see
all the properties and see if there was something i could be missing.  I
do plan to do it by code - i don't see anyway around it once a screen
becomes complicated, or becomes more than a datagrid dragged over from
the dataset.

Baby Steps  ;-)

Thanks again,

Miro
Stephany Young - 08 Oct 2007 13:17 GMT
You won't find (and you cannot add) a TableAdapter to the toolbox.

A TableAdapter is generated when you execute certain operations, one of
which is as you described.

If you are using SQL Server with SqlClient then the generated TableAdapter
enscapsulated a SqlDataAdapter along with other functionality that allows
you to interact with the TableAdapter object.

If you want more information on what a TableAdapter encapsulates then
dissect the generated code.

> Im assuming these two adapters are the same thing.
>
[quoted text clipped - 11 lines]
>
> Miro

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.