Dreamweaver - SQL Server Connetion/Connection String

I've done this before, with ODBC, but having an issue configuring with SQL express.

In Dreamweaver, it gives you the following to setup your connection string:
Persist Security Info=False;                  
Data Source=[serverName];
Initial Catalog=[databaseName];
User ID=[username];

I assume serverName is my local workstation - i.e., localhost
My test databaseName is simply TestDB
Unsure about Persist Security?
Re: username and pw - Do I need this?

Any help that can be provided would be great!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Here http://www.connectionstrings.com/sql-server/ are lots of connection strings for SQL Server.  SQL Express can use ODBC also thru the SQL Native Client.  If you are on the same machine as the SQL Express Server, then SQL Native Client is installed with it.  If you are on a different machine, then you need to download it and install it.  For what it's worth, I have never seen an SQL Server connection string using 'localhost'.  I don't believe you can set up 'localhost' in the SQL SErver configuration.
Anthony PerkinsCommented:
SQL Server Express uses a named instance so the sever becomes something like this:
cuadminAuthor Commented:
This helps a lot - but, silly question re: the 'User ID=myDomain\myUsername;Password=myPassword' section.
Do I need to apply this security to the database in SQL express? Thanks!
Anthony PerkinsCommented:
This helps a lot - but, silly question re: the 'User ID=myDomain\myUsername;Password=myPassword' section.
This cannot be correct.  If you are using myDomain\myUserName, then you are using a Trusted (Windows Authentication) Connection and the password is not neccesary.  If on the other hand you are using SQL Server Authentication than the myDomain\ would not apply.

So first you need to ask yourself what type of Login in SQL Server you have created.  Second as previously suggested go to the following link to build a valid connection string:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cuadminAuthor Commented:
Works, thanks! :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.