I’m curious what the difference between the token “Trusted_Connection” and “Integrated Security” in SQL Server connection strings (I believe other databases/drivers don’t support these). I understand that they are equivilent.
I’m curious what the difference between the token Trusted_Connection and Integrated Security in SQL
Share
They are synonyms for each other and can be used interchangeably.
In .Net, there is a class called SqlConnectionStringBuilder that is very useful for dealing with SQL Server connection strings using type-safe properties to build up parts of the string. This class keeps an internal list of synonyms so it can map from one value to another:
(Compiled with help from Reflector)
There are other similar classes for dealing with ODBC and OleDb connection strings, but unfortunately nothing for other database vendors – I would assume the onus is on a vendor’s library to provide such an implementation.