Connect to SQL Server database









up vote
0
down vote

favorite












I'm trying to connect to a SQL Server database at Discount asp.net hosting with SQL Server Management Studio. Here`s the connection string that is working fine. What parts of it should I use in Management Studio to connect to remote Db?



Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_709539;
User ID=SQL2008_709539_user;Password=password;


I'm filling the fields in the following way:



  • Server name: tcp:sql2k803.discountasp.net

  • login: SQL2008_709539_user

  • password: password

  • authentication type is SQL Server.









share|improve this question



























    up vote
    0
    down vote

    favorite












    I'm trying to connect to a SQL Server database at Discount asp.net hosting with SQL Server Management Studio. Here`s the connection string that is working fine. What parts of it should I use in Management Studio to connect to remote Db?



    Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_709539;
    User ID=SQL2008_709539_user;Password=password;


    I'm filling the fields in the following way:



    • Server name: tcp:sql2k803.discountasp.net

    • login: SQL2008_709539_user

    • password: password

    • authentication type is SQL Server.









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to connect to a SQL Server database at Discount asp.net hosting with SQL Server Management Studio. Here`s the connection string that is working fine. What parts of it should I use in Management Studio to connect to remote Db?



      Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_709539;
      User ID=SQL2008_709539_user;Password=password;


      I'm filling the fields in the following way:



      • Server name: tcp:sql2k803.discountasp.net

      • login: SQL2008_709539_user

      • password: password

      • authentication type is SQL Server.









      share|improve this question















      I'm trying to connect to a SQL Server database at Discount asp.net hosting with SQL Server Management Studio. Here`s the connection string that is working fine. What parts of it should I use in Management Studio to connect to remote Db?



      Data Source=tcp:sql2k803.discountasp.net;Initial Catalog=SQL2008_709539;
      User ID=SQL2008_709539_user;Password=password;


      I'm filling the fields in the following way:



      • Server name: tcp:sql2k803.discountasp.net

      • login: SQL2008_709539_user

      • password: password

      • authentication type is SQL Server.






      sql-server sql-server-2008 connection-string discountasp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 22 '11 at 15:47









      Cade Roux

      72.5k36150249




      72.5k36150249










      asked Jun 30 '11 at 18:27









      Yaroslav Yakovlev

      3,40253152




      3,40253152






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted











          • Database: SQL2008_709539


          • Login: SQL2008_709539_user


          • Password: password


          • Host: sql2k803.discountasp.net

          Please note also:



          1. Some hosting companies denies access by default so you may have to request access from your IP address

          2. Sometime I was unable to connect using host name, I used IP address to connect via Management Studio (such problem appear due firewall, proxy, etc)

          ADDED:
          Also see whether you've enabled remote tcp/ip connections






          share|improve this answer






















          • tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
            – Yaroslav Yakovlev
            Jun 30 '11 at 18:41










          • As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
            – sll
            Jun 30 '11 at 18:46

















          up vote
          2
          down vote













          If it returns "Login failed" then you are getting to SQL Server but SQL Server is rejecting you (so it won't involve firewall, DNS, etc). Did you try explicitly setting the database information in the Connection dialog in SSMS? You may have to follow up with the host and ask them what state was found in the SQL Server log to go along with your failed attempt to log in. This is often because the database wasn't specified or the wrong database was specified.



          Here is a list of all the states I've observed and what they probably mean, if your host won't directly tell you what to fix but they do tell you what state was found in SQL Server's log:



          • Troubleshooting Error 18456





          share|improve this answer





























            up vote
            1
            down vote













            If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data






            share|improve this answer




















            • actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
              – Yaroslav Yakovlev
              Jun 30 '11 at 18:38










            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f6539376%2fconnect-to-sql-server-database%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted











            • Database: SQL2008_709539


            • Login: SQL2008_709539_user


            • Password: password


            • Host: sql2k803.discountasp.net

            Please note also:



            1. Some hosting companies denies access by default so you may have to request access from your IP address

            2. Sometime I was unable to connect using host name, I used IP address to connect via Management Studio (such problem appear due firewall, proxy, etc)

            ADDED:
            Also see whether you've enabled remote tcp/ip connections






            share|improve this answer






















            • tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
              – Yaroslav Yakovlev
              Jun 30 '11 at 18:41










            • As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
              – sll
              Jun 30 '11 at 18:46














            up vote
            1
            down vote



            accepted











            • Database: SQL2008_709539


            • Login: SQL2008_709539_user


            • Password: password


            • Host: sql2k803.discountasp.net

            Please note also:



            1. Some hosting companies denies access by default so you may have to request access from your IP address

            2. Sometime I was unable to connect using host name, I used IP address to connect via Management Studio (such problem appear due firewall, proxy, etc)

            ADDED:
            Also see whether you've enabled remote tcp/ip connections






            share|improve this answer






















            • tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
              – Yaroslav Yakovlev
              Jun 30 '11 at 18:41










            • As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
              – sll
              Jun 30 '11 at 18:46












            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted







            • Database: SQL2008_709539


            • Login: SQL2008_709539_user


            • Password: password


            • Host: sql2k803.discountasp.net

            Please note also:



            1. Some hosting companies denies access by default so you may have to request access from your IP address

            2. Sometime I was unable to connect using host name, I used IP address to connect via Management Studio (such problem appear due firewall, proxy, etc)

            ADDED:
            Also see whether you've enabled remote tcp/ip connections






            share|improve this answer















            • Database: SQL2008_709539


            • Login: SQL2008_709539_user


            • Password: password


            • Host: sql2k803.discountasp.net

            Please note also:



            1. Some hosting companies denies access by default so you may have to request access from your IP address

            2. Sometime I was unable to connect using host name, I used IP address to connect via Management Studio (such problem appear due firewall, proxy, etc)

            ADDED:
            Also see whether you've enabled remote tcp/ip connections







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 30 '11 at 18:40

























            answered Jun 30 '11 at 18:33









            sll

            48.4k1480128




            48.4k1480128











            • tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
              – Yaroslav Yakovlev
              Jun 30 '11 at 18:41










            • As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
              – sll
              Jun 30 '11 at 18:46
















            • tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
              – Yaroslav Yakovlev
              Jun 30 '11 at 18:41










            • As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
              – sll
              Jun 30 '11 at 18:46















            tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
            – Yaroslav Yakovlev
            Jun 30 '11 at 18:41




            tried ip as well. Didnt work in the same way. I remember I made it work some time ago. And had the same problem. So it puzzles me as I know there is a solution for all that.
            – Yaroslav Yakovlev
            Jun 30 '11 at 18:41












            As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
            – sll
            Jun 30 '11 at 18:46




            As I said, sometimes hosting companies denies access for the Management Studio Connections, connect support
            – sll
            Jun 30 '11 at 18:46












            up vote
            2
            down vote













            If it returns "Login failed" then you are getting to SQL Server but SQL Server is rejecting you (so it won't involve firewall, DNS, etc). Did you try explicitly setting the database information in the Connection dialog in SSMS? You may have to follow up with the host and ask them what state was found in the SQL Server log to go along with your failed attempt to log in. This is often because the database wasn't specified or the wrong database was specified.



            Here is a list of all the states I've observed and what they probably mean, if your host won't directly tell you what to fix but they do tell you what state was found in SQL Server's log:



            • Troubleshooting Error 18456





            share|improve this answer


























              up vote
              2
              down vote













              If it returns "Login failed" then you are getting to SQL Server but SQL Server is rejecting you (so it won't involve firewall, DNS, etc). Did you try explicitly setting the database information in the Connection dialog in SSMS? You may have to follow up with the host and ask them what state was found in the SQL Server log to go along with your failed attempt to log in. This is often because the database wasn't specified or the wrong database was specified.



              Here is a list of all the states I've observed and what they probably mean, if your host won't directly tell you what to fix but they do tell you what state was found in SQL Server's log:



              • Troubleshooting Error 18456





              share|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                If it returns "Login failed" then you are getting to SQL Server but SQL Server is rejecting you (so it won't involve firewall, DNS, etc). Did you try explicitly setting the database information in the Connection dialog in SSMS? You may have to follow up with the host and ask them what state was found in the SQL Server log to go along with your failed attempt to log in. This is often because the database wasn't specified or the wrong database was specified.



                Here is a list of all the states I've observed and what they probably mean, if your host won't directly tell you what to fix but they do tell you what state was found in SQL Server's log:



                • Troubleshooting Error 18456





                share|improve this answer














                If it returns "Login failed" then you are getting to SQL Server but SQL Server is rejecting you (so it won't involve firewall, DNS, etc). Did you try explicitly setting the database information in the Connection dialog in SSMS? You may have to follow up with the host and ask them what state was found in the SQL Server log to go along with your failed attempt to log in. This is often because the database wasn't specified or the wrong database was specified.



                Here is a list of all the states I've observed and what they probably mean, if your host won't directly tell you what to fix but they do tell you what state was found in SQL Server's log:



                • Troubleshooting Error 18456






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 11 at 14:10

























                answered Jun 30 '11 at 18:48









                Aaron Bertrand

                206k27361403




                206k27361403




















                    up vote
                    1
                    down vote













                    If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data






                    share|improve this answer




















                    • actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                      – Yaroslav Yakovlev
                      Jun 30 '11 at 18:38














                    up vote
                    1
                    down vote













                    If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data






                    share|improve this answer




















                    • actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                      – Yaroslav Yakovlev
                      Jun 30 '11 at 18:38












                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data






                    share|improve this answer












                    If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 30 '11 at 18:30









                    Denis Biondic

                    5,34113166




                    5,34113166











                    • actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                      – Yaroslav Yakovlev
                      Jun 30 '11 at 18:38
















                    • actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                      – Yaroslav Yakovlev
                      Jun 30 '11 at 18:38















                    actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                    – Yaroslav Yakovlev
                    Jun 30 '11 at 18:38




                    actually it returns "Login failed for user" error message. This connection string is working fine and is used at this hosting. Any ideas?
                    – Yaroslav Yakovlev
                    Jun 30 '11 at 18:38

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f6539376%2fconnect-to-sql-server-database%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    What does pagestruct do in Eviews?

                    Dutch intervention in Lombok and Karangasem

                    Channel Islands