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. Connect to sql server

Connect to sql server

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadminhelp
11 Posts 5 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.
  • M Offline
    M Offline
    messages
    wrote on last edited by
    #1

    Hi everyone, I was installing sql server 2005 and it installs perfect with all components without any errors now I run SQL Server Management Studio but it wants a name to server but I dont know name of server how do I solve this problem? Thanks

    W C M E 4 Replies Last reply
    0
    • M messages

      Hi everyone, I was installing sql server 2005 and it installs perfect with all components without any errors now I run SQL Server Management Studio but it wants a name to server but I dont know name of server how do I solve this problem? Thanks

      W Offline
      W Offline
      WhiteGirl23
      wrote on last edited by
      #2

      If you use Server Authentification use the name of your computer ,the user "sa" and the password that you set to sql server during the installation.

      M 1 Reply Last reply
      0
      • M messages

        Hi everyone, I was installing sql server 2005 and it installs perfect with all components without any errors now I run SQL Server Management Studio but it wants a name to server but I dont know name of server how do I solve this problem? Thanks

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        It is the name of the machine, or "(local)" for the server on the machine you are using. If you installed a named instance (something you would have to do explicitly) then you will have to add /InstanceName after the machine name.


        -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

        M 1 Reply Last reply
        0
        • W WhiteGirl23

          If you use Server Authentification use the name of your computer ,the user "sa" and the password that you set to sql server during the installation.

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

          Im using of: Server type: Database Engine Server name: "I dont know what is it" Authentication: Im trying with "Windows Authentication" and also Sql Server Authentication with sa" but I got this error: Im trying with your answer(sa) but I got this error: TITLE: Connect to Server ------------------------------ Cannot connect to local. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1231) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=1231&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------

          1 Reply Last reply
          0
          • C Colin Angus Mackay

            It is the name of the machine, or "(local)" for the server on the machine you are using. If you installed a named instance (something you would have to do explicitly) then you will have to add /InstanceName after the machine name.


            -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

            M Offline
            M Offline
            messages
            wrote on last edited by
            #5

            Im using of: Server type: Database Engine Server name: "I dont know what is it" and also I checked with local Authentication: Im trying with "Windows Authentication" and also Sql Server Authentication with sa" but I got this error: TITLE: Connect to Server ------------------------------ Cannot connect to local. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1231) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=1231&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------

            C 2 Replies Last reply
            0
            • M messages

              Im using of: Server type: Database Engine Server name: "I dont know what is it" and also I checked with local Authentication: Im trying with "Windows Authentication" and also Sql Server Authentication with sa" but I got this error: TITLE: Connect to Server ------------------------------ Cannot connect to local. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1231) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=1231&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              messages wrote:

              Cannot connect to local.

              No, not "local". You need "(local)" with the brackets.


              -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

              1 Reply Last reply
              0
              • M messages

                Im using of: Server type: Database Engine Server name: "I dont know what is it" and also I checked with local Authentication: Im trying with "Windows Authentication" and also Sql Server Authentication with sa" but I got this error: TITLE: Connect to Server ------------------------------ Cannot connect to local. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1231) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=1231&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                messages wrote:

                this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections

                Are you trying to connect to a SQL Server running on a separate machine? If so you have to enable TCP/IP on the server. Use the SQL Server Configuration Manager


                -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

                M 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  messages wrote:

                  this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections

                  Are you trying to connect to a SQL Server running on a separate machine? If so you have to enable TCP/IP on the server. Use the SQL Server Configuration Manager


                  -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

                  M Offline
                  M Offline
                  messages
                  wrote on last edited by
                  #8

                  Im very thanksful for your time. I try with all various local its not helpful and also I want to connect to sql server on my computer not remote I went to services but I couldnt see any sql name on the services, then I decide to uninstall Sql server when I went for add/remove window for uninstall sql on the uninstall window I saw that it writes "No instances have been installed." on the Select an instace and on the Remove SQL Server 2005 common components it writes Workstation Components Can you help me I need to help you I searched internet but I cant find an answer Thanks

                  1 Reply Last reply
                  0
                  • M messages

                    Hi everyone, I was installing sql server 2005 and it installs perfect with all components without any errors now I run SQL Server Management Studio but it wants a name to server but I dont know name of server how do I solve this problem? Thanks

                    M Offline
                    M Offline
                    martin_hughes
                    wrote on last edited by
                    #9

                    Depends. If it's installed on your local machine with Windows Authentication: Server = localhost - or if you're using Sql Server Express localhost\SqlExpress or if you named an instance during installation SqlExpress\TheNameYouChose (or just uninstall and do it again properly). If you installed it locally, but used mixed mode authentication: user name = sa password = whatever you set it to be. If you installed it on a networked machine: I can't help you here.

                    "It was the day before today.... I remember it like it was yesterday." -Moleman

                    M 1 Reply Last reply
                    0
                    • M martin_hughes

                      Depends. If it's installed on your local machine with Windows Authentication: Server = localhost - or if you're using Sql Server Express localhost\SqlExpress or if you named an instance during installation SqlExpress\TheNameYouChose (or just uninstall and do it again properly). If you installed it locally, but used mixed mode authentication: user name = sa password = whatever you set it to be. If you installed it on a networked machine: I can't help you here.

                      "It was the day before today.... I remember it like it was yesterday." -Moleman

                      M Offline
                      M Offline
                      messages
                      wrote on last edited by
                      #10

                      I dont know why I cant see any servics of sql server on the services?

                      1 Reply Last reply
                      0
                      • M messages

                        Hi everyone, I was installing sql server 2005 and it installs perfect with all components without any errors now I run SQL Server Management Studio but it wants a name to server but I dont know name of server how do I solve this problem? Thanks

                        E Offline
                        E Offline
                        edukulla
                        wrote on last edited by
                        #11

                        You can connect to your local server by using "." Just type the "." in the name field and then login using credentials either "windows" or SQL. Hope this helps. Thanks!

                        Santhosh Kumar Edukulla

                        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