dbo.QBM_PDiskStorePhysicalSync

SQL_STORED_PROCEDURE

Created 2025-06-27T17:57:29.767 · modified 2026-04-14T23:20:26.543 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
No parameters.

Referenced objects

SchemaObjectColumn/minorClass
QBMDiskStorePhysicalOBJECT_OR_COLUMN
dboQBM_FCVElementToObjectKey1OBJECT_OR_COLUMN
dboQBM_FCVStringToGUIDOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1  create   procedure QBM_PDiskStorePhysicalSync as begin declare @XUser nvarchar(64) = object_name(@@procid) declare @Xdate datetime = getutcdate
2() declare @DebugSwitch int = 0 if @DebugSwitch > 0 begin print 'to add' select distinct g.name from sys.filegroups g  join sys.database_files f on f.data_space_id
3 = g.data_space_id where not exists (select top 1 1 from QBMDiskStorePhysical p where p.Ident_QBMDiskStorePhysical = g.name ) and g.type_desc = 'ROWS_FILEGROUP'
4 end insert into QBMDiskStorePhysical(UID_QBMDiskStorePhysical, Ident_QBMDiskStorePhysical, XObjectKey , XDateInserted, XDateUpdated, XUserInserted, XUserUpdated
5 ) select distinct dbo.QBM_FCVStringToGUID('', g.name) , g.name, dbo.QBM_FCVElementToObjectKey1('QBMDiskStorePhysical', 'UID_QBMDiskStorePhysical', dbo.QBM_FCVStringToGUID
6('', g.name)) , @Xdate, @Xdate, @XUser, @XUser  from sys.filegroups g  join sys.database_files f on f.data_space_id = g.data_space_id where not exists 
7(select top 1 1 from QBMDiskStorePhysical p where p.Ident_QBMDiskStorePhysical = g.name ) and g.type_desc = 'ROWS_FILEGROUP'  if @DebugSwitch > 0 begin
8 print 'to del' select p.* from QBMDiskStorePhysical p left outer join (select distinct g.name from sys.filegroups g  join sys.database_files f on f.data_space_id
9 = g.data_space_id where g.type_desc = 'ROWS_FILEGROUP' ) as r on p.Ident_QBMDiskStorePhysical = r.name where r.name is null end delete QBMDiskStorePhysical
10 from QBMDiskStorePhysical p left outer join (select distinct g.name from sys.filegroups g  join sys.database_files f on f.data_space_id = g.data_space_id
11 where g.type_desc = 'ROWS_FILEGROUP' ) as r on p.Ident_QBMDiskStorePhysical = r.name where r.name is null  end 
12

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:20:26.543

None extracted.

Summary: writes INSERT QBMDiskStorePhysical, DELETE QBMDiskStorePhysical; reads/joins sys, QBMDiskStorePhysical

Declared parameters

No declared parameters in sys.parameters for this object, or metadata was not available.

DML targets

INSERT QBMDiskStorePhysical DELETE QBMDiskStorePhysical

Called routines

None extracted.

Read/join references

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @XUser @procid @Xdate @DebugSwitch

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.

No reverse dependencies extracted.