1、下载数据库文件和程序文档
这本书中所用的数据库和工程文件在以下地址有提供:
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0471748080,descCd-DOWNLOAD.html
里面有一个可供下载的资源列表,下载7.19MB的那个,也就是这个:
SQL: Waremart 2005 database
Download the Waremart 2005 database used as an example in much of the book.
2、修正数据源链接
解开下载下来的压缩包,里面是一个数据库文件叫waremart 2005.mdb,还有一个工程目录叫Waremart 2005。
进入工程目录,打开Waremart 2005.sln,双击数据源Waremart 2005.ds,点编辑把数据源链接改成实际的路径(也就是上面下载的那个waremart 2005.mdb)
3、更改部署设定
右键点击项目属性,在部署一栏中把AS服务器地址和库名填好,点确定更改。
最后直接部署就可以了。