Arthur Cotrim
Arthur Cotrim

Reputation: 1

Default username and password in connection string SQL Server

I'm trying to do a connection with SQL Server, setting my connection string.

Does anybody know the default username and password?

"DefaultConnection": "Server=(localdb)\\\\MSSQLLocalDB;Database=db_fields;User Id=;Password=;"

Upvotes: 0

Views: 2203

Answers (2)

Arthur Cotrim
Arthur Cotrim

Reputation: 1

Thank you all, I just left empty the User id and Password, and worked well for me. I was passing a non-existing User Id.

Thank you again

Upvotes: 0

Den
Den

Reputation: 786

Try this connection

"Data Source=(localdb)\\\\MSSQLLocalDB;Database=db_fields;Integrated Security=SSPI;MultipleActiveResultSets=true"

Upvotes: 2

Related Questions