Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. using DataSet

using DataSet

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasevisual-studiohelpannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iramg
    wrote on last edited by
    #1

    hello i write this code from differnt examples.i want to use dataset in my code but i think dataset is working but this code is inserting data into my table tell me how i can i modify to get benefit of dataset. plz help me soon. Dim mycon As OdbcConnection Dim ds As New DataSet mycon = New OdbcConnection("DSN=BLTPS;APP=Microsoft® Visual Studio .NET;WSID=BLHOMEPC;DATABASE=BLTPS;Trusted_Connection=Yes") Dim selectString As String = "SELECT * FROM icloct" mycon.Open() Dim myOdbcCommand As New OdbcCommand myOdbcCommand.Connection = mycon Dim adapter As OdbcDataAdapter adapter = New OdbcDataAdapter(selectString, mycon) adapter.SelectCommand = New OdbcCommand(selectString, mycon) adapter.Fill(ds, "icloct") myOdbcCommand.CommandText = "INSERT INTO icloct(locid, locdes, adduser, adddate, addtime)VALUES ('klm','yes', '', '', '')" adapter.InsertCommand = myOdbcCommand myOdbcCommand.ExecuteNonQuery() adapter.Update(ds, "icloct") mycon.Close()

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups