c#


Filter Table Triggers when using SMO DependencyWalker


I have a database with numerous tables that I use the SMO DependencyTree and DependencyWalker to order them by dependencies and then script them out. However, there are two particular tables that have the following relationship:
CREATE TABLE Production_Events (
Event_Id int identity(1,1) NOT NULL,
Start_Time datetime NOT NULL,
End_Time datetime null
--... other columns
)
CREATE TABLE Production_Event_Data (
Production_Event_Data_Id int identity(1,1) NOT NULL,
Event_Id int NOT NULL, -- Foreign key to the above table
Variable_Id int NOT NULL, -- Foreign key to another table
Variable_Value varchar(25) NULL
--... other columns
)
The Production_Event table has a FOR INSERT trigger which populates the Production_Event_Data table with values that come from various sources when a new row is inserted in Production_Event.
If there is no trigger present on the Production_Event table, the DependencyWalker will properly order these tables for scripting by detecting the Foreign Key relationship between them. However, if the trigger is present, then DependencyWalker sees the trigger as a dependency and orders the tables incorrectly by putting the Production_Event_Data table before the Production_Events. Ultimately this will end with a Foreign Key Constraint error if you try to execute the script.
Is there a way to configure DependencyWalker to only account for table dependencies and NOT trigger dependencies?

Related Links

What is the best way of separating ldap connection string?
Custom URL making- URL rewrite
How to mock ReadOnlyCollection<T> in Rhino Mocks?
How to use delegate as invoke parameter?
OAuth 2.0 Authorization server
How to close the previous window when a new window shows
File corrupt from asynchronous tcp socket
Safe way to handle password in C# Win Forms App
datagridview on Android
TryParseExact returns false, though I don't know why
Why Nullable<​DateTime> can be assigned to a paramter which only can be implict converted from DateTime?
List<> doesn't appear to be able to contain more than 500 items
column index of datagridview present in child form changes when child form is opened from an Mdi Form
Delete from multiple SQL tables with C# command
how to disable the past dates on my calender(datetime picker) in C# [closed]
Using the command pattern for stored procedures

Categories

HOME
algolia
kendo-ui-angular2
leaflet
service
jenkins-pipeline
x509certificate
opc-ua
angularjs-directive
glympse
atlassian-fisheye
country-codes
python-3.4
pip
google-app-maker
unreal-engine4
decoding
tracking
dat.gui
template10
novacode-docx
accordion
spring-webflow
bug-reporting
combinations
javaagents
pumping-lemma
gsuite
rancher
continuous-fourier
windows-10-mobile
typeorm
r-factor
spring-oauth2
incapsula
kdevelop
scalamock
byobu
aspnetboilerplate
datagridviewcombobox
apiman
intervention
result
anonymous-function
g77
ionic2-select
serialversionuid
dynamic-linking
sp
typewriter
cc
business-catalyst
group
scikit-image
disconnect
patching
angularfire
angular-i18n
usps
jquery-draggable
play-json
php-gd
adempiere
callfire
firewire
stderr
gmaps4jsf
autopep8
strcpy
jad
xmla
nsq
gnip
angular-file-upload
twitter-finagle
rda
satisfiability
azure-caching
dayofweek
acrofields
adabas
mysql-error-1146
fade
listpicker
typography
extensibility
exi
algol
mail-gem
flatten
nserror
motorola-droid
commonsware
scsf
jquery-click-event
file-processing
designated-initializer
lwp
mass-emails
xcdatamodel
virtual-destructor
browser-state
glassfish-embedded
mysql-pconnect
file-storage
file-icons
managed-code
stackless

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile