Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Tim
Starting Member
392 Posts |
Posted - 2003-06-26 : 21:39:38
|
| is it possible to get a trigger to fire before other constraints like NULL/NOT NULL and Foreign keys?I want trigger to replace a value to satisfy constraints but it never gets the chance to fire.SQL 7 SP 2Edited by - tim on 06/26/2003 21:44:14 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-06-26 : 22:04:34
|
| Only with an 'instead of' trigger.Are they available in v7?==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Tim
Starting Member
392 Posts |
Posted - 2003-06-26 : 22:32:31
|
| available in SQL2000 with compatibility set to 7 at least.although once I change the value in the trigger, whole thing fails "someone else changed/deleted the record".bah. |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-06-26 : 22:59:55
|
| Access the database via stored procs and all your problems will suddenly disappear.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Tim
Starting Member
392 Posts |
Posted - 2003-06-26 : 23:30:19
|
| Haven't got access to the code, not allowed to change it if I did. Trying to hack my way around a problem. Otherwise known as "integration".double bah. |
 |
|
|
|
|
|