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

Simplest way to filter generic list
Why does Response.Redirect() work in Chrome but not in IE?
C# storing data from input to arraylist inside Class
GeckoEngine and C# load dll drivers problem
Eager loading multiple child collections within a paged result
Late-bound version of RegisterInstance in Unity
stuck in the for c# loop!
textbox user interface effect in winforms
Why does HTML data transforms after Response.Redirect()?
Can File.Copy copy from a volume to a different volume?
Implementing a generic unmanaged array in C#
IE9 aborting, then re-requesting script
Index (zero based) must be greater than or equal to zero
Are there any good hierarchial controls for web sites?
Can someone explain this example of Windows OS version numbering?
Using MS Word Templates to allow a user to fill out a report

Categories

HOME
airflow
joomla
macros
mobile
pelican
nagios
stdout
data-modeling
nltk
spss
lithium
squeak
opengl-es
msbi
confluence-rest-api
checkpoint
opacity
kohana
collision-detection
scapy
genexus
annyang
box-api
soap-client
ejb-3.0
ndepend
elastalert
fine-uploader
derby
lambda-calculus
hql
simd
samba
windows-phone
turn.js
formulas
polybase
connectiq
visual-studio-community
ballerinalang
workflow-foundation
meteor-accounts
intermec
boost-log
contextmenustrip
snapkit
openvms
intersection
ansible-inventory
android-databinding
multi-user
anypoint-studio
mongoid5
mixed-models
rbac
susy
jvisualvm
colorbox
risc
niagara-ax
runner
text-formatting
opos
stanford-nlp-server
ionic2-select
standard-error
appcmd
jscoverage
px4
bioperl
playframework-2.3
fckeditor
boost-regex
webmatrix
xamarin-test-cloud
selection-sort
jtextarea
group
nls
qt3d
copy-constructor
vga
normalisation
diameter-protocol
avi
aws-kms
jde
chomsky-normal-form
factorization
app-data
event-tracking
edgar
traminer
bootstrap-tabs
azure-mobile-app
vensim
stereotype
fileinputstream
opennebula
radgrid
ccmenuitem
step
reactjs-native
enquire.js
sqldatasource
html5-filesystem
flask-mongoengine
codio
autofilter
code-complete
magicsuggest
gmail-imap
pymel
reference-manual
setcookie
django-tinymce
zepto
configurationsection
cryptarithmetic-puzzle
wpml
hypertable
jquery-ui-map
sqlbuddy
inserthtml
digg
funambol
lwp
s60
text-manipulation
dongle
file-storage
time-management
zend-acl

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile