Re: What's My Password?
- From: "RobinS" <RobinS@xxxxxxxxxxxxxxx>
- Date: Mon, 8 Jan 2007 16:44:24 -0800
Look for *** below.
Robin S.
----------------------------------
"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message
news:utzIia2MHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
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"
*** I would use this one, but you need \sqlservername after
localhost.
"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?
You can put your computer name in, instead of using "localhost".
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?
No, I'm just trying to get you connected at all. Once you've connected
VS2005 to your SQLServer instance, you should be able to connect to
and/or see all of the databases therein.
Thanks.
Jonathan Wood
Good luck.
Robin S.
.
- Follow-Ups:
- Re: What's My Password?
- From: Jonathan Wood
- 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
- Re: What's My Password?
- From: Jonathan Wood
- What's My Password?
- Prev by Date: Re: What's My Password?
- Next by Date: Re: What's My Password?
- Previous by thread: Re: What's My Password?
- Next by thread: Re: What's My Password?
- Index(es):
Relevant Pages
|