![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I do the following. 1.Right click on Data Connection in Server Explorer and choose Add connection 2. In the Data Source I select Microsoft SQL Server (SqlClient) 3.In server name I enter localhost 4. I select Use Window Authentication 5. I click on Test Connection and the result is Test connection succeeded Now to my question I really don't understand how this is possible to test a connection without specifying any database ? Can somebody explain that. |
#3
| |||
| |||
|
|
Tony (johansson.andersson (AT) telia (DOT) com) writes: I do the following. 1.Right click on Data Connection in Server Explorer and choose Add connection 2. In the Data Source I select Microsoft SQL Server (SqlClient) 3.In server name I enter localhost 4. I select Use Window Authentication 5. I click on Test Connection and the result is Test connection succeeded Now to my question I really don't understand how this is possible to test a connection without specifying any database ? Can somebody explain that. This is because that SQL Server stores a default database for you, which you will be connected to if you do not specify a database. By default this default database is the master database. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#4
| |||
| |||
|
|
Hello! I do the following. 1.Right click on Data Connection in Server Explorer and choose Add connection 2. In the Data Source I select Microsoft SQL Server (SqlClient) 3.In server name I enter localhost 4. I select Use Window Authentication 5. I click on Test Connection and the result is Test connection succeeded Now to my question I really don't understand how this is possible to test a connection without specifying any database ? Can somebody explain that. It uses the default database for the login (every login has a default |
![]() |
| Thread Tools | |
| Display Modes | |
| |