Login failed for user …

I was just comparing two backups against another database. I had restored one database and compared it with Sql Compare from Redgate. All good! Then I restored another database to compare against the same database. No go….

“Login failed for user bla“.

Error ID: was 18456.

Solution:

Silly me! When i restored the second database, I had given it a name different to the first one!

Lesson:

If anything goes wrong “Check the servername, username, password, AND database name!” or in other words check all the connection string/credentials completely!!!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: