writes "On my asp page I stringed my t-sql instead of doing a stored procedure. It's like this:if Request.Form("operation") = 2 then sql = "BEGIN TRAN UPDATE My_Table1 SET "sql = sql & "Table_1 = '" & persons_id & "', "sql = sql & "Table_2 = NULLIF('" & strAddress & "', ''), "sql = sql & "Table_3 = NULLIF('" & strSchool & "', ''), "sql = sql & "Table_4 = NULLIF('" & strPhone & "', ''), "sql = sql & "WHERE Table_1 = '" & persons_id & "' "sql = sql & " IF @@ERROR <> 0 "sql = sql & " RAISERROR(@@ERROR,16,1)sql = sql & " ROLLBACK TRAN "sql = sql & " ELSE "sql = sql & " COMMIT TRAN "set rs = cn.Execute(sql)if Err.number <> 0 thenerrorMsg = errorMsg & "<font size=5 color=red>A Database Error occured while updating a record."errorMsg = errorMsg & " The Error Number is " & err.number & "
"errorMsg = errorMsg & " The Error Description is " & err.description & "
"errorMsg = errorMsg & "Please print this screen and contact the Help Desk.</font>"errorMsg = errorMsg & "</center> </center> "Response.Write errorMsgset cn = nothingset rs = nothing Response.End ()end ifMy question is: Does the raiserror works in an asp environment or only inside a store procedure. Transactions and rollbacks are working fine. I just can't raise the error message. What can be suggested with this other than making a stored procedure as a last resort? Would this be more efficient and/or faster? Thanks..."