Skip to content

Instantly share code, notes, and snippets.

@haroldcris
Created February 21, 2021 01:13
Show Gist options
  • Save haroldcris/6422f3de9cc14d8333044e917a2e91be to your computer and use it in GitHub Desktop.
Save haroldcris/6422f3de9cc14d8333044e917a2e91be to your computer and use it in GitHub Desktop.
Restore Database without Log File
CREATE DATABASE MDF_FILE_NAME
ON (FILENAME = 'C: \Filepath\File_name.mdf')
FOR ATTACH_ REBUILD_LOG
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment