<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-7883769006508081360</id><updated>2009-11-27T09:21:34.464-08:00</updated><title type='text'>SQL Tips &amp; Tricks</title><subtitle type='html'>Its all about structured query language (SQL) - SQL Query Snippets, LINQ Snippets, SQL Stored Procedures, SQL Server Articles, SQL Server Feeds</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default?start-index=26&amp;max-results=25'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-2432304304610348166</id><published>2009-09-05T19:48:00.001-07:00</published><updated>2009-09-05T19:49:40.608-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mathematical Table in SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='While loop in T-SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='While Loop in SQL Server'/><title type='text'>While Loop in SQL Server</title><content type='html'>&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;color:#ff0000;"&gt;&lt;strong&gt;While loop in T-SQL&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Here is a simple example of While loop&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @temp &lt;span style="COLOR: blue"&gt;tinyint&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;while &lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;(&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;@temp &lt;span style="COLOR: gray"&gt;&lt;&lt;/span&gt; 11&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;begin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;&lt;span style="COLOR: blue"&gt;print&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@temp &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;varchar&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;2&lt;span style="COLOR: gray"&gt;))&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: red"&gt;' X 2 = '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@temp &lt;span style="COLOR: gray"&gt;*&lt;/span&gt; 2 &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;&lt;span style="COLOR: blue"&gt;set&lt;/span&gt; @temp &lt;span style="COLOR: gray"&gt;+=&lt;/span&gt; 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;end&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;The above code will be having the following output:&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Output&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;1 X 2 = 2&lt;span style="mso-spacerun: yes"&gt;         &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;                    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;2 X 2 = 4&lt;span style="mso-spacerun: yes"&gt;                             &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;3 X 2 = 6&lt;span style="mso-spacerun: yes"&gt;                             &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;4 X 2 = 8&lt;span style="mso-spacerun: yes"&gt;                             &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;5 X 2 = 10&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;6 X 2 = 12&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;7 X 2 = 14&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;8 X 2 = 16&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;9 X 2 = 18&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;10 X 2 = 20&lt;span style="mso-spacerun: yes"&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-2432304304610348166?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/2432304304610348166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=2432304304610348166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2432304304610348166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2432304304610348166'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/09/while-loop-in-sql-server.html' title='While Loop in SQL Server'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-7450487843420216231</id><published>2009-09-05T19:47:00.001-07:00</published><updated>2009-09-05T19:48:38.005-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tables in SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Errors'/><title type='text'>'int' is not a recognized CURSOR option.</title><content type='html'>&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;This error occurs when a variable name is preceded by # instead of @. # is used to declare temporary table &lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; #myi &lt;span style="COLOR: blue"&gt;int&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Should be replaced by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @myi &lt;span style="COLOR: blue"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-7450487843420216231?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/7450487843420216231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=7450487843420216231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7450487843420216231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7450487843420216231'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/09/int-is-not-recognized-cursor-option.html' title='&apos;int&apos; is not a recognized CURSOR option.'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-820462493590386295</id><published>2009-09-04T05:15:00.001-07:00</published><updated>2009-09-04T05:15:47.174-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Compound Operators'/><category scheme='http://www.blogger.com/atom/ns#' term='Compound Operators in SQL Server'/><title type='text'>Compound Operators in SQL Server 2008</title><content type='html'>&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Compound operators execute some operation and set an original value to the result of the operation&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @temp &lt;span style="COLOR: blue"&gt;tinyint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Select&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @temp &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Set&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @temp &lt;span style="COLOR: gray"&gt;+=&lt;/span&gt; @temp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @temp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;The following is a list of compound operators&lt;/span&gt;&lt;/p&gt;&lt;table style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 100%; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none; mso-border-alt: solid #9BBB59 1.0pt; mso-border-themecolor: accent3; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt" class="MsoTableLightListAccent3" border="1" cellspacing="0" cellpadding="0" width="100%"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes"&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BACKGROUND: #9bbb59; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-border-left-themecolor: accent3; mso-background-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 5" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="COLOR: white; mso-themecolor: background1"&gt;&lt;span style="font-family:Calibri;"&gt;Operator &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BACKGROUND: #9bbb59; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-background-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="COLOR: white; mso-themecolor: background1"&gt;&lt;span style="font-family:Calibri;"&gt;Link to more information &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BACKGROUND: #9bbb59; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-background-themecolor: accent3; mso-border-right-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="COLOR: white; mso-themecolor: background1"&gt;&lt;span style="font-family:Calibri;"&gt;Action &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 0"&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;+=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;+= (Add EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Adds some amount to the original value and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 1"&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-left-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;-=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;-= (Subtract EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-right-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Subtracts some amount from the original value and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 2"&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;*=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;*= (Multiply EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Multiplies by an amount and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 3"&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-left-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;/=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;/= (Divide EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-right-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Divides by an amount and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 4"&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;%=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;%= (Modulo EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Divides by an amount and sets the original value to the modulo.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 5"&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-left-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;&amp;amp;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;&amp;amp;= (Bitwise AND EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-right-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Performs a bitwise AND and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 6"&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;^=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-top-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;^= (Bitwise Exclusive OR EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #9bbb59 1pt solid; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Performs a bitwise exclusive OR and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 7; mso-yfti-lastrow: yes"&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #9bbb59 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-left-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Calibri;"&gt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0; PADDING-TOP: 0cm; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;= (Bitwise OR EQUALS) (Transact-SQL) &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-BOTTOM: #9bbb59 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #9bbb59 1pt solid; PADDING-TOP: 0cm; mso-border-right-themecolor: accent3; mso-border-bottom-themecolor: accent3" valign="top"&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Performs a bitwise OR and sets the original value to the result.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-820462493590386295?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/820462493590386295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=820462493590386295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/820462493590386295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/820462493590386295'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/09/compound-operators-in-sql-server-2008.html' title='Compound Operators in SQL Server 2008'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-4809163175651150395</id><published>2009-09-04T05:14:00.000-07:00</published><updated>2009-09-04T05:15:18.627-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='New Data Types in SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Data Types in SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL  2008 Datetime2 Datatype'/><category scheme='http://www.blogger.com/atom/ns#' term='How to get current time alone in SQL Server 2008'/><title type='text'>Date and Time Data Types in SQL Server 2008</title><content type='html'>&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Some of the new data that are introduced in Microsoft SQL Server 2008 are :&lt;/span&gt;&lt;/p&gt;&lt;ul style="MARGIN-TOP: 0cm" type="disc"&gt;&lt;li style="MARGIN: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Date&lt;/span&gt;&lt;/li&gt;&lt;li style="MARGIN: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Time&lt;/span&gt;&lt;/li&gt;&lt;li style="MARGIN: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Datetime2&lt;/span&gt;&lt;/li&gt;&lt;li style="MARGIN: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Datetimeoffset&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Here is a simple self-explanatory example:&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @date &lt;span style="COLOR: blue"&gt;date&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;getdate&lt;/span&gt;&lt;span style="COLOR: gray"&gt;()&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @time &lt;span style="COLOR: blue"&gt;time&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;getdate&lt;/span&gt;&lt;span style="COLOR: gray"&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @dt2 &lt;span style="COLOR: blue"&gt;datetime2&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;getdate&lt;/span&gt;&lt;span style="COLOR: gray"&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @dt &lt;span style="COLOR: blue"&gt;datetime&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;getdate&lt;/span&gt;&lt;span style="COLOR: gray"&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;declare&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; @sdt &lt;span style="COLOR: blue"&gt;smalldatetime&lt;/span&gt; &lt;span style="COLOR: gray"&gt;=&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;getdate&lt;/span&gt;&lt;span style="COLOR: gray"&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'Date '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@date&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'Time '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@time &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'SmallDateTime '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@sdt &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'DateTime '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@dt &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'DateTime2 '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;@dt2 &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="font-family:Calibri;"&gt;Here is the output of the same:&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Date 2009-09-04&lt;span style="mso-spacerun: yes"&gt;                    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Time 16:18:54.5730000&lt;span style="mso-spacerun: yes"&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;SmallDateTime Sep&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;4 2009&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;4:19PM&lt;span style="mso-spacerun: yes"&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;DateTime Sep&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;4 2009&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;4:18PM&lt;span style="mso-spacerun: yes"&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;DateTime2 2009-09-04 16:18:54.5730000&lt;span style="mso-spacerun: yes"&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri', 'sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA"&gt;&lt;br style="PAGE-BREAK-BEFORE: always; mso-special-character: line-break" clear="all"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-4809163175651150395?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/4809163175651150395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=4809163175651150395' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4809163175651150395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4809163175651150395'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/09/date-and-time-data-types-in-sql-server.html' title='Date and Time Data Types in SQL Server 2008'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-4220782003337463747</id><published>2009-09-04T05:13:00.000-07:00</published><updated>2009-09-04T05:14:42.552-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL SErver Modulo Operator'/><category scheme='http://www.blogger.com/atom/ns#' term='How to find remainder using SQL functions'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server operators'/><title type='text'>Modulo operator in SQL Server</title><content type='html'>&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;Modulo provides the integer remainder after dividing the first numeric expression by the second one. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 10pt" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt;print&lt;/span&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-fareast-language: EN-IN; mso-no-proof: yes"&gt; &lt;span style="COLOR: red"&gt;'remainder '&lt;/span&gt; &lt;span style="COLOR: gray"&gt;+&lt;/span&gt; &lt;span style="COLOR: fuchsia"&gt;cast&lt;/span&gt;&lt;span style="COLOR: gray"&gt;(&lt;/span&gt;112 &lt;span style="COLOR: gray"&gt;%&lt;/span&gt; 17 &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; &lt;span style="COLOR: blue"&gt;char&lt;/span&gt;&lt;span style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-4220782003337463747?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/4220782003337463747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=4220782003337463747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4220782003337463747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4220782003337463747'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/09/modulo-operator-in-sql-server.html' title='Modulo operator in SQL Server'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-663126850854034886</id><published>2009-02-07T17:41:00.000-08:00</published><updated>2009-02-07T17:42:53.396-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connection String'/><category scheme='http://www.blogger.com/atom/ns#' term='ADO connection string for Access 2007 database with password'/><category scheme='http://www.blogger.com/atom/ns#' term='Access 2007 ADO Connection String'/><category scheme='http://www.blogger.com/atom/ns#' term='ADO Connection String'/><title type='text'>ADO Connection String for Access 2007 Database</title><content type='html'>&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;ADO Connection String for Access 2007 Database &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;Here is the ADO connection string example for Access 2007 database. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt; LINE-HEIGHT: normal"&gt;&lt;span style="COLOR: #0070c0"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;Set Cn = New ADODB.Connection&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt; LINE-HEIGHT: normal"&gt;&lt;span style="COLOR: #0070c0"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;Cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\comp\Documents\SampleDB.accdb;Persist Security Info=False"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;If the database needs password then use the following string:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt; LINE-HEIGHT: normal"&gt;&lt;span style="COLOR: #0070c0"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;Cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\comp\Documents\SampleDB.accdb;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US"&gt; &lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span lang="EN-US" style="COLOR: #0070c0; mso-ansi-language: EN-US"&gt;Jet OLEDB:Database Password=MyDbPassword;&lt;/span&gt;&lt;span style="COLOR: #0070c0"&gt;"&lt;/span&gt;&lt;span lang="EN-US" style="COLOR: #0070c0; mso-ansi-language: EN-US"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;The project that uses the code should have reference to ActiveX data objects library&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-663126850854034886?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/663126850854034886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=663126850854034886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/663126850854034886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/663126850854034886'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/02/ado-connection-string-for-access-2007.html' title='ADO Connection String for Access 2007 Database'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-3571545545534974464</id><published>2009-02-02T16:57:00.001-08:00</published><updated>2009-02-02T16:58:37.049-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connection Strings'/><title type='text'>ADO Connection String for Excel</title><content type='html'>Excel Connection Strings&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Orginal.xls;Extended Properties=Excel 8.0;Persist Security Info=False"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-3571545545534974464?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/3571545545534974464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=3571545545534974464' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/3571545545534974464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/3571545545534974464'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/02/ado-connection-string-for-excel_02.html' title='ADO Connection String for Excel'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-5546293435115433165</id><published>2009-02-02T16:33:00.000-08:00</published><updated>2009-02-02T16:57:07.247-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connection Strings'/><title type='text'>ADO Connection String for Text Files</title><content type='html'>ADO Connection String for Comma Separate File (CSV)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\temp\;Extended Properties=""text;HDR=Yes;FMT=Delimited(,)"";Persist Security Info=False"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-5546293435115433165?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/5546293435115433165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=5546293435115433165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5546293435115433165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5546293435115433165'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/02/ado-connection-string-for-text-files.html' title='ADO Connection String for Text Files'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-2988650966180742782</id><published>2009-01-29T18:41:00.002-08:00</published><updated>2009-01-29T18:42:24.987-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Create XML files from CSV (Text) files using .NET (C#)'/><category scheme='http://www.blogger.com/atom/ns#' term='C Sharp Convert Text File (CSV) to XML file'/><title type='text'>How to Convert CSV to XML using C#</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetdud.blogspot.com/2008/10/c-csv-to-xml-conversion-csv-to-xml.html"&gt;C# CSV to XML Conversion, CSV to XML Conversion using LINQ&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; &lt;p style="font-weight: bold; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;Language Integrated Query (LINQ) can be used to convert a CSV file to XML. Here is the sample CSV file that needs to be converted&lt;/span&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;The following code reads the CSV file to an array. LINQ is used to loop through the array and the contents are written as XML using XElement (System.XML.Linq).&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;color:blue;&amp;quot;;" lang="EN-IN"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style="color: blue;"&gt;void&lt;/span&gt; ConvertCSVToXML()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;String&lt;/span&gt;[] FileContent = &lt;span style="color: rgb(43, 145, 175);"&gt;File&lt;/span&gt;.ReadAllLines(&lt;span style="color: rgb(163, 21, 21);"&gt;@"C:\Temp\vba.csv"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;String&lt;/span&gt; XMLNS = &lt;span style="color: rgb(163, 21, 21);"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt; Inv = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"Invoice"&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;from&lt;/span&gt; items &lt;span style="color: blue;"&gt;in&lt;/span&gt; FileContent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;let&lt;/span&gt; fields = items.Split(&lt;span style="color: rgb(163, 21, 21);"&gt;','&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"Item"&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"ID"&lt;/span&gt;, fields[0]),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"Name"&lt;/span&gt;, fields[1]),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"Price"&lt;/span&gt;, fields[2]),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"Availability"&lt;/span&gt;, fields[3]),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;XElement&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"TotalPrice"&lt;/span&gt;, fields[4])&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;                    &lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style=""&gt;        &lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;           &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;File&lt;/span&gt;.WriteAllText(&lt;span style="color: rgb(163, 21, 21);"&gt;@"C:\Temp\vba.xml"&lt;/span&gt;, XMLNS + Inv.ToString() );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;;font-size:100%;&amp;quot;;" lang="EN-IN"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 100%;"&gt;Here is the Input Text File&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_s2jU7girbyM/SPqUbGP0lCI/AAAAAAAABDU/o9RoQpmvpTA/s1600-h/dnd_csv2xml1.JPG"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_s2jU7girbyM/SPqUbGP0lCI/AAAAAAAABDU/o9RoQpmvpTA/s400/dnd_csv2xml1.JPG" alt="" id="BLOGGER_PHOTO_ID_5258678708162827298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 100%;" lang="EN-IN"&gt;The output XML looks like&lt;/span&gt;&lt;span style="font-size: 100%;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_s2jU7girbyM/SPqUbFgYPyI/AAAAAAAABDc/G0AYiSIAkCA/s1600-h/dnd_csv2xml2.JPG"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_s2jU7girbyM/SPqUbFgYPyI/AAAAAAAABDc/G0AYiSIAkCA/s400/dnd_csv2xml2.JPG" alt="" id="BLOGGER_PHOTO_ID_5258678707963838242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LINQ and C#, C# Convert CSV To XML, .NET CSV To XML, LINQ CSV to XML, Convert Text files to XML using C#,&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/div&gt;  &lt;div class="post-footer-line post-footer-line-1"&gt;&lt;span class="post-author vcard"&gt; &lt;/span&gt;&lt;span class="post-icons"&gt;&lt;span class="item-control blog-admin pid-24239361"&gt;&lt;a href="post-edit.g?blogID=6497434045878013201&amp;amp;postID=7693812375147435479" title="Edit Post"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/span&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt;&lt;span class="post-labels"&gt; Labels: &lt;a href="http://dotnetdud.blogspot.com/search/label/.NET%20CSV%20To%20XML" rel="tag"&gt;.NET CSV To XML&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/C%23%20Convert%20CSV%20To%20XML" rel="tag"&gt;C# Convert CSV To XML&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Convert%20Text%20files%20to%20XML%20using%20C%23" rel="tag"&gt;Convert Text files to XML using C#&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/LINQ%20and%20C%23" rel="tag"&gt;LINQ and C#&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/LINQ%20CSV%20to%20XML" rel="tag"&gt;LINQ CSV to XML&lt;/a&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-2988650966180742782?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/2988650966180742782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=2988650966180742782' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2988650966180742782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2988650966180742782'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/01/how-to-convert-csv-to-xml-using-c.html' title='How to Convert CSV to XML using C#'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_s2jU7girbyM/SPqUbGP0lCI/AAAAAAAABDU/o9RoQpmvpTA/s72-c/dnd_csv2xml1.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-8354227387524168876</id><published>2009-01-29T18:41:00.001-08:00</published><updated>2009-01-29T18:41:41.557-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Filter by FileSize using .NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Filter by FileSize using LINQ'/><category scheme='http://www.blogger.com/atom/ns#' term='Extract files greater than 1GB using LINQ'/><category scheme='http://www.blogger.com/atom/ns#' term='LINQ List files based on Size'/><category scheme='http://www.blogger.com/atom/ns#' term='Extract files based on Size in LINQ'/><title type='text'>List files based on FileSize using C#</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetdud.blogspot.com/2008/11/c-get-files-greater-than-specific-size.html"&gt;C# Get Files Greater than Specific Size using Linq&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;C# and LINQ can be combined to do wonders; here is a sample of that. The following snippet extracts the files that are more thsn 345 KB &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; GetFilesFromDirectory(&lt;span style="color: blue;"&gt;string&lt;/span&gt; DirPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt; Dir = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt;(DirPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;FileInfo&lt;/span&gt;[] FileList =&lt;span style=""&gt;  &lt;/span&gt;Dir.GetFiles(&lt;span style="color: rgb(163, 21, 21);"&gt;"*.*"&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175);"&gt;SearchOption&lt;/span&gt;.TopDirectoryOnly&lt;span style=""&gt;  &lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; query = &lt;span style="color: blue;"&gt;from&lt;/span&gt; FI &lt;span style="color: blue;"&gt;in&lt;/span&gt; FileList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;span style="color: blue;"&gt;where&lt;/span&gt; FI.Length &gt; 340000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; FI.FullName + &lt;span style="color: rgb(163, 21, 21);"&gt;" "&lt;/span&gt; +&lt;span style=""&gt;  &lt;/span&gt;FI.Length.ToString()&lt;span style=""&gt;  &lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s1 &lt;span style="color: blue;"&gt;in&lt;/span&gt; query&lt;span style=""&gt;  &lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(s1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(ex.Message );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri; color: rgb(255, 0, 0);"&gt;Extract files based on Size in C#, Extract files greater than 1GB using C#, C# List files based on Size, Filter by FileSize using C#, Extract files based on Size in .NET, Extract files greater than 1GB using .NET, .NET List files based on Size,  &lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="post-footer-line post-footer-line-1"&gt;&lt;span class="post-author vcard"&gt; &lt;/span&gt;&lt;span class="post-icons"&gt;&lt;span class="item-control blog-admin pid-24239361"&gt;&lt;a href="post-edit.g?blogID=6497434045878013201&amp;amp;postID=8055636950181284652" title="Edit Post"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/span&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt;&lt;span class="post-labels"&gt; Labels: &lt;a href="http://dotnetdud.blogspot.com/search/label/Extract%20files%20based%20on%20Size%20in%20LINQ" rel="tag"&gt;Extract files based on Size in LINQ&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Extract%20files%20greater%20than%201GB%20using%20LINQ" rel="tag"&gt;Extract files greater than 1GB using LINQ&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Filter%20by%20FileSize%20using%20.NET" rel="tag"&gt;Filter by FileSize using .NET&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Filter%20by%20FileSize%20using%20LINQ" rel="tag"&gt;Filter by FileSize using LINQ&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/LINQ%20%20List%20files%20based%20on%20Size" rel="tag"&gt;LINQ  List files based on Size&lt;/a&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-8354227387524168876?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/8354227387524168876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=8354227387524168876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8354227387524168876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8354227387524168876'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/01/list-files-based-on-filesize-using-c.html' title='List files based on FileSize using C#'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-6974903350053510282</id><published>2009-01-29T18:40:00.001-08:00</published><updated>2009-01-29T18:40:52.149-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Filter files by Date using .'/><category scheme='http://www.blogger.com/atom/ns#' term='Filter files by Date using C# GetFiles'/><category scheme='http://www.blogger.com/atom/ns#' term='Filter files by date using DirectoryInfo'/><category scheme='http://www.blogger.com/atom/ns#' term='DirectoryInfo.GetFiles method in C#'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Get Files modified within a week'/><title type='text'>C# GetFiles with Date Filter</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetdud.blogspot.com/2008/11/how-to-filter-files-that-are-modified.html"&gt;How to Filter files that are modified in a specific day using C#&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri;"&gt;Here is a snippet using C# and LINQ, which will retrieve the files from a directory for a specific date&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; GetFilesFromDirectory(&lt;span style="color: blue;"&gt;string&lt;/span&gt; DirPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt; Dir = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt;(DirPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;FileInfo&lt;/span&gt;[] FileList =&lt;span style=""&gt;  &lt;/span&gt;Dir.GetFiles(&lt;span style="color: rgb(163, 21, 21);"&gt;"*.*"&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175);"&gt;SearchOption&lt;/span&gt;.TopDirectoryOnly&lt;span style=""&gt;  &lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; query = &lt;span style="color: blue;"&gt;from&lt;/span&gt; FI &lt;span style="color: blue;"&gt;in&lt;/span&gt; FileList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;span style="color: blue;"&gt;where&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;FI.LastWriteTime.Date&lt;span style=""&gt;   &lt;/span&gt;== &lt;span style="color: rgb(43, 145, 175);"&gt;DateTime&lt;/span&gt;.Now.Date &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; FI.FullName + &lt;span style="color: rgb(163, 21, 21);"&gt;" "&lt;/span&gt; + FI.LastWriteTime;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s1 &lt;span style="color: blue;"&gt;in&lt;/span&gt; query&lt;span style=""&gt;  &lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(s1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(ex.Message );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 11pt; line-height: 115%; font-family: 'Calibri','sans-serif';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="post-footer-line post-footer-line-2"&gt;&lt;span class="post-labels"&gt; &lt;a href="http://dotnetdud.blogspot.com/search/label/.NET%20Get%20Files%20modified%20within%20a%20week" rel="tag"&gt;.NET Get Files modified within a week&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/.NET%20GetFiles" rel="tag"&gt;.NET GetFiles&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/DirectoryInfo.GetFiles%20method%20in%20.NET" rel="tag"&gt;DirectoryInfo.GetFiles method in .NET&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Filter%20files%20by%20date%20using%20DirectoryInfo" rel="tag"&gt;Filter files by date using DirectoryInfo&lt;/a&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-6974903350053510282?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/6974903350053510282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=6974903350053510282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/6974903350053510282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/6974903350053510282'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/01/c-getfiles-with-date-filter.html' title='C# GetFiles with Date Filter'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-5125260039395554694</id><published>2009-01-29T18:39:00.001-08:00</published><updated>2009-01-29T18:39:46.946-08:00</updated><title type='text'>C# Get Read Only Files</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetdud.blogspot.com/2008/11/list-all-readonly-files-in-directory.html"&gt;List all ReadOnly files in a directory using C# (.NET)&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; &lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri;"&gt;The following code will retrieve the read-only files using LINQ and C#&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; GetFilesFromDirectory(&lt;span style="color: blue;"&gt;string&lt;/span&gt; DirPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt; Dir = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryInfo&lt;/span&gt;(DirPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;FileInfo&lt;/span&gt;[] FileList =&lt;span style=""&gt;  &lt;/span&gt;Dir.GetFiles(&lt;span style="color: rgb(163, 21, 21);"&gt;"*.*"&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175);"&gt;SearchOption&lt;/span&gt;.TopDirectoryOnly&lt;span style=""&gt;  &lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; query = &lt;span style="color: blue;"&gt;from&lt;/span&gt; FI &lt;span style="color: blue;"&gt;in&lt;/span&gt; FileList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;span style="color: blue;"&gt;where&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;FI.IsReadOnly&lt;span style=""&gt;    &lt;/span&gt;== &lt;span style="color: blue;"&gt;true&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; FI.FullName + &lt;span style="color: rgb(163, 21, 21);"&gt;" "&lt;/span&gt; + FI.LastWriteTime;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s1 &lt;span style="color: blue;"&gt;in&lt;/span&gt; query&lt;span style=""&gt;  &lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(s1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(ex.Message );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri;"&gt;The above can (and mostly is) done by the following way&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; color: rgb(43, 145, 175); font-family: 'Courier New';"&gt;FileInfo&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;[] FileList =&lt;span style=""&gt;  &lt;/span&gt;Dir.GetFiles(&lt;span style="color: rgb(163, 21, 21);"&gt;"*.*"&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175);"&gt;SearchOption&lt;/span&gt;.TopDirectoryOnly&lt;span style=""&gt;  &lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;FileInfo&lt;/span&gt; F1 &lt;span style="color: blue;"&gt;in&lt;/span&gt; FileList)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (F1.IsReadOnly == &lt;span style="color: blue;"&gt;true&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(F1.FullName );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;span style="font-family: Calibri;"&gt;List ReadOnly files using C#, Retrieve Read-Only files using C#, Get Read Only Files using C#, List ReadOnly files using .NET, Retrieve Read-Only files using .NET, Get Read Only Files using .NET&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="post-footer-line post-footer-line-1"&gt;&lt;span class="post-author vcard"&gt; &lt;/span&gt;&lt;span class="post-icons"&gt;&lt;span class="item-control blog-admin pid-24239361"&gt;&lt;a href="post-edit.g?blogID=6497434045878013201&amp;amp;postID=2534625364275105804" title="Edit Post"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/span&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt;&lt;span class="post-labels"&gt; Labels: &lt;a href="http://dotnetdud.blogspot.com/search/label/Get%20Read%20Only%20Files%20using%20C%23" rel="tag"&gt;Get Read Only Files using C#&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/List%20ReadOnly%20files%20using%20C%23" rel="tag"&gt;List ReadOnly files using C#&lt;/a&gt;, &lt;a href="http://dotnetdud.blogspot.com/search/label/Retrieve%20Read-Only%20files%20using%20C%23" rel="tag"&gt;Retrieve Read-Only files using C#&lt;/a&gt; &lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-5125260039395554694?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/5125260039395554694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=5125260039395554694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5125260039395554694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5125260039395554694'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/01/c-get-read-only-files.html' title='C# Get Read Only Files'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-7303588533547238880</id><published>2009-01-29T18:38:00.000-08:00</published><updated>2009-01-29T18:39:02.956-08:00</updated><title type='text'>Essential guide to learn what you need to do before implementing SQL Server 2008.</title><content type='html'>&lt;a href="http://ct.email.sqlmag.com/rd/cts?d=33-21637-858-199-133124-2284694-0-0-0-1-2-202"&gt;&lt;b&gt;Are you ready to deploy SQL Server 2008?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Many IT  departments considering a &lt;a href="http://ct.email.sqlmag.com/rd/cts?d=33-21637-858-199-133124-2284695-0-0-0-1-2-202"&gt;migration  to SQL Server 2008&lt;/a&gt; are anxious about what may happen if the server does not  perform well at deployment. This essential guide explains how analyzing your  disk, memory, and processor requirements can help you develop a migration plan  that will make your deployment an immediate success.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ct.email.sqlmag.com/rd/cts?d=33-21637-858-199-133124-2284696-0-0-0-1-2-202"&gt;Download  this essential guide to learn what you need to do before implementing SQL Server  2008&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-7303588533547238880?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/7303588533547238880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=7303588533547238880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7303588533547238880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7303588533547238880'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2009/01/essential-guide-to-learn-what-you-need.html' title='Essential guide to learn what you need to do before implementing SQL Server 2008.'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-4340781733619739099</id><published>2008-12-06T18:20:00.000-08:00</published><updated>2008-12-06T18:22:01.668-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrade to SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='How to  Upgrade to SQL Server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Upgrade Technical Reference Guide'/><title type='text'>Download SQL Server 2008 Upgrade Technical Reference Guide</title><content type='html'>A free whitepaper called &lt;strong&gt;SQL Server 2008 Upgrade Technical Reference Guide&lt;/strong&gt; that provides in-depth information on how to upgrade to SQL Server 2008. The guide can be downloaded from &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=66d3e6f5-6902-4fdd-af75-9975aea5bea7&amp;amp;displaylang=en"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.technet.com/dataplatforminsider/default.aspx"&gt;View Blog &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-4340781733619739099?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/4340781733619739099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=4340781733619739099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4340781733619739099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4340781733619739099'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2008/12/download-sql-server-2008-upgrade.html' title='Download SQL Server 2008 Upgrade Technical Reference Guide'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-2722638533603789289</id><published>2008-12-06T18:14:00.000-08:00</published><updated>2008-12-06T18:17:44.062-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Free Download'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server  Free CD'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2008 Free Download'/><category scheme='http://www.blogger.com/atom/ns#' term='Free Download SQL Server 2008'/><title type='text'>Free Download SQL Server 2008 Enterprise 180-day evaluation</title><content type='html'>&lt;div class="cueSplitContent widthSplit0595 divTopBorder1"&gt;&lt;div class="cueSplitLeft"&gt;&lt;div class="cueImageBlock"&gt;&lt;p class="cueParagraph"&gt;SQL Server 2008 delivers on Microsoft’s Data Platform vision by helping your organization manage any data, any place, any time. Store data from structured, semi-structured, and unstructured documents, such as images and rich media, directly within the database. SQL Server 2008 delivers a rich set of integrated services that enable you to do more with your data such as query, search, synchronize, report, and analyze.&lt;/p&gt;&lt;p class="cueParagraph"&gt;SQL Server 2008 provides the highest levels of security, reliability, and scalability for your business-critical applications. To take advantage of new opportunities in today's fast-moving business world, companies need the ability to create and deploy data-driven solutions quickly. SQL Server 2008 reduces time and cost of management and development of applications.&lt;/p&gt;&lt;p class="cueParagraph"&gt;Access data from across your enterprise and provide control over your data no matter where it’s stored—from the largest servers within the data center to desktops to mobile devices. SQL Server 2008 provides a comprehensive platform that delivers intelligence where your users want it. Information workers can access data directly using the tools they use every day, such as the 2007 Microsoft Office system.&lt;/p&gt;&lt;p class="cueParagraph"&gt;SQL Server 2008 enables data to be consumed from custom applications developed using Microsoft .NET and Visual Studio and from within service-oriented architectures (SOA) and business processes through Microsoft BizTalk Server.&lt;/p&gt;&lt;p class="cueParagraph"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="cueSplitRight"&gt;&lt;div class="cueSection fontHeaderStyle mrgLeftFormat5"&gt;&lt;h3 class="cueSectionTitle"&gt;Download SQL Server 2008 Enterprise 180-day evaluation&lt;/h3&gt;&lt;/div&gt;&lt;div class="cueSection mrgLeftFormat5 mrgBottomFormat10"&gt;&lt;h3 class="cueSectionTitle"&gt;IT Professionals&lt;/h3&gt;&lt;p class="cueParagraph"&gt;Are you responsible for installing, configuring, administering, or troubleshooting database platforms and business intelligence applications? Do you manage IT resources and implement databases? Download SQL Server 2008 from the TechNet Trial Software Center today and experience the next generation of SQL Server.&lt;/p&gt;&lt;div class="cueImageBlock mrgTopFormat5"&gt;&lt;a href="http://switch.atdmt.com/action/mrtity_FY09SQL08RTMITProDownloadNow1click_1"&gt;&lt;img src="http://i.microsoft.com/global/sqlserver/2008/en/us/PublishingImages/btn-downloaditnow.gif" alt="Download it now" title="Download it now" width="150" height="26" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="cueSection mrgLeftFormat5"&gt;&lt;h3 class="cueSectionTitle"&gt;Developers&lt;/h3&gt;&lt;p class="cueParagraph"&gt;Are you are responsible for designing, developing, integrating, or testing application software solutions for Microsoft Windows and the Web? Are you the architect for enterprise solutions and information systems? Download SQL Server 2008 from the MSDN Evaluation Center today experience the next generation of SQL Server.&lt;/p&gt;&lt;div class="cueImageBlock mrgTopFormat5"&gt;&lt;a href="http://switch.atdmt.com/action/mrtity_FY09SQL08RTMDevDownloadNow1click_1"&gt;&lt;img src="http://i.microsoft.com/global/sqlserver/2008/en/us/PublishingImages/btn-downloaditnow.gif" alt="Download it now" title="Download it now" width="150" height="26" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="cueSplitLeft"&gt;&lt;div class="cueImageBlock"&gt;&lt;img src="http://i.microsoft.com/global/sqlserver/2008/en/us/PublishingImages/icon-rnd-downarrow.gif" alt="Download Icon" title="Download Icon" width="34" height="34" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="cueSplitRight"&gt;&lt;div class="cueSection fontHeaderStyle mrgLeftFormat5"&gt;&lt;h3 class="cueSectionTitle"&gt;Download SQL Server 2008 Feature Pack&lt;/h3&gt;&lt;p class="cueParagraph"&gt;The SQL Server 2008 Feature Pack is a separate download from SQL Server software. This collection of stand-alone install packages is designed to provide additional licensed functionality for SQL Server 2008. It contains new redistributable and backward compatibility components and add-on providers. For additional information on each of these components click the download button below.&lt;/p&gt;&lt;div class="cueImageBlock mrgTopFormat5"&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkID=110393"&gt;&lt;img src="http://i.microsoft.com/global/sqlserver/2008/en/us/PublishingImages/btn-downloaditnow.gif" alt="Download it now" title="Download it now" width="150" height="26" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For more info :&lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/overview.aspx"&gt;http://www.microsoft.com/sqlserver/2008/en/us/overview.aspx&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-2722638533603789289?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/2722638533603789289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=2722638533603789289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2722638533603789289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/2722638533603789289'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2008/12/free-download-sql-server-2008.html' title='Free Download SQL Server 2008 Enterprise 180-day evaluation'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-4538805585376850321</id><published>2007-10-28T19:49:00.000-07:00</published><updated>2007-10-28T19:50:06.998-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Learn SQL Server 2005 Free CD or Download'/><title type='text'>Learn SQL Server 2005--Free CD or Download</title><content type='html'>&lt;pre&gt;Learn SQL Server 2005--Free CD or Download&lt;br /&gt;  Get up to 3 hours of award-winning training from AppDev--FREE!&lt;br /&gt;Choose SQL Server 2005, SSAS, SSIS, or SSRS. Includes step-by-&lt;br /&gt;step instruction, hands-on labs, sample code, and printable&lt;br /&gt;courseware (a $115 value). Get your free SQL Server 2005 training&lt;br /&gt;at&lt;br /&gt;  &lt;a href="http://lists.sqlmag.com/t?ctl=69F7E:F21D603AB47E30601552C71C58F9D8E8"&gt;http://lists.sqlmag.com/t?ctl=69F7E:F21D603AB47E30601552C71C58F9D8E8&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-4538805585376850321?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/4538805585376850321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=4538805585376850321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4538805585376850321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/4538805585376850321'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/10/learn-sql-server-2005-free-cd-or.html' title='Learn SQL Server 2005--Free CD or Download'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-5926700249995777794</id><published>2007-06-28T19:14:00.000-07:00</published><updated>2007-06-28T19:18:08.932-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Now Function in SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='GetDate'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Now () Function in SQL Server</title><content type='html'>&lt;h3 class="post-title"&gt;Now () Function in SQL Server 2005&lt;br /&gt;&lt;/h3&gt;&lt;h3 class="post-title"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style="font-weight: normal;"&gt;Logs, Status Reports and et al., Now() function is common. Here is the way to accomplish the same in SQL Server &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 class="post-title"&gt;&lt;span style="font-weight: normal;font-size:100%;" &gt;Select @Today = GetDate() should give you the same&lt;/span&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 class="post-title"&gt;                          &lt;a href="http://sqldud.blogspot.com/2007/04/datepart-get-part-of-date.html"&gt;DatePart - Get Part of the Date&lt;/a&gt;                      &lt;/h3&gt;                 &lt;div class="post-body"&gt;       &lt;p&gt;-- Selecting the Current Year/Get Current Year/Separate Year Part from Date&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Select DatePart(YY, GetDate()) as Current_Year&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Selecting the Current Quarter/Get Current Quarter/Separate Quarter Part from Date&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select DatePart(QQ, GetDate()) as Current_Quarter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Selecting the Current Month/Get Current Month/Separate Month Part from Date&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select DatePart(MM, GetDate()) as Current_Month&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Selecting the Name of Current Month/Get Name of Current Month/Separate Month Part from Date and display its Name&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select DateName(month, GetDate()) as Current_Month_Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Selecting the Name of Current Month/Get Name of Current Month/Separate Month Part from Date and display its Name&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select DateName(day, GetDate()) as Current_Day&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Selecting the Name of Current Month/Get Name of Current Month/Separate Month Part from Date and display its Name&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select DateName(wk, GetDate()) as Current_Week&lt;/span&gt;&lt;/p&gt;             &lt;/div&gt;          &lt;p class="post-footer-line post-footer-line-1"&gt;       &lt;span class="post-author"&gt;                    Posted by Shasur                &lt;/span&gt;        &lt;span class="post-timestamp"&gt;                    at                    &lt;a class="timestamp-link" href="http://sqldud.blogspot.com/2007/04/datepart-get-part-of-date.html" title="permanent link"&gt;5:14 PM&lt;/a&gt;                         &lt;/span&gt;        &lt;span class="post-comment-link"&gt;                                  &lt;a class="comment-link" href="comment.g?blogID=7883769006508081360&amp;postID=460289147963262095" onclick=""&gt;0 comments&lt;/a&gt;                           &lt;/span&gt;                 &lt;span class="post-backlinks post-comment-link"&gt;                                        &lt;/span&gt;        &lt;span class="post-icons"&gt;                                             &lt;span class="item-control blog-admin pid-561618291"&gt;       &lt;a href="post-edit.g?blogID=7883769006508081360&amp;amp;postID=460289147963262095" title="Edit Post"&gt;         &lt;span class="quick-edit-icon"&gt; &lt;/span&gt;       &lt;/a&gt;     &lt;/span&gt;           &lt;/span&gt;       &lt;/p&gt;        &lt;p class="post-footer-line post-footer-line-2"&gt;       &lt;span class="post-labels"&gt;                    Labels:                        &lt;a href="http://sqldud.blogspot.com/search/label/DateName" rel="tag"&gt;DateName&lt;/a&gt;,                        &lt;a href="http://sqldud.blogspot.com/search/label/GetDate" rel="tag"&gt;GetDate&lt;/a&gt;,                        &lt;a href="http://sqldud.blogspot.com/search/label/Select%20Statement" rel="tag"&gt;Select Statement&lt;/a&gt;                           &lt;/span&gt;       &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-5926700249995777794?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/5926700249995777794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=5926700249995777794' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5926700249995777794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5926700249995777794'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/06/now-function-in-sql-server.html' title='Now () Function in SQL Server'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-1333819593662623595</id><published>2007-05-09T19:13:00.001-07:00</published><updated>2007-06-07T19:52:12.888-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='No Records using Select Query'/><category scheme='http://www.blogger.com/atom/ns#' term='No of Records for each group using Select Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement'/><title type='text'>No of Records using Select Query</title><content type='html'>-- No of Total Records using Select Query&lt;br /&gt;Select count(*) from Purchasing.PurchaseOrderDetail&lt;br /&gt;&lt;br /&gt;-- No of Records for each group using Select Query&lt;br /&gt;Select PurchaseOrderID, count(*) NoOfRec from Purchasing.PurchaseOrderDetail Group By PurchaseOrderID&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-1333819593662623595?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/1333819593662623595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=1333819593662623595' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/1333819593662623595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/1333819593662623595'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/05/no-records-using-select-query.html' title='No of Records using Select Query'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-7550597594933408428</id><published>2007-05-09T19:10:00.000-07:00</published><updated>2007-05-09T19:11:42.988-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Select Specific Columns and their corresponding tables'/><category scheme='http://www.blogger.com/atom/ns#' term='Select Columns From All Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement'/><category scheme='http://www.blogger.com/atom/ns#' term='Link Columns to Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Identify Column in All Tables</title><content type='html'>use AdventureWorks&lt;br /&gt;Select * From sys.columns&lt;br /&gt;select * from sys.tables&lt;br /&gt;&lt;br /&gt;-- Select Columns From All Tables&lt;br /&gt;select st.name, sc.name from sys.tables st, sys.columns sc&lt;br /&gt;where st.object_id = sc.object_id &lt;br /&gt;&lt;br /&gt;-- Select Specific Columns and their corresponding tables&lt;br /&gt;select st.name, sc.name from sys.tables st, sys.columns sc&lt;br /&gt;where st.object_id = sc.object_id &lt;br /&gt;and sc.name = 'EmployeeID'&lt;br /&gt;&lt;br /&gt;-- Select Specific Columns and their corresponding tables&lt;br /&gt;select st.name, sc.name from sys.tables st, sys.columns sc&lt;br /&gt;where st.object_id = sc.object_id &lt;br /&gt;and sc.name = 'PurchaseOrderID'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-7550597594933408428?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/7550597594933408428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=7550597594933408428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7550597594933408428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7550597594933408428'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/05/identify-column-in-all-tables.html' title='Identify Column in All Tables'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-8591728487403712962</id><published>2007-05-07T19:46:00.000-07:00</published><updated>2007-05-29T19:08:36.822-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sybase Write To Text File'/><category scheme='http://www.blogger.com/atom/ns#' term='Output text file Sybase'/><category scheme='http://www.blogger.com/atom/ns#' term='Create Log Files in Sybase'/><category scheme='http://www.blogger.com/atom/ns#' term='Append log files in Sybase'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase Write Log'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase Write To ASCII File'/><title type='text'>Write Log Files - Sybase</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Writing Logs - Text Files using Sybase&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to write to a Log file using Sybase use the following&lt;br /&gt;code. Here the log file is not overwritten - it is appended with the&lt;br /&gt;existing text. As the existing text is stored in a variable and&lt;br /&gt;rewritten to the file there will be a gradual slowdown in performance&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Declare sbuffer long varchar;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Declare sText long varchar;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Declare iRet integer;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Set sbuffer = xp_read_file('c:\temp\sample.sql');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Set sText = '\n';&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Set sText = sText || 'Writing Text @ ' || Now(*);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Set iRet  = xp_write_file('c:\temp\sample.sql', sbuffer || sText);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;END;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-8591728487403712962?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/8591728487403712962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=8591728487403712962' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8591728487403712962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8591728487403712962'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/05/write-log-files-sybase.html' title='Write Log Files - Sybase'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-3137909513697856810</id><published>2007-05-07T19:44:00.000-07:00</published><updated>2007-05-07T19:46:10.230-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL to Find all the triggers for a Table'/><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement'/><category scheme='http://www.blogger.com/atom/ns#' term='sys.triggers'/><category scheme='http://www.blogger.com/atom/ns#' term='System Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='Triggers and thier corresponding Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase  systrigger'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Link Triggers &amp; Tables</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Triggers and thier corresponding Tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Sybase&lt;br /&gt;select * from systrigger&lt;br /&gt;&lt;br /&gt;-- SQL Server&lt;br /&gt;select * from sys.triggers&lt;br /&gt;&lt;br /&gt;-- Triggers and Tables&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;If you want to know the triggers for each table or trigger for a&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;corresponding table use the following:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Sybase&lt;br /&gt;Select stab.table_name, strig.trigger_name from systable stab, systrigger strig&lt;br /&gt;where stab.table_id = strig.table_id&lt;br /&gt;&lt;br /&gt;-- SQL Server&lt;br /&gt;Select stab.name, strig.name from sys.tables stab, sys.triggers strig&lt;br /&gt;where stab.object_id = strig.parent_id&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-3137909513697856810?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/3137909513697856810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=3137909513697856810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/3137909513697856810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/3137909513697856810'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/05/link-triggers-tables.html' title='Link Triggers &amp; Tables'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-8985743128490395577</id><published>2007-05-07T19:40:00.000-07:00</published><updated>2007-05-07T19:43:56.397-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='System Stored Procedures'/><category scheme='http://www.blogger.com/atom/ns#' term='Input Parameters Stored Procedures'/><category scheme='http://www.blogger.com/atom/ns#' term='Stored Procedures'/><category scheme='http://www.blogger.com/atom/ns#' term='Parameters used in Stored Procedures'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Output Parameters Stored Procedures'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase'/><title type='text'>Stored Procedures &amp; Parameters</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;SQL Server / Sybase Stored Procedures &amp; Parameters&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- Sybase Syntax to Select Parameters used in All Available Stored Procedures&lt;/span&gt;&lt;br /&gt;select * from SYSPROCPARM&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- SQL Server Syntax to Select Parameters used in All Available Stored Procedures&lt;/span&gt;&lt;br /&gt;select * from sys.parameters&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- Sybase Syntax to Select All Available Stored Procedures&lt;/span&gt;&lt;br /&gt;select * from sysprocedure&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- SQL Server Syntax to Select All Available Stored Procedures&lt;/span&gt;&lt;br /&gt;select * from sys.procedures&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- To get the list of both input and output parameters used in every&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;stored procedure use the following syntax&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Sybase&lt;br /&gt;select sp.proc_name, spa.parm_name from sysprocedure sp,  SYSPROCPARM spa&lt;br /&gt;where sp.proc_id = spa.proc_id&lt;br /&gt;order by sp.proc_name&lt;br /&gt;&lt;br /&gt;--SQL Server&lt;br /&gt;select sp.name, spa.name from sys.procedures sp,  sys.parameters spa&lt;br /&gt;where sp.object_id = spa.object_id&lt;br /&gt;order by sp.name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- Procedures and their Input Parameters&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Sybase&lt;br /&gt;select sp.proc_name, spa.parm_name from sysprocedure sp,  SYSPROCPARM spa&lt;br /&gt;where sp.proc_id = spa.proc_id&lt;br /&gt;and parm_mode_in = 'Y'&lt;br /&gt;order by sp.proc_name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- SQL Server&lt;br /&gt;select sp.name, spa.name from sys.procedures sp,  sys.parameters spa&lt;br /&gt;where sp.object_id = spa.object_id&lt;br /&gt;and spa.is_output = 0&lt;br /&gt;order by sp.name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;-- Procedures and their Output Parameters&lt;/span&gt;&lt;br /&gt;-- Sybase&lt;br /&gt;select sp.proc_name, spa.parm_name from sysprocedure sp,  SYSPROCPARM spa&lt;br /&gt;where sp.proc_id = spa.proc_id&lt;br /&gt;and parm_mode_out = 'Y'&lt;br /&gt;order by sp.proc_name&lt;br /&gt;&lt;br /&gt;-- SQL Server&lt;br /&gt;select sp.name, spa.name from sys.procedures sp,  sys.parameters spa&lt;br /&gt;where sp.object_id = spa.object_id&lt;br /&gt;and spa.is_output = 1&lt;br /&gt;order by sp.name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-8985743128490395577?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/8985743128490395577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=8985743128490395577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8985743128490395577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8985743128490395577'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/05/stored-procedures-parameters.html' title='Stored Procedures &amp; Parameters'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-7037835642144735493</id><published>2007-04-28T19:07:00.000-07:00</published><updated>2007-06-07T19:53:18.997-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Get HOst Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Computer Name from SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Get Computer Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement'/><title type='text'>Get COMPUTER NAME from SQL Query</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Get the HOST NAME / COMPUTER NAME&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the Computer Name using SQL Query&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select Host_Name() as Computer_Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get Computer Name, Get HOst Name&lt;br /&gt;&lt;br /&gt;Here is the Way you can get the same in Visual Basic : &lt;a href="http://vbadud.blogspot.com/2007/05/get-computer-name.html"&gt;http://vbadud.blogspot.com/2007/05/get-computer-name.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is the Way you can get the same in .Net :&lt;br /&gt;&lt;a href="http://dotnetdud.blogspot.com/2007/06/get-computer-name-in-net.html"&gt;http://dotnetdud.blogspot.com/2007/06/get-computer-name-in-net.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-7037835642144735493?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/7037835642144735493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=7037835642144735493' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7037835642144735493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/7037835642144735493'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/04/get-computer-name-from-sql-query.html' title='Get COMPUTER NAME from SQL Query'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-5229915845569375869</id><published>2007-04-28T18:54:00.000-07:00</published><updated>2007-07-13T09:23:10.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement'/><category scheme='http://www.blogger.com/atom/ns#' term='Coalesce Function'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase'/><title type='text'>Coalesce Function</title><content type='html'>&lt;span style="color: rgb(255, 102, 0);"&gt;Coalesce Function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Displays the first nonnull expression among its arguments&lt;br /&gt;&lt;br /&gt;-- returns  Iam Not a Null&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select Coalesce (Null, Null, 'Iam Not a Null', Null) as NotNull&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This function will be used to skip the NULL columns and get the ones that have value. This function can be maximum utilised in situations where you need to get one value from a group of columns that could contain null.&lt;br /&gt;&lt;br /&gt;For example, Let us assume that you have a contact table with office_phno, mobile_nos, home_phnos in it and you need to send them greetings. You can use &lt;span style="color: rgb(255, 102, 0);"&gt;Coalesce Function&lt;/span&gt; to get the non null number according to priority&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Select Coalesce (Office_phno, mobile_nos, home_phnos, 'No Ph No Available) as ContactNo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogdigger.com/" alt="Blogdigger Blog Search Engine"/&gt;&lt;img src="http://www.blogdigger.com/images/blogdigger2.gif" border="0"/&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-5229915845569375869?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/5229915845569375869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=5229915845569375869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5229915845569375869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/5229915845569375869'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/04/coalesce-function.html' title='Coalesce Function'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7883769006508081360.post-8882973971376073862</id><published>2007-04-28T18:53:00.000-07:00</published><updated>2007-04-28T18:54:50.550-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CASE Function'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server CASE Function'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase Case Function'/><category scheme='http://www.blogger.com/atom/ns#' term='CASE Function Example'/><title type='text'>CASE Function Example - Database</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;SQL Server CASE Function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Evaluates a list of conditions and returns one of multiple possible result expressions&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Begin &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; Declare @Position Int;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; Set @Position = 3&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; Select Case @Position&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; when 1 then 'Gold'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; when 2 then 'Silver'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; when 3 then 'Bronze'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; Else  cast(@Position as varchar)+ 'th'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; End as Medal&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;End&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can change the value of @Position and analyse the output&lt;br /&gt;&lt;br /&gt;SQL Server CASE Function, CASE Function, CASE Function Example&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7883769006508081360-8882973971376073862?l=sqldud.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqldud.blogspot.com/feeds/8882973971376073862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7883769006508081360&amp;postID=8882973971376073862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8882973971376073862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7883769006508081360/posts/default/8882973971376073862'/><link rel='alternate' type='text/html' href='http://sqldud.blogspot.com/2007/04/case-function-example-database.html' title='CASE Function Example - Database'/><author><name>Shasur</name><uri>http://www.blogger.com/profile/17390752937266096344</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16813219687827379549'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>