Re: What's My Password?
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Mon, 8 Jan 2007 13:49:33 -0700
Robin,
Where is it asking you for the username and password? Because
if I use integrated security, it doesn't ask me, it collects
that information from Windows.
It isn't. However, the connection string can include a user name and
password, and it appears the connection string is where I'm currently hung
up.
Here's an example of connection string I'm using:
Data Source=xMyMachineName\xMySQLServerName;Initial
Catalog=myFavoriteDB;Integrated Security=True
And, here again, are the ones I tried:
"Data Source=localhost;Initial Catalog=BlackBeltCoder;Integrated
Security=True"
"Data Source=localhost;Initial Catalog=BlackBeltCoder;Integrated
Security=SSPI"
"Data Source=localhost;Initial Catalog=BlackBeltCoder;user
id=sa;password=opensesame"
The password in the last one I read was the default.
If you have SQLServerExpress installed, the default
name is the computer name with \SQLExpress appended to it.
To find your computer name, right-click on My Computer
and choose the tab "Computer Name".
Where is this? Is this the Data Source value in the connection string or
something else?
To create a SQLServer database using Server Explorer in VS2005:
Click on View/ServerExplorer.
Right-click on the Data Connections node and select
Create New SQL Server Database from the context menu.
This displays the Create New SQL Server Database dialog.
Select the name of the SQL Server you want to use.
You may not see your SQLServer Express edition appear
in the list. If yot, you can type it in as <your machine
name>\SQLExpress or as (local)\SQLExpress or just .\SQLExpress.
Define the appropriate info to log into the selected SQL Server.
By default, SQL Server Express is installed with Windows
Authenticaion in place.
Define the name of the database.
Click <OK>.
I'm happy to try this (I haven't yet). In fact, I'm printing this out.
However, am I screwed given that I already created a database? What would be
*really* nice is if I could see my settings for the database I created and
then change them. But, alas, that's probably too simple, eh?
Thanks.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
.
- Follow-Ups:
- Re: What's My Password?
- From: RobinS
- Re: What's My Password?
- References:
- What's My Password?
- From: Jonathan Wood
- Re: What's My Password?
- From: Cor Ligthert [MVP]
- Re: What's My Password?
- From: RobinS
- Re: What's My Password?
- From: Jonathan Wood
- Re: What's My Password?
- From: RobinS
- What's My Password?
- Prev by Date: Any solution for error message "Could not attach file 'App_Data\Database.mdf' as database 'Database'."?
- Next by Date: Fresh installation
- Previous by thread: Re: What's My Password?
- Next by thread: Re: What's My Password?
- Index(es):
Relevant Pages
|
Loading