怎么样使用InnoSetup制作安装包,能将程序中的数据库附加到SQL Server数据库中?
解决方案
20
调用sql server命令行
CREATE DATABASE databasename
ON (FILENAME = “x:\path\xxx.mdf”)
FOR ATTACH (或 FOR ATTACH_REBUILD_LOG)
CREATE DATABASE databasename
ON (FILENAME = “x:\path\xxx.mdf”)
FOR ATTACH (或 FOR ATTACH_REBUILD_LOG)