Skip to content

SMO Scripting - Missing regular property NotForReplication property bag state Lazy for type Trigger #198

@chadbaldwin

Description

@chadbaldwin

Not doing anything fancy, just scripting out tables with ScriptingOptions.Triggers enabled.

Prefetch grabs nearly everything, except for the NotForReplication field it seems. When trying to script out a table with triggers enabled, it still reaches out to the database to grab this field.

No idea if it's relevant as I have no clue how these files are structured/used (other than for generating the prefetch query), but maybe it has something to do with how it's configured in this file?

<version min_major='9' cloud_min_major='10'>
<property name="NotForReplication" type="bit" mode="deploy">trr.is_not_for_replication</property>
</version>

I noticed for some reason its mode is set to deploy instead of design like the other fields. Might have nothing to do with it, but figured I would point it out in case it's helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions