I need to surpress messages output from a SQL function. As in 1 row affected
. I can't use SET NOCOUNT
as it's invalid in a function.
Anyone know a way to do this?
Thanks.
EDIT
I was trying to limit the background information in an attemp to boil the problem down to it's essence. But I'll expand. I'm using MSSQL2005 and NHibernate to insert a record in to a SQL table. On the table I have a computed column that runs the function which is reporting back 1 row affected
.
I didn't really want to edit the NHibernate part of the process but it may be unavoidable.