Re: Using SQL on Development Machine
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Sat, 11 Aug 2007 19:55:12 -0600
William,
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.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
.
- References:
- Using SQL on Development Machine
- From: Jonathan Wood
- Re: Using SQL on Development Machine
- From: Cowboy \(Gregory A. Beamer\)
- Re: Using SQL on Development Machine
- From: Jonathan Wood
- Re: Using SQL on Development Machine
- From: Cowboy \(Gregory A. Beamer\)
- Re: Using SQL on Development Machine
- From: Jonathan Wood
- Re: Using SQL on Development Machine
- From: William Vaughn
- Using SQL on Development Machine
- Prev by Date: Re: Using SQL on Development Machine
- Next by Date: Re: sqlmetal
- Previous by thread: Re: Using SQL on Development Machine
- Next by thread: Re: Using SQL on Development Machine
- Index(es):
Relevant Pages
|
Loading