1- create regular folder in public document called "db"
2- add file database.bak file to this folder
3- create inline script with this TSQL:
Code: Select all
use master
RESTORE DATABASE VNLite
FROM DISK = 'C:\Users\Public\Documents\db\database.bak'
WITH
MOVE N'database_data' TO N'd:\datadb\database.mdf',
MOVE N'database_log' TO N'd:\datadb\database_1.ldf',
replace
my question is how change path to use [SourceDir] property not public document?
i want change this path but can't edit tsql ?
FOLLOW US
Get the latest news in Application Packaging