1.安装VS2005时选择SQL2005一并安装;
2.到microsoft官方免费下载SQL2005管理工具Microsoft SQL Server Management Studio Express Service Pack 2,下载地址:http://www.microsoft.com/downloads/details.aspx?familyid=6053C6F8-82C8-479C-B25B-9ACA13141C9E&displaylang=zh-cn;
3.安装Microsoft SQL Server Management Studio Express Service Pack 2;
4.打开Microsoft SQL Server Management Studio Express,用window认证登陆sql server;
5.新建查询,输入:exec sp_password null,'你的密码',sa
alter login sa enable
6.在你的服务器(也就是根节点)上右键-属性,选择安全性,把服务器身份验证改为SQL Server 和 Windows 身份验证模式;
7.完成。
连接sql2005:
SqlConnection con = new SqlConnection(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=testDB;Persist Security Info=True;User ID=sa;Password=123");
相关文章:
-
2021-11-27
-
2022-01-19
-
2021-10-18
-
2022-12-23
-
2021-08-06
-
2021-08-05
-
2021-11-18
猜你喜欢
-
2022-02-06
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-11-29
-
2022-12-23
相关资源
-
下载
2021-07-01
-
下载
2023-03-11
-
下载
2023-02-14