How to restore data base in Tier 1 using command
The point to be Remembered:-
Stop all the Ax services and iis.
1) Download and install DAC from the below link
Download and run the DacFramework.msi installer for Windows.
https://docs.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver15
Open a new Command Prompt window, and run sqlpackage.exe
sqlpackage is installed to the C:\Program Files\Microsoft SQL Server\150\DAC\bin folder
2) Run the command in the Admin mode
cd C:\Program Files\Microsoft SQL Server\150\DAC\bin
3) Once it gets the command run the below command to start the DB refresh
SqlPackage.exe /a:import /sf:C:\DBBackUp\PELSISPREPRODbackup.bacpac /tsn:localhost /tdn:PRDUT2 /p:CommandTimeout=1200
4) Then take the Bak file to import it again in a fast way.
where,
tsn (target server name) – The name of the SQL Server to import into.
tdn (target database name) – The name of the database to import into. The database should not already exist.
sf (source file) – The path and name of the file to import from.
Comments
Post a Comment