Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #331
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Erland Sommarskog <esquel@sommarskog.se> |
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: SS 2008: Rethrowing User-Defined Error Codes *FULLY* |
| Date | Fri, 13 May 2011 23:27:09 +0200 |
| Organization | Erland Sommarskog |
| Lines | 44 |
| Message-ID | <Xns9EE4EE92673F2Yazorman@127.0.0.1> (permalink) |
| References | <po4ps6d55puofc0uvrv43h34pesscjalb7@4ax.com> <Xns9EE462DBB9AD5Yazorman@127.0.0.1> <l8tqs6l09piumf1g03bak8luvuek46h9m9@4ax.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="DD6dU+BfJNjsjSP4/K/V7w"; logging-data="9058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Awm07Vh9q7k9qzc5tWaLO" |
| User-Agent | Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) |
| Cancel-Lock | sha1:c3SlyFd2m0Avkld0VbBxdSNtcno= |
| Xref | x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:331 |
Show key headers only | View raw
Gene Wirchenko (genew@ocis.net) writes: > Erland! You are not doing your part! You were supposed to tell > what I was missing. As a matter of fact, I did! I told you were missing the most recent version of SQL Server, if only in beta. :-) > I fight with the language a lot, because it violates the Law of Least > Astonishment so much. Sometimes I think that maximising the astonishment has been a prime design goal of the language. > I wish that there was something like #include and #define so I > could define mnemonics for the errors I wish to define. I have > looked, but I did not find anything. It is not available in the product as such, but you should be able to roll your own with help of the preprocessor from C++ if you have Visual Studio. As a matter of fact, in the system I spend most of my time with, we do use a preprocessor. Not the one from C++, but a homebrew. It's part of my toolset, AbaPerls, which you can find at http://www.sommarskog.se/AbaPerls/index.html. But you would not start using AbaPerls only to get a preprocessor. > That is good in general, but I have a gotcha. <sigh> I will not > be able to use it for the company that the main app is for. They will > stick with Windows XP for quite some time. SS 2011 will not run on > XP. What can I say... The 64-bit support for XP is not very good, and there are a few things missing. But not much. And I much rather do my daily chores on XP than on Vista or Win7. -- 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
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
SS 2008: Rethrowing User-Defined Error Codes *FULLY* Gene Wirchenko <genew@ocis.net> - 2011-05-12 19:35 -0700
Re: SS 2008: Rethrowing User-Defined Error Codes *FULLY* Erland Sommarskog <esquel@sommarskog.se> - 2011-05-13 07:43 +0000
Re: SS 2008: Rethrowing User-Defined Error Codes *FULLY* Gene Wirchenko <genew@ocis.net> - 2011-05-13 11:22 -0700
Re: SS 2008: Rethrowing User-Defined Error Codes *FULLY* Erland Sommarskog <esquel@sommarskog.se> - 2011-05-13 23:27 +0200
csiph-web