茶馆

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
SQL SERVER Express就不用说了,因为默认的连接就是它

要支持其他版本的SQL SERVER,需要做以下的修改:
1、visual studio 2005 command prompt下运行aspnet_regsql,在SQL SERVER数据库中增加一个角色数据库,名字可以自己取的,这里是aspnetdb.
2、打开IIS的website-default web site,右击properties选择asp.net选项卡,然后单击edit global configuration
3、general标签下面修改连接字符串为Data Source=数据库;Initial Catalog=aspnetdb;Persist Security Info=True;User ID=sa;Password=12345

OK
posted on 2006-03-09 20:02  laue  阅读(260)  评论(1)    收藏  举报