Add instance name to serilog

This commit is contained in:
Michał Zieliński
2025-07-04 13:15:47 +02:00
parent 53e12e414d
commit 75600a7415
8 changed files with 52 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ DECLARE @JustForDebug TINYINT = 0;
-- SETUP VARIABLES
DECLARE @Number INT = (SELECT COUNT(id) + 1 FROM [diunabi-morska].[dbo].[Layers]);
DECLARE @Name NVARCHAR(50) = CONCAT(
'L', @Number, '-D-DEPARTMENTS'
'L', @Number, '-D-D6-SELL-CODES'
);
DECLARE @LayerId UNIQUEIDENTIFIER = NEWID();
@@ -27,10 +27,16 @@ DECLARE @Array TABLE (
INSERT INTO @Array (Code, Desc1)
VALUES
('0', 'OTHER'),
('1','K5'),
('2','AK'),
('3','PU')
('1002', '1102'),
('1003','1202'),
('1008','1302'),
('1009','1302'),
('9085','1203'),
('1010','1304'),
('9086','1005'),
('1021','1206'),
('9089','1207'),
('9091','1208')
-- Loop through the array and insert into the target table
DECLARE @Code NVARCHAR(50);