Skip to content

Instantly share code, notes, and snippets.

@EricCote
Created September 25, 2018 20:17
Show Gist options
  • Save EricCote/a7a047899e9a755b1621acd16305af40 to your computer and use it in GitHub Desktop.
Save EricCote/a7a047899e9a755b1621acd16305af40 to your computer and use it in GitHub Desktop.
Sql Database Adventure Works LT 2016 Restore
--SELECT * FROM Sys.Databases
--DROP DATABASE [C:\DEMO\ADVENTUREWORKS_DATA.MDF]
-- https://github.com/Microsoft/sql-server-samples/releases/download/adventureworks/AdventureWorksLT2016.bak
RESTORE DATABASE AdventureWorksLT2016
FROM DISK='C:\Users\eric\Downloads\AdventureWorksLT2016.bak'
WITH
MOVE 'AdventureWorksLT2012_data' TO 'C:\Data\AdventureWorksLT_data.mdf',
MOVE 'AdventureWorksLT2012_log' TO 'C:\Data\AdventureWorksLT_log.mdf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment