Skip to content

Commit

Permalink
Remove sqlDropStoredProc snippet which conflicts with DESC keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
kburtram committed Oct 25, 2024
1 parent b6a2f57 commit c22cfc8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions extensions/mssql/snippets/mssql.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,22 +185,6 @@
"description": "Create a stored procedure"
},

"Drop a stored procedure": {
"prefix": "sqlDropStoredProc",
"body": [
"-- Drop the stored procedure called '${1:StoredProcedureName}' in schema '${2:dbo}'",
"IF EXISTS (",
"SELECT *",
"\tFROM INFORMATION_SCHEMA.ROUTINES",
"WHERE SPECIFIC_SCHEMA = N'${2:dbo}'",
"\tAND SPECIFIC_NAME = N'${1:StoredProcedureName}'",
")",
"DROP PROCEDURE ${2:dbo}.${1:StoredProcedureName}",
"GO"
],
"description": "Drop a stored procedure"
},

"List tables": {
"prefix": "sqlListTablesAndViews",
"body": [
Expand Down

0 comments on commit c22cfc8

Please sign in to comment.