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. Using ODBC databases

Using ODBC databases

Scheduled Pinned Locked Moved C#
questiondatabase
4 Posts 3 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.
  • E Offline
    E Offline
    Emilio Guijarro
    wrote on last edited by
    #1

    Hi folks, I´m building a database application, which has to connect to a database through an ODBC provider, but when I insert an OleDbDataAdapter in my form, and try to "connect" it with any ODBC data source, I get a nasty message telling me that the data source and the adapter are not compatible. If I choose another OleDB provider, such as Microsoft Jet driver it works fine. The question is: ¿do I need any kind of special code/libraries to get data from ODBC sources?. Thanks in advance.

    J D 2 Replies Last reply
    0
    • E Emilio Guijarro

      Hi folks, I´m building a database application, which has to connect to a database through an ODBC provider, but when I insert an OleDbDataAdapter in my form, and try to "connect" it with any ODBC data source, I get a nasty message telling me that the data source and the adapter are not compatible. If I choose another OleDB provider, such as Microsoft Jet driver it works fine. The question is: ¿do I need any kind of special code/libraries to get data from ODBC sources?. Thanks in advance.

      J Offline
      J Offline
      joan_fl
      wrote on last edited by
      #2

      What does your ConnectionString look like? Can you also post what excatly the error message says? ------------------------------- Joan MomComputerGeek.com

      E 1 Reply Last reply
      0
      • J joan_fl

        What does your ConnectionString look like? Can you also post what excatly the error message says? ------------------------------- Joan MomComputerGeek.com

        E Offline
        E Offline
        Emilio Guijarro
        wrote on last edited by
        #3

        The ConnectionString of my connection is: "Provider=MSDASQL.1;Persist Security Info=False;Data Source=Base de datos de ejemplo Xtreme;Extended Properties="DSN=Base de datos de ejemplo Xtreme;DBQ=C:\Archivos de programa\Microsoft Visual Studio .NET\Crystal Reports\Samples\Database\es\xtreme;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;";Initial Catalog=C:\Archivos de programa\Microsoft Visual Studio .NET\Crystal Reports\Samples\Database\es\xtreme" And I get this error message: "La conexión que acaba de crear no funciona con el adaptador actual" In english: "The connection you´ve just created doesn´t work with the current adapter" Maybe I need some patch or update for my VS copy. :confused: "When I look into your eyes, there´s nothing there to see, nothing but my own mistakes staring back at me"

        1 Reply Last reply
        0
        • E Emilio Guijarro

          Hi folks, I´m building a database application, which has to connect to a database through an ODBC provider, but when I insert an OleDbDataAdapter in my form, and try to "connect" it with any ODBC data source, I get a nasty message telling me that the data source and the adapter are not compatible. If I choose another OleDB provider, such as Microsoft Jet driver it works fine. The question is: ¿do I need any kind of special code/libraries to get data from ODBC sources?. Thanks in advance.

          D Offline
          D Offline
          David Stone
          wrote on last edited by
          #4

          If you're using Framework 1.0 and VS.NET 2002, you'll need to download the ODBC.NET Data Provider[^]. If you're using Framework 1.1 and VS.NET 2003, then you just need to use the System.Data.Odbc namespace.


          I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder

          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