J
Jonathan Wood
William,
Either of these changes the error to: "Cannot open database "BlackBelt"
requested by the login. The login failed. Login failed for user
'Jonathan-PC\Jonathan'."
Note that (localhost) worked on my other computer and I see localhost used
in several examples. So there's yet something else that doesn't make sense.
(I'm sure you discuss this in your book.) But the error seems more
meaningful this time. If I right-click on the database (BlackBelt.mdf) in
the Server Explorer and select the Modify Connection command, I see 'Use
Windows Authentication' is selected, for which I obviously have correct
authentication. And if I click 'Test Connection' from this same dialog, it
reports that the connection succeeded.
I created the database. I can see and open it in VS. I'm running on Vista as
an administrator. So, no, I guess I don't. :-/
Err...
SQL Server 2005 Services
- SQL Server (SQLEXPRESS) = Running
- SQL Server Browser = Stopped
SQL Server 2005 Network Configuration
- Protocols for SQLEXPRESS
- Shared Memory = Enabled
- Named Pipes = Disabled
- TCP/IP = Disabled
- VIA = Disabled
SQL Native Client Configuration
- Client Protocols
- Shared Memory = Enabled
- Named Pipes = Enabled
- TCP/IP = Enabled
- VIA = Disabled
Aliases
(Empty)
PDF version of chapter 9?
Thanks.
Change the "(localhost)" to "." or "(local)" to refer to the local system.
Either of these changes the error to: "Cannot open database "BlackBelt"
requested by the login. The login failed. Login failed for user
'Jonathan-PC\Jonathan'."
Note that (localhost) worked on my other computer and I see localhost used
in several examples. So there's yet something else that doesn't make sense.
(I'm sure you discuss this in your book.) But the error seems more
meaningful this time. If I right-click on the database (BlackBelt.mdf) in
the Server Explorer and select the Modify Connection command, I see 'Use
Windows Authentication' is selected, for which I obviously have correct
authentication. And if I click 'Test Connection' from this same dialog, it
reports that the connection succeeded.
This also assumes that you have rights to the default database
"BlackBelt".
I created the database. I can see and open it in VS. I'm running on Vista as
an administrator. So, no, I guess I don't. :-/
Is the service started? Start | SQL Server Configuration Manager to check.
Err...
SQL Server 2005 Services
- SQL Server (SQLEXPRESS) = Running
- SQL Server Browser = Stopped
SQL Server 2005 Network Configuration
- Protocols for SQLEXPRESS
- Shared Memory = Enabled
- Named Pipes = Disabled
- TCP/IP = Disabled
- VIA = Disabled
SQL Native Client Configuration
- Client Protocols
- Shared Memory = Enabled
- Named Pipes = Enabled
- TCP/IP = Enabled
- VIA = Disabled
Aliases
(Empty)
See Chapter 9 (and make sure to download the new PDF version).
PDF version of chapter 9?
Thanks.