Quantcast
Channel: CLR Stored Procedure
Viewing all articles
Browse latest Browse all 5

CLR Stored Procedure

$
0
0

I suspect this exception is thrown by the CLR proc due to a business rule violation like the example below.  Of course, the code should throw a proper exception rather than System.Exception.

if (String.IsNullOrEmpty(addressValue)) 
{
  throw new Exception("An Address is incomplete or invalid");
}

Dan Guzman, SQL Server MVP, http://weblogs.sqlteam.com/dang/

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>