这个该怎么做,好人一生平安
问题描述:
1、将参数名和对应的作用连线
2、分别写出用windows验证模式和SQL Server验证模式连接数据库的连接字符串(连接本地服务器,STUDY数据库)
1、Datasource
A、 设置要连接的数据库服务器名
2、DataBase B、 设置要连接到数据库名
C、 3、initialcatalog 服务器的安全性设置
D、 登录SQLServer的账号
4、 Server
E、 登录SQLServer的密码
5、pwd
6、User ID
7、uid 设置Connectionstring属性的值
1、使用Windows验证模式连接数据库STUDY
8、Password
2、使用SQLServer验证模式连接数据库STUDY
9、integratedsecurity
答
您好,
1,4--A; 2,3--B; 6,7--D; 5,8--E; 9--C
使用Windows 验证模式连接字符串:
<connectionStrings>
<add name="ConString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=STUDY;Integrated Security=true" />
</connectionStrings>
使用SqlServer验证模式连接字符串:
<connectionStrings>
<add name="ConString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=STUDY;User ID=uid;Password=password" />
</connectionStrings>