When posting questions in the forums with TSQL code, it may be a good idea to format your code so that it looks better in the forums. When the code is formatted and keywords are colored, it will make the code easier to understand.
You can add formatting to the code by placing your code between a <pre> block. Here is an example of a piece of code that uses formatting tags.
<pre class="brush:sql"> -- Check current time SELECT GETDATE() </pre>
The above code will be formatted and printed as follows in the forums
-- Check current time SELECT GETDATE()
Jacob Sebastian, SQL Server MVP
See this post that explains how to format TSQL code listing when posting in this forum.
Thanks, But sometimes evethough I do it, by default it adds this tag
<divre...>...</divre>
Any reason?
Madhivananhttp://beyondrelational.com/blogs/madhivanan
Yes. Usually I do this only