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 / C++ / MFC
  4. SQL Connect error????

SQL Connect error????

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasesql-serversysadmin
5 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.
  • X Offline
    X Offline
    xxhimanshu
    wrote on last edited by
    #1

    :confused::confused:Hi all, I developed an application with MFC using SQL server datatbse.. This appliaction runs fine on my machine having windows 2000 Pro.. I am getting an error while running the same applicaiton on any fresh machine...The error i am getting is Specified SQL server not found ConnectionOpen (CreatFile())...as far as i can guess this is the problem because there is no SQL server driver installed on fresh machines..what should i do to make it run any machine...i mean is there any way out so that i dont have to install anything else then to run my applicaiton on client side..and it does all.. any help or pointers are highly appreciated.. thanks a lot in advance.. regards, Himanshu

    D 1 Reply Last reply
    0
    • X xxhimanshu

      :confused::confused:Hi all, I developed an application with MFC using SQL server datatbse.. This appliaction runs fine on my machine having windows 2000 Pro.. I am getting an error while running the same applicaiton on any fresh machine...The error i am getting is Specified SQL server not found ConnectionOpen (CreatFile())...as far as i can guess this is the problem because there is no SQL server driver installed on fresh machines..what should i do to make it run any machine...i mean is there any way out so that i dont have to install anything else then to run my applicaiton on client side..and it does all.. any help or pointers are highly appreciated.. thanks a lot in advance.. regards, Himanshu

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You've not shown the actual code that is in error so help is going to be minimal, if at all. Is the application using ODBC?

      X 1 Reply Last reply
      0
      • D David Crow

        You've not shown the actual code that is in error so help is going to be minimal, if at all. Is the application using ODBC?

        X Offline
        X Offline
        xxhimanshu
        wrote on last edited by
        #3

        :confused:hi, thanks for the reply...yes i am using ODBC in my application...I am trying to install MDAC with the application..now it seems to work fine on other machines where it already doesn't have MDAC..if it has it shows an error again..is there any solution to it??? Please reply???it's very urgent...thanks a lot in advance.. regards Himanshu

        D 1 Reply Last reply
        0
        • X xxhimanshu

          :confused:hi, thanks for the reply...yes i am using ODBC in my application...I am trying to install MDAC with the application..now it seems to work fine on other machines where it already doesn't have MDAC..if it has it shows an error again..is there any solution to it??? Please reply???it's very urgent...thanks a lot in advance.. regards Himanshu

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

          Well, I was going to suggest updating the SQL ODBC drivers but that may not do it. If your program works fine on machines without MDAC installed and produces an error on machines with MDAC installed, I'm at a loss.

          X 1 Reply Last reply
          0
          • D David Crow

            Well, I was going to suggest updating the SQL ODBC drivers but that may not do it. If your program works fine on machines without MDAC installed and produces an error on machines with MDAC installed, I'm at a loss.

            X Offline
            X Offline
            xxhimanshu
            wrote on last edited by
            #5

            hi, thanks for ur reply...now it doesnt show any error..i am confused however..it was showing the error..but when i built the same setup on my machine(win2000 pro) with installshield..it works fine..and installs the application...and does the work..I am installing MDAC 2.7 .. thanks a lot anyway.. Himanshu

            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