Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver,microsoft.public.sqlserver.programming Subject: Re: SS 2008: Front-End Language Processor for Scripts Followup-To: comp.databases.ms-sqlserver Date: Tue, 24 May 2011 07:21:36 +0000 (UTC) Organization: Erland Sommarskog Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 May 2011 07:21:36 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="G7+Jz22XqYCG8C6rb1H3YA"; logging-data="9266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B2ViuuE7BbJesOXfSngFR" User-Agent: Xnews/2005.10.03 Mime-proxy/1.4.c.4 (Win32) Cancel-Lock: sha1:sglKubXBsFPaEgP0Bjk7XLkwCYM= Xref: x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:366 Gene Wirchenko (genew@ocis.net) writes: > I wish to run a preprocessor over script files much as the C > preprocessor does for C programs. File inclusion and symbol > definition commands are about all I need. Does anyone know of one > that will work well with SQL Server script files? So this is a shameless plug, but you asked for it, didn't you? :-) http://www.sommarskog.se/AbaPerls/index.html will give you everything you need and probably too much you don't need, at least for the moment. For a more modest effort - and with a more complete preprocessor - get Visual C++ and use that preprocessors. I don't have any samples, but I believe I've heard people who have done it. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx