Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver,microsoft.public.sqlserver.programming Subject: Re: Constraint Errors: What Blew Up? Followup-To: comp.databases.ms-sqlserver Date: Wed, 23 May 2012 23:32:47 +0200 Organization: Erland Sommarskog Lines: 13 Message-ID: References: <8khlr79ocjoqh62jhp6ebup8qns4j5d5fp@4ax.com> <7uknr7d6cbm5gqflccvhlq9ocdeqrd0ada@4ax.com> <5t9or7deuutvog50c4nnhiad046e62p7tr@4ax.com> <2p2qr7ljpsi6odghgu28m6o12u4nbpq4gt@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="nBFDv6s1VJQDuF1w6hpX2A"; logging-data="9796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rUIMt3f/FhvjQF9VWAmah" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:ScoSoQRKEwQilNqj0xsgbM18d+o= Xref: csiph.com comp.databases.ms-sqlserver:1071 Gene Wirchenko (genew@ocis.net) writes: > Emit it where? I want to capture so that the front-end can use > it. To exactly the same place where error messages are emitted today. That is, the custom error message would replace the system-generated message. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx