Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,338 of 19,505    |
|    Bernard Peek to Gene Wirchenko    |
|    Re: SS 2008: Front-End Language Processo    |
|    25 May 11 17:27:15    |
      XPost: microsoft.public.sqlserver.programming       From: bap@shrdlu.com              On 23/05/11 23:24, Gene Wirchenko wrote:       > Dear SQLers:       >       > I am trying to get around some of the limitations of T-SQL.       >       > 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?       >       > I want to be able to define symbols like       > #define ERRSTL N'50001: String %s is too long.'       > in a secondary file and have statements like       > raiserror(ERRSTL,16,1,N'ACUK)       > expand to       > raiserror(N'50001: String %s is too long.',16,1,N'ACUK)              This is a simple substitution. Have you considered using sed?                            --       Bernard Peek       bap@shrdlu.com              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca