views:

341

answers:

2

I have the following connection string: "Data Source=localhost\\SQLEXPRESS;", it complains that '' is an invalid username. I can't quite remember the user name or password commands, nor can i remember if there's anything else i'm missing. Can someone help?

+1  A: 

The simplest option is to use Integrated Security:

@"Data Source=localhost\SQLEXPRESS;Integrated Security=true"
dahlbyk
would upvote but i'm out right now...
RCIX
A: 

http://www.connectionstrings.com/sql-server-2005

SLaks
would upvote but i'm out right now...
RCIX