3

A typical Azure SQL Database connection string is as follows:

Server=[server];
Database=[database];
User ID=[user];
Password=[password];
Trusted_Connection=False;
Encrypt=True;
Connection Timeout=30;

What are the Trusted_Connection and Encrypt properties for?

If I exclude them, then I cannot connect to the database from my Azure VM service.

1 Answer 1

3

Encrypt is indication that Azure SQL Database requires explicit encryption of the communication. It will refuse any unecrypted connections.

Trusted_Connection is set to explicitly confirm using of SQL Server authentication as opposed to integrated Windows Authentication (check this SO question on "What is Trusted Connection")

Both parameters are required to be set with respective values in order to successfully connect to SQL Azure.

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.