sp_attach_db N'OASystem',N'OASystem_data.mdf' 

解决方案 »

  1.   

    it seems that you also want to import data to the database you created during the set up of you deployment.you can create a .cmd file (creat database script) and .dat file using database project template in the VS development enviroment and invoke the .cmd file in your deployment project to import the data .dat file ) to the database
      

  2.   

    http://www.csdn.net/develop/read_article.asp?id=18681http://www.csdn.net/develop/read_article.asp?id=18992http://www.csdn.net/develop/read_article.asp?id=18996