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. read paradox file(.DB)

read paradox file(.DB)

Scheduled Pinned Locked Moved Visual Basic
databasehelpcsharpquestion
4 Posts 2 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.
  • J Offline
    J Offline
    jds1207
    wrote on last edited by
    #1

    I am writing an application in vb.net 2005 to read, update, and insert data to paradox database file(.db). When I try to connect I get this error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Here is my code: Dim connectionstring As String = "Driver={Microsoft Paradox Driver(*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=C:\Data Feeds\;Dbq=C:\Data Feeds\;CollatingSequence=ASCII" Dim querystring As String = "SELECT * FROM PriceBooks.DB" Dim tableName As String = "PriceBooks.DB" Dim dataSet As DataSet = New DataSet Using connection As New Odbc.OdbcConnection(connectionstring) Dim adapter As New OdbcDataAdapter() adapter.SelectCommand = New OdbcCommand(querystring, connection) Dim builder As OdbcCommandBuilder = New OdbcCommandBuilder(adapter) connection.Open() adapter.Fill(dataSet, tableName) adapter.Update(dataSet, tableName) Me.DataGridView1.DataSource = dataSet Me.DataGridView1.DataMember = "PriceBooks.DB" End Using Any ideas on what the problem might be? jds1207

    D 1 Reply Last reply
    0
    • J jds1207

      I am writing an application in vb.net 2005 to read, update, and insert data to paradox database file(.db). When I try to connect I get this error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Here is my code: Dim connectionstring As String = "Driver={Microsoft Paradox Driver(*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=C:\Data Feeds\;Dbq=C:\Data Feeds\;CollatingSequence=ASCII" Dim querystring As String = "SELECT * FROM PriceBooks.DB" Dim tableName As String = "PriceBooks.DB" Dim dataSet As DataSet = New DataSet Using connection As New Odbc.OdbcConnection(connectionstring) Dim adapter As New OdbcDataAdapter() adapter.SelectCommand = New OdbcCommand(querystring, connection) Dim builder As OdbcCommandBuilder = New OdbcCommandBuilder(adapter) connection.Open() adapter.Fill(dataSet, tableName) adapter.Update(dataSet, tableName) Me.DataGridView1.DataSource = dataSet Me.DataGridView1.DataMember = "PriceBooks.DB" End Using Any ideas on what the problem might be? jds1207

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You might want to tell us on which line the error occurs and you also want to get rid of the ".db" after Pricebooks:

      Dim querystring As String = "SELECT * FROM Pricebooks"

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      J 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You might want to tell us on which line the error occurs and you also want to get rid of the ".db" after Pricebooks:

        Dim querystring As String = "SELECT * FROM Pricebooks"

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        J Offline
        J Offline
        jds1207
        wrote on last edited by
        #3

        The error occurs on this line: connection.Open()

        D 1 Reply Last reply
        0
        • J jds1207

          The error occurs on this line: connection.Open()

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Perhaps the machine doesn't have the Paradox driver installed?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          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