Skip to content

Instantly share code, notes, and snippets.

Nicolai Gjellestad nicolaigj

Block or report user

Report or block nicolaigj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nicolaigj
nicolaigj / settings.json
Last active Jun 24, 2018
User settings for Visual Studio Code
View settings.json
// Place your settings in this file to overwrite the default settings
{
// Theme
"workbench.colorTheme": "Solarized Dark",
"workbench.iconTheme": "vscode-icons",
// Workbench
// Controls if opened editors from Quick Open show as preview. Preview editors are reused until they are kept (e.g. via double click or editing).
"workbench.editor.enablePreviewFromQuickOpen": false,
View RestoreFromMdfAndLdf.sql
--- Restore a database from MDF and LDF to a new name.
--- Before you execute this script rename the files to the new name and move them to the
--- destination folder.
USE master
GO
DECLARE @OldDatabaseName nvarchar(50) = N'' --- insert old database name
DECLARE @NewDatabaseName nvarchar(50) = N'' --- insert new database name
DECLARE @OldLogFileName nvarchar(50) = N'' --- insert old log file name
You can’t perform that action at this time.