<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>General</title><link>http://codeblooded.com/blog/category/3.aspx</link><description>I'll use this category to talk about anything that doesn't fit into other categories.</description><managingEditor>Terry Denham</managingEditor><dc:language>en-US</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Terry Denham</dc:creator><title>98% American</title><link>http://codeblooded.com/blog/archive/2005/08/12/335.aspx</link><pubDate>Fri, 12 Aug 2005 20:14:00 GMT</pubDate><guid>http://codeblooded.com/blog/archive/2005/08/12/335.aspx</guid><wfw:comment>http://codeblooded.com/blog/comments/335.aspx</wfw:comment><comments>http://codeblooded.com/blog/archive/2005/08/12/335.aspx#Feedback</comments><slash:comments>2965</slash:comments><wfw:commentRss>http://codeblooded.com/blog/comments/commentRss/335.aspx</wfw:commentRss><trackback:ping>http://codeblooded.com/blog/services/trackbacks/335.aspx</trackback:ping><description>&lt;P&gt;I was reading Sgt Lizzies Blog&amp;nbsp;( &lt;A href="http://www.sgtlizzie.blogspot.com./"&gt;http://www.sgtlizzie.blogspot.com./&lt;/A&gt;&amp;nbsp;)&amp;nbsp;and ran across this test to see how American you are. Turns out, I'm 98% American.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE cellSpacing=0 cellPadding=2 width=350 align=center border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD align=middle bgColor=#ffb2b2&gt;&lt;FONT style="FONT-SIZE: 14pt; COLOR: black" face="Georgia, Times New Roman, Times, serif"&gt;&lt;B&gt;You Are 98% American&lt;/B&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD bgColor=#b2c4ff&gt;
&lt;CENTER&gt;&lt;IMG src="http://www.quizdiva.net/howamerican/american4.jpg"&gt;&lt;/CENTER&gt;&lt;FONT color=#000000&gt;You're as American as red meat and shooting ranges. Tough and independent, you think big. You love everything about the US, wrong or right. And anyone who criticizes your home better not do it in front of you!&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;DIV align=center&gt;&lt;A href="http://www.blogthings.com/howamericanareyouquiz/"&gt;How American Are You?&lt;/A&gt;&lt;/DIV&gt;&lt;img src ="http://codeblooded.com/blog/aggbug/335.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Terry Denham</dc:creator><title>Great book on building your build environment</title><link>http://codeblooded.com/blog/archive/2005/07/20/299.aspx</link><pubDate>Wed, 20 Jul 2005 12:44:00 GMT</pubDate><guid>http://codeblooded.com/blog/archive/2005/07/20/299.aspx</guid><wfw:comment>http://codeblooded.com/blog/comments/299.aspx</wfw:comment><comments>http://codeblooded.com/blog/archive/2005/07/20/299.aspx#Feedback</comments><slash:comments>2736</slash:comments><wfw:commentRss>http://codeblooded.com/blog/comments/commentRss/299.aspx</wfw:commentRss><trackback:ping>http://codeblooded.com/blog/services/trackbacks/299.aspx</trackback:ping><description>&lt;P&gt;Recently I came across a review for a book that documents how to use NAnt and CruiseControl.NET to automate you build environment. We'll I just got the book delivered yesterday and I've been able to spend a few hours reading it and I'm really looking forward to reading more and clearing up some space in my busy schedule to get back to making our build environment at Telligent more like the ideas proposed in this book. A good read.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594851/qid=1121892154/sr=8-1/ref=pd_bbs_1/102-7946212-6644150?v=glance&amp;amp;s=books&amp;amp;n=507846"&gt;Expert .NET Delivery Using NAnt and CruiseControl.NET&lt;/A&gt;&lt;/P&gt;&lt;img src ="http://codeblooded.com/blog/aggbug/299.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Terry Denham</dc:creator><title>Wiki Rules to Live By</title><link>http://codeblooded.com/blog/archive/2004/07/22/152.aspx</link><pubDate>Thu, 22 Jul 2004 21:49:00 GMT</pubDate><guid>http://codeblooded.com/blog/archive/2004/07/22/152.aspx</guid><wfw:comment>http://codeblooded.com/blog/comments/152.aspx</wfw:comment><comments>http://codeblooded.com/blog/archive/2004/07/22/152.aspx#Feedback</comments><slash:comments>5846</slash:comments><wfw:commentRss>http://codeblooded.com/blog/comments/commentRss/152.aspx</wfw:commentRss><trackback:ping>http://codeblooded.com/blog/services/trackbacks/152.aspx</trackback:ping><description>&lt;P&gt;I've started to document the project formerly known as ASP.NET Forums and now known as Community Server :: Forums. In the process of documenting the product I need to add the database schema to the Wiki but being a lazy programmer I'm always looking for more efficient ways to get my work done.&lt;/P&gt;
&lt;P&gt;Since I've been working with SQL Server for about 10 years now if I need anything out of the database and I have to generate reports or some kind of tabular data I alwasy try to find a way I can get the information I need from the database and let the database produce the report the way I need it.&lt;/P&gt;
&lt;P&gt;So in the Forums Wiki I wanted to generate a heading of Database Schema with each table listed as a link and then when I got to each link I wanted to print each table name again and then the columns in a table with the column name, datatype, key information, nullability and a general comment about the column. &lt;/P&gt;
&lt;P&gt;So I wrote a quick little TSQL script to generate the information for me in the proper Wiki format.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#ff0000&gt;select &lt;BR&gt;&amp;nbsp;'!!!Database Schema'&lt;BR&gt;&amp;nbsp;, '1' as [dorder]&lt;BR&gt;union all&lt;BR&gt;select &lt;BR&gt;&amp;nbsp;'[' + o.name + ']'&lt;BR&gt;&amp;nbsp;, '2.' + o.name + '.0'&lt;BR&gt;from sysobjects o where o.type = 'U' and o.name like 'forums%'&lt;BR&gt;union all&lt;BR&gt;select &lt;BR&gt;&amp;nbsp;'!!!!' + o.name&lt;BR&gt;&amp;nbsp;, '2.' + o.name + '.1' [dorder]&lt;BR&gt;&amp;nbsp;from sysobjects o where o.type = 'U' and o.name like 'forums%'&lt;BR&gt;union all&lt;BR&gt;select &amp;nbsp;&lt;BR&gt;&amp;nbsp;'||''''''Column Name''''''||''''''Data Type''''''||' &lt;BR&gt;&amp;nbsp;&amp;nbsp;+ '''''''Nullable''''''||''''''Key''''''||'&lt;BR&gt;&amp;nbsp;&amp;nbsp;+ '''''''Description''''''||'&lt;BR&gt;&amp;nbsp;, '2.' + o.name + '.2' [dorder]&lt;BR&gt;&amp;nbsp;from sysobjects o where o.type = 'U' and o.name like 'forums%'&lt;BR&gt;union all&lt;BR&gt;select&amp;nbsp;'||[' + c.name + ']||' &lt;BR&gt;&amp;nbsp;&amp;nbsp;+ type_name(c.xusertype) + case c.xusertype&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 62 then '(' + convert(varchar(10), xprec) + ',' &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ convert(varchar(10), xscale) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 99 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 108 then '(' + convert(varchar(10), xprec) + ',' &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ convert(varchar(10), xscale) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 165 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 167 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 173 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 175 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when 231 then '(' + convert(varchar(10), length) + ')'&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else ''&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;BR&gt;&amp;nbsp;&amp;nbsp;+ '||' + case when c.isnullable = 0 then 'no' else 'yes' end + '||||||'&lt;BR&gt;&amp;nbsp;, '2.' + o.name + '.2.' + convert(varchar(20), c.colid) [dorder]&lt;BR&gt;&amp;nbsp;from sysobjects o inner join syscolumns c on o.id = c.id where o.type = 'U' and o.name like 'forums%'&lt;BR&gt;order by 2, 1&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;FONT face="Times New Roman" color=#000000&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;FONT face="Times New Roman" color=#000000&gt;Now to generate a Data Dictionary I used the following script.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT face="Courier New" color=#ff0000&gt;select '!!!Data Dictionary', '1' as [dorder]&lt;BR&gt;union all&lt;BR&gt;select distinct '[' + c.name + ']', '2.' + c.name &lt;BR&gt;&amp;nbsp;from sysobjects o &lt;BR&gt;&amp;nbsp;&amp;nbsp;inner join syscolumns c &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;on o.id = c.id &lt;BR&gt;&amp;nbsp;where o.name like 'forums%' and o.type = 'U'&lt;BR&gt;order by 2, 1&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;FONT face="Times New Roman" color=#000000&gt;Now that the Database Schema and Data Dictionary are created with dummy links I just need to go to each one and create the page and copy in the information that is supposed to be on each page.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;FONT face="Times New Roman" color=#000000&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src ="http://codeblooded.com/blog/aggbug/152.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>