<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Introducing: TSQLMacro</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2006/07/12/introducing-tsqlmacro.aspx</link><description>I am pleased to announce the official introduction of the TSQLMacro framework , version 0.5 (prebeta-1). This version is functionally complete based on the initial design spec , features are stable, and I am not currently aware of any bugs. So what is</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Introducing: TSQLAssert</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2006/07/12/introducing-tsqlmacro.aspx#11448</link><pubDate>Sun, 25 Jan 2009 19:55:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:11448</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Yes, yet another introduction (although there was almost zero reaction to yesterday's introduction ).&lt;/p&gt;
</description></item><item><title>re: Introducing: TSQLMacro</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2006/07/12/introducing-tsqlmacro.aspx#18142</link><pubDate>Thu, 22 Oct 2009 15:35:20 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:18142</guid><dc:creator>Rajib Bahar</dc:creator><description>&lt;p&gt;#IFDEF(MACRO_CLASS_NAME)&lt;/p&gt;
&lt;p&gt;	TSQL_CODE_HERE&lt;/p&gt;
&lt;p&gt;#ENDIF#&lt;/p&gt;
&lt;p&gt;thanks for this entry... the above example is all I need to understand it's value.&lt;/p&gt;
</description></item><item><title>re: Introducing: TSQLMacro</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2006/07/12/introducing-tsqlmacro.aspx#46474</link><pubDate>Fri, 30 Nov 2012 17:41:21 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46474</guid><dc:creator>Bob Sather</dc:creator><description>&lt;p&gt;Hello Adam, &amp;nbsp;I'm a developer (C++ &amp;amp; Sybase SQL) based at an investiment bank in London. I'm frustrated at the lack of preprocessor-like facilities in SQL. Two questions:&lt;/p&gt;
&lt;p&gt;1) When you mention TSQL do you mean Transact-SQL as used by Sybase?&lt;/p&gt;
&lt;p&gt;2) Does your TSQLMacro preprocessor include an #include statement? Or do you know of one that does? &amp;nbsp;I am developing interconnected stored procedures on Sybase, which may share a number of #temp tables. They will only compile if each file contains its own definition of each of the tables. If the definition of a table changes, I have to change it in all of the files. Errors are easy to make. There should be an #include statement, like in C/C++, so I only have to define a table in one place. &amp;nbsp;#include would also make it possible to define the parameter set of a stored procedure in one place.&lt;/p&gt;
&lt;p&gt;Best regards, &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bob Sather&lt;/p&gt;
&lt;p&gt;robert.sather@credit-suisse.com&lt;/p&gt;
</description></item><item><title>re: Introducing: TSQLMacro</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2006/07/12/introducing-tsqlmacro.aspx#46477</link><pubDate>Fri, 30 Nov 2012 21:42:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46477</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Bob,&lt;/p&gt;
&lt;p&gt;SQL Server. It -might- work on Sybase, as the T-SQL dialects are relatively similar due to a shared history, but I've never tried.&lt;/p&gt;
&lt;p&gt;As for #include, no. That's not really a macro directive, so it would be out of scope for TSQLMacro. And honestly I'm not sure how it would be implemented. It's an interesting idea, though. Is Sybase the same as SQL Server where a #temp table created in an outer scope can be referenced in a stored procedure? (And is that what you're trying to solve for?) If so, I feel your pain, but it's not a problem I've ever devoted much energy to dealing with -- except by avoiding the situation altogether whenever possible.&lt;/p&gt;
</description></item></channel></rss>