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. C#
  4. ODBCDataAdapter

ODBCDataAdapter

Scheduled Pinned Locked Moved C#
databasehelpcsharpannouncement
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.
  • K Offline
    K Offline
    KishoreT
    wrote on last edited by
    #1

    Hello, I am facing a problem in updation of data to dBaseIII database. I have to append two dBaseIII databases and insert to third database(which all the table structures are same). I have merged two datasets and tried to update the third database by using ODBCDataAdapter, I was able to see that the two datasets are merged in debugging, but when it was updated by the command ODBCDataAdapter.Update(dsDataset); the new records are not reflecting the physical dBaseIII database. I was able to select the data from the database, but not able to insert new data through C# program. The following is the code I have tried! Can any one help me to resolve this problem. adSTOERUNG = new System.Data.Odbc.OdbcDataAdapter("SELECT * FROM xyzTable",cnnST ); System.Data.Odbc.OdbcCommandBuilder builder = new System.Data.Odbc.OdbcCommandBuilder(adSTOERUNG); adSTOERUNG.Fill(DSMain,"xyzTable"); DSMain.Merge(DS2Insert.Tables[0]); adSTOERUNG.Update(DSMain.Tables[0]); The following ODBC driver I have used for connection. CollatingSequence=ASCII;SafeTransactions=0;Threads=3;Statistics=0;MaxScanRows=8;DefaultDir=c:\xyz;FILEDSN=c:\xyz\xyztable.dbf.dsn;index=code; DriverId=21; UserCommitSync=Yes;FIL=dBase III;PageTimeout=0;Driver={Microsoft dBase Driver (*.dbf)};MaxBufferSize=10000;UID=admin" Regards, Kishore.

    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