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.
add a comment |
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.
add a comment |
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.
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.
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
add a comment |
add a comment |
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:
- Some hosting companies denies access by default so you may have to request access from your IP address
- 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
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
add a comment |
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
add a comment |
up vote
1
down vote
If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data
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
add a comment |
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:
- Some hosting companies denies access by default so you may have to request access from your IP address
- 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
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
add a comment |
up vote
1
down vote
accepted
Database: SQL2008_709539
Login: SQL2008_709539_user
Password: password
Host: sql2k803.discountasp.net
Please note also:
- Some hosting companies denies access by default so you may have to request access from your IP address
- 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
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
add a comment |
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:
- Some hosting companies denies access by default so you may have to request access from your IP address
- 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
Database: SQL2008_709539
Login: SQL2008_709539_user
Password: password
Host: sql2k803.discountasp.net
Please note also:
- Some hosting companies denies access by default so you may have to request access from your IP address
- 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
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Nov 11 at 14:10
answered Jun 30 '11 at 18:48
Aaron Bertrand
206k27361403
206k27361403
add a comment |
add a comment |
up vote
1
down vote
If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data
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
add a comment |
up vote
1
down vote
If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data
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
add a comment |
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
If it's working fine, use tcp:sql2k803.discountasp.net as server address, and user / pass as login data
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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