SQL database deployment for VB.NET app

前端 未结 2 524
野的像风
野的像风 2021-01-28 00:16

I have read many articles here, but haven\'t quite found the solution. I have a SQL Server Express database that is used by my VB.NET application. I have packaged and deployed t

2条回答
  •  迷失自我
    2021-01-28 00:41

    You should to attach your file to the Sql Server instance.

    CREATE DATABASE YourDatabaseName 
        ON (FILENAME = 'C:\your\data\directory\your_file.mdf'), 
        (FILENAME = 'C:\your\data\directory\your_file_Log.ldf') 
    FOR ATTACH; 
    

提交回复
热议问题