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
要支持其他版本的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

浙公网安备 33010602011771号