initial population of repo

This commit is contained in:
Thierry Schork
2022-12-30 10:37:11 +01:00
parent 969dc57be1
commit 5d7658d85f
72 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{
"id": "84019c93-ac72-47eb-a7ce-9fccf91bd020",
"prefix": "curff",
"description": "Fast-forward read-only cursor",
"body": "/* declare variables */\r\nDECLARE @variable INT\r\n\r\nDECLARE $cursor_name$ CURSOR FAST_FORWARD READ_ONLY FOR $select_statement$\r\n\r\nOPEN $cursor_name$\r\n\r\nFETCH NEXT FROM $cursor_name$ INTO @variable\r\n\r\nWHILE @@FETCH_STATUS = 0\r\nBEGIN\r\n $CURSOR$\r\n\r\n FETCH NEXT FROM $cursor_name$ INTO @variable\r\nEND\r\n\r\nCLOSE $cursor_name$\r\nDEALLOCATE $cursor_name$",
"placeholders": [
{
"name": "cursor_name",
"defaultValue": ""
},
{
"name": "select_statement",
"defaultValue": ""
}
]
}