Uploaded by Tarun Arora

Exercise SQL

advertisement
--------------------Open Microsoft SQL Server Management Studio and select 'New Query' RESTORE DATABASE MtellSuite_Exercise
--------------------Replace PATH with actual path of *.bak file
--------------------Example: place 'NAME_OF_BAK_FILE.bak' into 'C:\database\' folder and then below: FROM DISK = 'C:\database\NAME_OF_BAK_FILE.bak'
--------------------You may wish to use the native file path 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA'
FROM DISK = 'C:\MtellDatabase\v11ExerciseStarter.bak '
WITH RECOVERY, REPLACE,
--------------------If you are getting errors here check that the folders exists etc. --------------------examples-- MOVE 'MTELLSUITE' to 'c:\database\AspenTech_NEW.MDF', --------------------examples-- MOVE 'MTELLSUITE_LOG' to 'C:\database\AspenTech_NEW.ldf';
MOVE 'MTELLSUITE' to 'C:\MtellDatabase\MtellSuite_Exercise.MDF', MOVE 'MTELLSUITE_LOG' to 'C:\MtellDatabase\MtellSuite_Exercise_log.LDF';
Download