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 |
|
Quish
Starting Member
8 Posts |
Posted - 2008-05-02 : 07:22:14
|
| Hey i have written a constraint trigger that will return an error message, but i want to include values from a count in the error msg. i know how it would be doing in oracle RaisError('You cannot add more then' ||Bedroom_Count|| 'student tenants into this house', 10, 1)how do i achieve the same result in MS SERVERregards QUISH |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-05-02 : 07:26:36
|
| [code]RAISERROR ('You cannot add more than %d student tenants into this house', 10, 1, @bedroom_count)[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|