Alternative to triggers in SQL Server -
to eliminate potential problems triggers, of alternatives 1 may use same functionality of reacting event fired on insert action?
i have database needs have additional values added on insert. insert controlled compiled code , cannot changed.
example: program inserts string , string need supply integer new field points look-up table.
if there alternative trigger please let me know pros , cons alternative. main reason triggers not allowed in our db standards.
sql server 2008 enterprise
how determine integer, based on string being inserted?
one alternative might want computed columns in sql server. if matching pretty straightforward 1 (e.g. extract character 10 through 14 string) or that, create computed column automagically - no trigger needed.
you can make computed columns persisted (physically stored part of tables) , create indices on these fields!
computed columns available sql server 2000 on, persisted columns sql server 2005.
Comments
Post a Comment