home bbs files messages ]

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,334 of 19,505   
   Gene Wirchenko to All   
   SS 2008: Front-End Language Processor fo   
   23 May 11 15:24:47   
   
   XPost: microsoft.public.sqlserver.programming   
   From: genew@ocis.net   
      
   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 would allow me to freely reorganise error codes without having to   
   hunt manually, and it would allow me to have consistency over multiple   
   scripts.   
      
        I have done some searching and apparently one such is m4, but I   
   have been unable to download it.  (I only get a partial download and   
   do not know how to proceed.)   
      
        Any ideas?   
      
   Sincerely,   
      
   Gene Wirchenko   
      
   --- 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