Skip to content

Instantly share code, notes, and snippets.

@amoose
Created July 21, 2014 23:53
Show Gist options
  • Save amoose/ace4559c2fafe127d364 to your computer and use it in GitHub Desktop.
Save amoose/ace4559c2fafe127d364 to your computer and use it in GitHub Desktop.
formatted MSSQL
INSERT INTO dbpermissionrequests
SELECT username,
servername,
dbname,
accesstype,
Getdate() AS reqDate,
projectid,
'EXTENSION [999]: ',
'1' AS isActive
FROM dbpermissionrequests
WHERE dbpermreqid = 999;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment