Reputation: 121
Is there a way in ADO to get which kind of authentication is using by ms sql connection? If we are using Windows Authentication, or SQL Authentication.
Upvotes: 0
Views: 108
Reputation: 887365
Use the SqlConnectionStringBuilder
class to parse the connection string and check the UseIntegratedSecurity
or UserName
properties.
Upvotes: 3