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. Windows Forms
  4. SQL2005

SQL2005

Scheduled Pinned Locked Moved Windows Forms
databasesql-serversysadminhelpquestion
7 Posts 5 Posters 6 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
    tantoun
    wrote on last edited by
    #1

    hi all, how can i run a windows client application that need to connect to an sql server 2005 while the sql server is installed into a server machine. plz i need a help regards. bye

    etretyertyery

    K 1 Reply Last reply
    0
    • T tantoun

      hi all, how can i run a windows client application that need to connect to an sql server 2005 while the sql server is installed into a server machine. plz i need a help regards. bye

      etretyertyery

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You need a sqlConnection object. In the connection string point it to the sql 2005 sql server. Often it is a good idea to store the connection string in the app.config file of your windows app. The connection string might look something like: "Data Source=yourservername;Database=yourdatabasename;Integrated Security=SSPI;" if you are using NT authentication. If you are using sql user and password then you have those items in the connection string instead of Integrated security Ben

      G 1 Reply Last reply
      0
      • K kubben

        You need a sqlConnection object. In the connection string point it to the sql 2005 sql server. Often it is a good idea to store the connection string in the app.config file of your windows app. The connection string might look something like: "Data Source=yourservername;Database=yourdatabasename;Integrated Security=SSPI;" if you are using NT authentication. If you are using sql user and password then you have those items in the connection string instead of Integrated security Ben

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        You can find more connection strings here: www.connectionstrings.com

        P 1 Reply Last reply
        0
        • G Giorgi Dalakishvili

          You can find more connection strings here: www.connectionstrings.com

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Giorgi Dalakishvili wrote:

          You can find more connection strings here: www.connectionstrings.com

          Darn, Giorgi, you beat me to it :laugh:

          T 1 Reply Last reply
          0
          • P Paul Conrad

            Giorgi Dalakishvili wrote:

            You can find more connection strings here: www.connectionstrings.com

            Darn, Giorgi, you beat me to it :laugh:

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

            it is important to know that the client does not have an sqlclient in his machine 10x regards.

            etretyertyery

            C 1 Reply Last reply
            0
            • T tantoun

              it is important to know that the client does not have an sqlclient in his machine 10x regards.

              etretyertyery

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              If the client does not have SQL Server on his machine, I assume he can see SQL Server over his local network ? If so, it makes no difference. If not, how do you expect this to work ?

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              T 1 Reply Last reply
              0
              • C Christian Graus

                If the client does not have SQL Server on his machine, I assume he can see SQL Server over his local network ? If so, it makes no difference. If not, how do you expect this to work ?

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                T Offline
                T Offline
                tantoun
                wrote on last edited by
                #7

                i expect to use a dcom server implemented as a windows services that allow the client to connect to the sql server by invoking a method if any idea plz give me a help bye.

                etretyertyery

                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