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. Database & SysAdmin
  3. Database
  4. Sybase DB access in windows 7

Sybase DB access in windows 7

Scheduled Pinned Locked Moved Database
databasecsharpsysadminhelpquestion
2 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.
  • V Offline
    V Offline
    VenkataRamana Gali
    wrote on last edited by
    #1

    Hi all I am using .net FW 3.5, its desktop applicaiton. MyApplication is fetching data from sybase adoptive server and populating in it. Below connection, code.

    connectionString=DRIVER=MERANT 3.60 32-BIT Sybase;UID=test;DB=db1;SRVR=XYZSERVER;PWD=*****

    using (OdbcConnection connection = new OdbcConnection(connStringFromConfig)
    {
    OdbcDataAdapter adapter = new OdbcDataAdapter(query, onnection);
    connection.Open();
    adapter.Fill(dt);
    connection.Close();
    }

    above code works fine in windows xp. where as same code is not working in windows 7. I am executing in 64bit machine. i got error while opening connection.

    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Anything i am missing ? or do i need to configure anything? appriciated u r quick response.

    Ramana

    J 1 Reply Last reply
    0
    • V VenkataRamana Gali

      Hi all I am using .net FW 3.5, its desktop applicaiton. MyApplication is fetching data from sybase adoptive server and populating in it. Below connection, code.

      connectionString=DRIVER=MERANT 3.60 32-BIT Sybase;UID=test;DB=db1;SRVR=XYZSERVER;PWD=*****

      using (OdbcConnection connection = new OdbcConnection(connStringFromConfig)
      {
      OdbcDataAdapter adapter = new OdbcDataAdapter(query, onnection);
      connection.Open();
      adapter.Fill(dt);
      connection.Close();
      }

      above code works fine in windows xp. where as same code is not working in windows 7. I am executing in 64bit machine. i got error while opening connection.

      ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

      Anything i am missing ? or do i need to configure anything? appriciated u r quick response.

      Ramana

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

      The coding part is completely correct, file connection is open and closed also. I guess window 7 does not support this function. best face cleanser

      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