Skip to content

Instantly share code, notes, and snippets.

@amoose
Created July 21, 2014 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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