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. How to run a CS program at client without SQL Server!

How to run a CS program at client without SQL Server!

Scheduled Pinned Locked Moved Database
databasecsharpsql-serversysadminhelp
6 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.
  • T Offline
    T Offline
    tuliplanetrain
    wrote on last edited by
    #1

    We developed a CS program by C#,the server is SQL Server,i copyed the program to a system without SQL Server,the program can not be run,the error report is something like this:"Can't connect to Database".when i installed the "Connectivity Only" option of SQL Server,the program can be run in this system. what i want to know is how to run our program without install anything of SQL Server, or just copy something usefull to the system from SQL Server. Tuliplanet

    A M 2 Replies Last reply
    0
    • T tuliplanetrain

      We developed a CS program by C#,the server is SQL Server,i copyed the program to a system without SQL Server,the program can not be run,the error report is something like this:"Can't connect to Database".when i installed the "Connectivity Only" option of SQL Server,the program can be run in this system. what i want to know is how to run our program without install anything of SQL Server, or just copy something usefull to the system from SQL Server. Tuliplanet

      A Offline
      A Offline
      Aryadip
      wrote on last edited by
      #2

      Hi, Seems like you are pointing towards the local machine in your code. Obviously if there is no SQL server on the machine it can't connect. Itz advisable that you keep the connection string configurable and change the connection string in the configuration and make it point towards a machine where you have SQL Server. remember .NET requires MDAC 2.5 and above to connect to any database... regards, Aryadip. Cheers !! and have a Funky day !!

      T 1 Reply Last reply
      0
      • A Aryadip

        Hi, Seems like you are pointing towards the local machine in your code. Obviously if there is no SQL server on the machine it can't connect. Itz advisable that you keep the connection string configurable and change the connection string in the configuration and make it point towards a machine where you have SQL Server. remember .NET requires MDAC 2.5 and above to connect to any database... regards, Aryadip. Cheers !! and have a Funky day !!

        T Offline
        T Offline
        tuliplanetrain
        wrote on last edited by
        #3

        NO,I Pointed towards to the right machine. Tuliplanet

        1 Reply Last reply
        0
        • T tuliplanetrain

          We developed a CS program by C#,the server is SQL Server,i copyed the program to a system without SQL Server,the program can not be run,the error report is something like this:"Can't connect to Database".when i installed the "Connectivity Only" option of SQL Server,the program can be run in this system. what i want to know is how to run our program without install anything of SQL Server, or just copy something usefull to the system from SQL Server. Tuliplanet

          M Offline
          M Offline
          mtone
          wrote on last edited by
          #4

          How Are you connecting, OBDC dsn? Is it setup? SQL SERVER client utility? Show us your connection string( leave out sensitive values of course). Sql Server does not need to run on the computer the app is on.

          T 1 Reply Last reply
          0
          • M mtone

            How Are you connecting, OBDC dsn? Is it setup? SQL SERVER client utility? Show us your connection string( leave out sensitive values of course). Sql Server does not need to run on the computer the app is on.

            T Offline
            T Offline
            tuliplanetrain
            wrote on last edited by
            #5

            Ok!The Connection string is:"Server=XXX";uid=XXX;pwd=XXX;database=XXX". anything wrong? Tuliplanet

            M 1 Reply Last reply
            0
            • T tuliplanetrain

              Ok!The Connection string is:"Server=XXX";uid=XXX;pwd=XXX;database=XXX". anything wrong? Tuliplanet

              M Offline
              M Offline
              mtone
              wrote on last edited by
              #6

              OK, look at the Server name. Do you have the proper ODBC/Client Utility settings that allow you to access that data server. Test your connections. If you want to connect to Sql server you will need something to access it. You can not just say go talk to this server you need to have connectivity thru software like ODBC/Sql server Client Utility.

              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