1

Our application hosted in multitier environment. When the App servers create a connection to the SQL Server it opens the connection on its default database (let's say xyz) but when the Data Servers who use the same connection string opens connection on default database and as well as master database.

Is there any reason for that. Any ideas ?

1
  • Are you sure they are using the same connection string? If they were using different logins, they could have different default databases. Commented May 14, 2012 at 14:25

1 Answer 1

1

Check the connection properties on your data server. The driver (OLEDB, ODBC, ADO.NET) all should have a capability of identifying the default database that they connect to. My guess is that the data server driver connects by default to the master database because of the driver property.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.