Asp.net 连接 Sql Server的连接串

xiaoxiao2025-02-11  10

Asp.net 连接Sql server的连接串的两种写法: 1、Server = gray; Database =gray; User ID = gray; Password=gray; Integrated Security=false; 2、Server = gray; Database = gray; Integrated Security= true; 默认的Integrated Security 为false Integrated Security= true 的意思是,你采用了Windows的身份验证模式去连接数据库。 实际上就是Sql Server两种身份验证模式: 1、混合模式 (用户名和密码 或 Windows身份验证) 2、Windows 身份验证 附:Oracle的身份验证也是两种 域和用户名密码 域用于局域网内连接 用户名和密码用于网络身份验证 相关资源:ASP.NET通用数据库访问组件
转载请注明原文地址: https://www.6miu.com/read-5024479.html

最新回复(0)