Step I:以Run as Administrator的模式打开SQL Server Management Studio。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_01.jpg)
Step II:创建一个新的Login,Login name: tempUser; Authentication:SQL Server authentication;Default database: MyTestDb; Default language:English
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_02.jpg)
Step III: 设置User Mapping,Database role membership: db_owner
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_03.jpg)
Step IV: 保存上面所有的设置并重启SQL Server, 通过VS 2005 Server Explore 用这个新创建的User(tempUser)连接MyTestDb。但是现在下面的错误。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_04.jpg)
Step V:我想起我当初在装SQL Server 2005 的时候,用的是把认证方式设置成为Windows Authetication了,于是我们Server的认证方式改成SQL Server authentication。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_05.jpg)
Step VI: 保存设置,再次重启SQL Server后,重新连接MyTestDb,这次出现了新的问题,系统提示密码必须重新设置。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_06.jpg)
Step VII:我想应该是考虑到安全,新用户的密码必须通过重新修改才有效,于是我通过这个新的User登录Sql Server Management Sudio。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_07.jpg)
Step VIII:Sql Server Management Sudio会自动弹出一个对话框要求你修改你的Password。这验证了我的想法。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_08.jpg)
Step IX:最后一次连接MyTestDb,不成功我是没则了。不过值得庆幸的是——成功了。
![](https://images.cnblogs.com/cnblogs_com/artech/other_01_09.jpg)