Groups | Blog | Home
all groups > dotnet ado.net > september 2007 >

dotnet ado.net : Select and update



Alejandro
9/12/2007 12:00:00 AM
Hi all,

I'd like to do something that was very easy with ADO in VB6. I'd like to do
a selection in one table and be able to search on the group of registers,
update or even insert one new.

This is possible to do in ADO .NET? How?
Thank you in advance.

Alejandro

Cor Ligthert[MVP]
9/13/2007 12:00:00 AM
Alenjandro,

Yes this is possible, however this newsgroup gives help, not complete code,
that you can find in books or piece by piece on internet.

The things you need are:
a dataset/datatable
a connection,
a command
and if you want to do it in an efficient way a DataAdapter

By instance Bill has a nice book. It is so thick that you can use it as
pillow, so you can sleep on it. When you read it, you will see it has more
then the information you are asking for now.

http://www.hitchhikerguides.net/

Cor


"Alejandro" <alejandron@cibernos.com> schreef in bericht
news:OBDUEHR9HHA.2752@TK2MSFTNGP06.phx.gbl...
[quoted text, click to view]
Alejandro
9/13/2007 12:00:00 AM
Thank you very much Cor. I already know that books exist, but only I need a
small example. Does anybody know where I could find it or where I must ask?

Thanks,

Alejandro

"Cor Ligthert[MVP]" <notmyfirstname@planet.nl> escribió en el mensaje
news:066CD0A2-B21A-4D23-A987-D9160D338815@microsoft.com...
[quoted text, click to view]

David Jeavons
9/13/2007 12:00:00 AM
Hi Alejandro

If you are after a basic example then these articles may be of interest:

http://www.devcity.net/Articles/215/1/article.aspx
http://www.devcity.net/Articles/240/1/article.aspx
http://www.devcity.net/Articles/301/1/article.aspx

They take you through the basics of ADO.NET and demonstrate how you can
select and manage data from both an Access database and an SQL Server
database.


HTH



[quoted text, click to view]

Alejandro
9/14/2007 12:00:00 AM
Good articles, but I don't see any one that read and update (or insert) on
same selection.

"David Jeavons" <djjeavons@gmail.com> escribió en el mensaje
news:%23h5%23rNf9HHA.3916@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

Cor Ligthert[MVP]
9/16/2007 12:00:00 AM
Alejandro,

If you want to do the update easy like it was in VB6 then you can use the
commandbuilder.

samples on this site
http://support.microsoft.com/kb/316758

Cor

"Alejandro" <alejandron@cibernos.com> schreef in bericht
news:eimqtFr9HHA.4200@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]
AddThis Social Bookmark Button