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 |
Dumi
Starting Member
1 Post |
Posted - 2015-02-09 : 06:58:58
|
Hi im new to sql server, i know basic on it , i would like to know that how to validate a string in sql server i tried this if ((Select OrderStatusID From Inserted) = 3 ) if((Select ulIDSOrdDrv From Inserted) is not null) RAISERROR ('Please Enter Driver',16,1)using triggerDumi Nkonyeni |
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2015-02-09 : 09:24:46
|
Why do you want to do this in a trigger? A table constraint would be better. |
|
|
|
|
|