Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ADO 中有没有办法获得 ms sql 连接使用哪种身份验证?如果我们使用 Windows 身份验证或 SQL 身份验证。
使用SqlConnectionStringBuilder该类解析连接字符串并检查UseIntegratedSecurityorUserName属性。
SqlConnectionStringBuilder
UseIntegratedSecurity
UserName