dbo.QBM_PCursorDrop
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:00.493 · modified 2026-04-14T23:14:10.047 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@Cursorname | nvarchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PExecuteSQLWithRetry_LLP | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionErrorRethrow | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure QBM_PCursorDrop (@Cursorname nvarchar(255)) as begin declare @SQLcmd nvarchar(max) SET XACT_ABORT OFF BEGIN TRY select 2 @SQLcmd = ' 3if CURSOR_STATUS(N''Global'', N''@Cursorname'') = -3 4 begin 5 if CURSOR_STATUS(N''Local'', N''@Cursorname'') >= 0 close @Cursorname 6 if CURSOR_STATUS(N''Local'', N''@Cursorname'') >= -1 deallocate @Cursorname 7 end 8else 9 begin 10 if CURSOR_STATUS(N''Global'', N''@Cursorname'') >= 0 close @Cursorname 11 if CURSOR_STATUS(N''Global'', N''@Cursorname'') >= -1 deallocate @Cursorname 12 end 13 14' 15 select @SQLcmd = replace (@SQLcmd , N'@Cursorname',@Cursorname) exec QBM_PExecuteSQLWithRetry_LLP @SQLStatement = @SQLcmd , @LockTimeout_ms = default 16, @MaxWaitTimeForLock_s = default , @ProcIDForJournal = default , @HandleErrorSilent = 0 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare 17@Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH end 18
Module relation graph
Loading module relation graph…
Source-derived context
Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.
provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:14:10.047
has TRY/CATCH error handling
Summary: calls QBM_PExecuteSQLWithRetry_LLP, QBM_PSessionErrorAdd
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@Cursorname | nvarchar(255) | input |
DML targets
None extracted.Called routines
Read/join references
None extracted.
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @Cursorname @SQLcmd @SQLStatement @LockTimeout_ms @MaxWaitTimeForLock_s @ProcIDForJournal @HandleErrorSilent @Rethrow
Referenced by / reverse dependencies
Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.
| Referencing object | Relation | Evidence |
|---|---|---|
| dbo.CCC_VBScriptFind | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.CCC_VBScriptFind | source text reference | has TRY/CATCH error handling |