CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    69

    Question Help please with moving from ADO to ADO.NET...

    Afternoon all,

    I am new to VB.NET and I need to add, edit and delete records from an access database. In VB6 I used the connection and recordset objects but now that I'm using VB.NET I'm not sure what to use now that there is an oledbconnection, oledbadapter, oledbreader objects etc...

    Can anyone tell me which I should use. I am redeveloping my application under VB.NET from the previouse VB6 version so all this is very confussing.

    Thanks in advance,

    B.

  2. #2
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    hi!

    I recommend you to carefully see

    system.data.sqlclient namespace for SQL
    system.data.oledb namespace for anyother db.

    you will find all the required classes to work with databases there.

    luck!
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

  3. #3
    Join Date
    Oct 2002
    Location
    asian
    Posts
    116

    update, add and delete

    Can be more specific on how to update, delete and add?

    I have a datagrid in my form but i cant transfer the changes i made from datagrid to SQL table.

    Can anyone, show me an example? I tried using dataadapter.update method but no luck.


    Thanks,
    Thanks!!!
    Kristine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured