Compilation taking long time after schema extension

Hi All,

I extended AADUser table by creating custom column and now compilation step taking long time.

Do you know is it normal or something is not correct.

https://1drv.ms/u/s!At2ViqLAc9Hp1TdzAxhjWF70-NIg?e=MKfGFX 

Kind Reagrds,

Dnyandev

Parents Reply
  • Hi,

    If you have deactivated triggers, try this:

    Find disabled triggers:


    SELECT DISTINCT o.NAME
    ,CASE o.type
    WHEN 'U'
    THEN 'Table'
    ELSE ''
    END AS TableType
    ,CASE '%'
    WHEN '%'
    THEN 'all'
    ELSE '"' + t.NAME + '"'
    END AS Triggername, t.is_disabled
    FROM sys.objects o
    JOIN sys.triggers t ON o.object_id = t.parent_id
    WHERE o.type IN ('U')
    AND o.NAME LIKE '%'
    AND t.is_disabled = 1
    AND (
    0 = 0
    AND t.NAME LIKE '%'
    OR 0 = 1
    AND t.NAME NOT LIKE '%'
    )
    ORDER BY 1

    Enable all triggers:

    Exec QBM_PtriggerEnable '%', '%'

    Hopefully that will fix your issue.

    B.

Children