<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>S-E-N-S-E Developers&#039; Corner</title>
	<atom:link href="http://asimafzal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://asimafzal.wordpress.com</link>
	<description>The eSENSE of IT and Formulation of DIGITS.</description>
	<lastBuildDate>Sat, 10 Dec 2011 15:35:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='asimafzal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c807f7647c1d1bdf5974cf5851114779?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>S-E-N-S-E Developers&#039; Corner</title>
		<link>http://asimafzal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://asimafzal.wordpress.com/osd.xml" title="S-E-N-S-E Developers&#039; Corner" />
	<atom:link rel='hub' href='http://asimafzal.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to Test SMTP Server is working ?</title>
		<link>http://asimafzal.wordpress.com/2011/12/05/how-to-test-smtp-server-is-working/</link>
		<comments>http://asimafzal.wordpress.com/2011/12/05/how-to-test-smtp-server-is-working/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 11:33:46 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[smtp telnet]]></category>
		<category><![CDATA[stmp test]]></category>
		<category><![CDATA[test smtp port]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=299</guid>
		<description><![CDATA[Here is way how can you test that SMTP Server is working on SMTP Port 25. &#183; Open Command window by typing cmd. &#183; Type the following command where smpt.yourdomain.com is the address of the smtp server and 25 is the default port number. o Telnet smpt.yourdomain.com 25 &#183; You will see the output: o [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=299&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is way how can you test that SMTP Server is working on SMTP Port 25.</p>
<p>&middot; Open Command window by typing cmd.</p>
<p>&middot; Type the following command where smpt.yourdomain.com is the address of the smtp server and 25 is the default port number.</p>
<p>o Telnet smpt.yourdomain.com 25</p>
<p>&middot; You will see the output:</p>
<p>o 220 mailserver.yourdomain.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Sat, 3 Dec 2011 08:34:14 +0200</p>
<p>&middot; The above message indicates that SMTP has been configured or the existing server IP has been added to SMTP relay.</p>
<p>&middot; For more detail you type help the response will be:</p>
<p>o When you type the ‘help’ command the available commands are listed:</p>
<p>214-This server supports the following commands:<br />
214 HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH TURN ATRN ETRN BDAT VRFY</p>
<p>In case of failure you can check the current server IP is added into SMTP server relay list.</p>
<p>All the best!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=299&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/12/05/how-to-test-smtp-server-is-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>CWE/SANS TOP 25 Most Dangerous Programming Errors</title>
		<link>http://asimafzal.wordpress.com/2011/07/20/cwesans-top-25-most-dangerous-programming-errors/</link>
		<comments>http://asimafzal.wordpress.com/2011/07/20/cwesans-top-25-most-dangerous-programming-errors/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 05:31:45 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Errors]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/2011/07/20/cwesans-top-25-most-dangerous-programming-errors/</guid>
		<description><![CDATA[CWE/SANS TOP 25 Most Dangerous Programming Errors Experts Announce Agreement on the 25 Most Dangerous Programming Errors &#8211; And How to Fix Them Agreement Will Change How Organizations Buy Software. Each entry at the Top 25 Errors site also includes fairly extensive prevention and remediation steps that developers can take to mitigate or eliminate the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=295&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><em>CWE/SANS TOP 25 Most Dangerous Programming Errors</em></strong></p>
<p><strong></strong></p>
<p><strong>Experts Announce Agreement on the 25 Most Dangerous Programming Errors &#8211; And How to Fix Them<br />
Agreement Will Change How Organizations Buy Software.</strong></p>
<p>Each entry at the Top 25 Errors site also includes fairly extensive prevention and remediation steps that developers can take to mitigate or eliminate the weakness.</p>
<p><strong>CATEGORY: Insecure Interaction Between Components</strong></p>
<p><strong>CWE-20: Improper Input Validation</strong></p>
<p>It&#8217;s the number one killer of healthy software, so you&#8217;re just asking for trouble if you don&#8217;t ensure that your input conforms to expectations&#8230;<a href="http://cwe.mitre.org/top25/#CWE-20">MORE &gt;&gt;</a></p>
<p><strong>CWE-116: Improper Encoding or Escaping of Output</strong></p>
<p>Computers have a strange habit of doing what you say, not what you mean. Insufficient output encoding is the often-ignored sibling to poor input validation, but it is at the root of most injection-based attacks, which are all the rage these days&#8230;<a href="http://cwe.mitre.org/top25/#CWE-116">MORE &gt;&gt;</a></p>
<p><strong>CWE-89: Failure to Preserve SQL Query Structure (aka &#8216;SQL Injection&#8217;)</strong></p>
<p>If attackers can influence the SQL that you use to communicate with your database, then they can&#8230;<a href="http://cwe.mitre.org/top25/#CWE-89">MORE &gt;&gt;</a></p>
<p><strong>CWE-79: Failure to Preserve Web Page Structure (aka &#8216;Cross-site Scripting&#8217;)</strong></p>
<p>Cross-site scripting (XSS) is one of the most prevalent, obstinate, and dangerous vulnerabilities in web applications&#8230;If you&#8217;re not careful, attackers can&#8230;<a href="http://cwe.mitre.org/top25/#CWE-79">MORE &gt;&gt;</a></p>
<p><strong>CWE-78: Failure to Preserve OS Command Structure (aka &#8216;OS Command Injection&#8217;)</strong></p>
<p>When you invoke another program on the operating system, but you allow untrusted inputs to be fed into the command string that you generate for executing the program, then you are inviting attackers&#8230;<a href="http://cwe.mitre.org/top25/#CWE-78">MORE &gt;&gt;</a></p>
<p><strong>CWE-319: Cleartext Transmission of Sensitive Information</strong></p>
<p>If your software sends sensitive information across a network, such as private data or authentication credentials, that information crosses many&#8230;<a href="http://cwe.mitre.org/top25/#CWE-319">MORE &gt;&gt;</a></p>
<p><strong>CWE-352: Cross-Site Request Forgery (CSRF)</strong></p>
<p>With cross-site request forgery, the attacker gets the victim to activate a request that goes to your site. Thanks to scripting and the way the web works in general, the victim&#8230;<a href="http://cwe.mitre.org/top25/#CWE-352">MORE &gt;&gt;</a></p>
<p><strong>CWE-362: Race Condition</strong></p>
<p>Attackers will consciously look to exploit race conditions to cause chaos or get your application to cough up something valuable&#8230;<a href="http://cwe.mitre.org/top25/#CWE-362">MORE &gt;&gt;</a></p>
<p><strong>CWE-209: Error Message Information Leak</strong></p>
<p>If you use chatty error messages, then they could disclose secrets to any attacker who dares to misuse your software. The secrets could cover a wide range of valuable data&#8230;<a href="http://cwe.mitre.org/top25/#CWE-209">MORE &gt;&gt;</a></p>
<p><strong>CATEGORY: Risky Resource Management</strong></p>
<p><strong>CWE-119: Failure to Constrain Operations within the Bounds of a Memory Buffer</strong></p>
<p>Buffer overflows are Mother Nature&#8217;s little reminder of that law of physics that says if you try to put more stuff into a container than it can hold, you&#8217;re&#8230;<a href="http://cwe.mitre.org/top25/#CWE-119">MORE &gt;&gt;</a></p>
<p><strong>CWE-642: External Control of Critical State Data</strong></p>
<p>There are many ways to store user state data without the overhead of a database. Unfortunately, if you store that data in a place where an attacker can&#8230;<a href="http://cwe.mitre.org/top25/#CWE-642">MORE &gt;&gt;</a></p>
<p><strong>CWE-73: External Control of File Name or Path</strong></p>
<p>When you use an outsider&#8217;s input while constructing a filename, you&#8217;re taking a chance. If you&#8217;re not careful, an attacker could&#8230; <a href="http://cwe.mitre.org/top25/#CWE-73">MORE &gt;&gt;</a></p>
<p><strong>CWE-426: Untrusted Search Path</strong></p>
<p>If a resource search path is under attacker control, then the attacker can modify it to point to resources of the attacker&#8217;s choosing. This causes the software to access the wrong resources at the wrong time&#8230;<a href="http://cwe.mitre.org/top25/#CWE-426">MORE &gt;&gt;</a></p>
<p><strong>CWE-94: Failure to Control Generation of Code (aka &#8216;Code Injection&#8217;)</strong></p>
<p>For ease of development, sometimes you can&#8217;t beat using a couple lines of code to employ lots of functionality. It&#8217;s even cooler when&#8230;<a href="http://cwe.mitre.org/top25/#CWE-94">MORE &gt;&gt;</a></p>
<p><strong>CWE-494: Download of Code Without Integrity Check</strong></p>
<p>You don&#8217;t need to be a guru to realize that if you download code and execute it, you&#8217;re trusting that the source of that code isn&#8217;t malicious. But attackers can perform all sorts of tricks&#8230;<a href="http://cwe.mitre.org/top25/#CWE-494">MORE &gt;&gt;</a></p>
<p><strong>CWE-404: Improper Resource Shutdown or Release</strong></p>
<p>When your precious system resources have reached their end-of-life, you need to&#8230;<a href="http://cwe.mitre.org/top25/#CWE-404">MORE &gt;&gt;</a></p>
<p><strong>CWE-665: Improper Initialization</strong></p>
<p>Just as you should start your day with a healthy breakfast, proper initialization helps to ensure&#8230;<a href="http://cwe.mitre.org/top25/#CWE-665">MORE &gt;&gt;</a></p>
<p><strong>CWE-682: Incorrect Calculation</strong></p>
<p>When attackers have some control over the inputs that are used in numeric calculations, this weakness can lead to vulnerabilities. It could cause you to make incorrect security decisions. It might cause you to&#8230;<a href="http://cwe.mitre.org/top25/#CWE-682">MORE &gt;&gt;</a></p>
<p><strong>CATEGORY: Porous Defenses</strong></p>
<p><strong>CWE-285: Improper Access Control (Authorization)</strong></p>
<p>If you don&#8217;t ensure that your software&#8217;s users are only doing what they&#8217;re allowed to, then attackers will try to exploit your improper authorization and&#8230;<a href="http://cwe.mitre.org/top25/#CWE-285">MORE &gt;&gt;</a></p>
<p><strong>CWE-327: Use of a Broken or Risky Cryptographic Algorithm</strong></p>
<p>You may be tempted to develop your own encryption scheme in the hopes of making it difficult for attackers to crack. This kind of grow-your-own cryptography is a welcome sight to attackers&#8230;<a href="http://cwe.mitre.org/top25/#CWE-327">MORE &gt;&gt;</a></p>
<p><strong>CWE-259: Hard-Coded Password</strong></p>
<p>Hard-coding a secret account and password into your software&#8217;s authentication module is&#8230;<a href="http://cwe.mitre.org/top25/#CWE-259">MORE &gt;&gt;</a></p>
<p><strong>CWE-732: Insecure Permission Assignment for Critical Resource</strong></p>
<p>If you have critical programs, data stores, or configuration files with permissions that make your resources accessible to the world &#8211; well, that&#8217;s just what they&#8217;ll become&#8230;<a href="http://cwe.mitre.org/top25/#CWE-732">MORE &gt;&gt;</a></p>
<p><strong>CWE-330: Use of Insufficiently Random Values</strong></p>
<p>If you use security features that require good randomness, but you don&#8217;t provide it, then you&#8217;ll have attackers laughing all the way to the bank&#8230;<a href="http://cwe.mitre.org/top25/#CWE-330">MORE &gt;&gt;</a></p>
<p><strong>CWE-250: Execution with Unnecessary Privileges</strong></p>
<p>Spider Man, the well-known comic superhero, lives by the motto &quot;With great power comes great responsibility.&quot; Your software may need special privileges to perform certain operations, but wielding those privileges longer than necessary can be extremely risky&#8230;<a href="http://cwe.mitre.org/top25/#CWE-250">MORE &gt;&gt;</a></p>
<p><strong>CWE-602: Client-Side Enforcement of Server-Side Security</strong></p>
<p>Remember that underneath that fancy GUI, it&#8217;s just code. Attackers can reverse engineer your client and write their own custom clients that leave out certain inconvenient features like all those pesky security controls&#8230;<a href="http://cwe.mitre.org/top25/#CWE-602">MORE &gt;&gt;</a></p>
<p><strong>Resources to Help Eliminate The Top 25 Errors</strong></p>
<p>The TOP 25 Errors List will be updated regularly and will be posted at both the SANS and MITRE sites<br />
<a href="http://www.sans.org/top25">www.sans.org/top25</a><br />
<a href="http://cwe.mitre.org/top25/">cwe.mitre.org/top25/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/295/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=295&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/07/20/cwesans-top-25-most-dangerous-programming-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Certified Professional Developer (MCPD) &#8211; SharePoint 2010</title>
		<link>http://asimafzal.wordpress.com/2011/07/02/microsoft-certified-professional-developer-mcpd-sharepoint-2010/</link>
		<comments>http://asimafzal.wordpress.com/2011/07/02/microsoft-certified-professional-developer-mcpd-sharepoint-2010/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 10:05:48 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[VS .net C#]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[mcpd]]></category>
		<category><![CDATA[mcts]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=288</guid>
		<description><![CDATA[Exams &#8212;&#8211; MCTS prerequisite: TS: Microsoft SharePoint 2010, Application Development Exam 70-573 (You will be after this exam MCTS &#8211; Microsoft Certified Technology Specialist) MCPD requirement: PRO: Designing and Developing Microsoft SharePoint 2010 Applications Exam 70-576 MOCs/Official Training &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 10175 TS: Microsoft SharePoint 2010, Application Development 10231 IT Pro: Designing and Deploying Microsoft SharePoint 2010 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=288&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Exams<br />
&#8212;&#8211;<br />
 MCTS prerequisite: TS: Microsoft SharePoint 2010, Application Development<br />
 Exam 70-573  (You will be after this exam MCTS &#8211; Microsoft Certified Technology Specialist)</p>
<p> MCPD requirement: PRO: Designing and Developing Microsoft SharePoint 2010 Applications<br />
 Exam 70-576 </p>
<p>MOCs/Official Training<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 10175 TS: Microsoft SharePoint 2010, Application Development </p>
<p> 10231 IT Pro: Designing and Deploying Microsoft SharePoint 2010 </p>
<p>Books<br />
&#8212;&#8211;<br />
MS Press Microsoft SharePoint 2010 Administrator&#8217;s Companion<br />
by Bill English, Mark Ferraz, and Brian Alderman</p>
<p>For more information<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>http://www.microsoft.com/learning/en/us/certification/mcpd.aspx#tab2</p>
<p>http://www.newhorizons.com/Microsoft-MCPD-SharePoint-Developer-2010.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=288&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/07/02/microsoft-certified-professional-developer-mcpd-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Clustr Maps</title>
		<link>http://asimafzal.wordpress.com/2011/06/20/clustr-maps/</link>
		<comments>http://asimafzal.wordpress.com/2011/06/20/clustr-maps/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 10:09:36 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[clustr maps]]></category>
		<category><![CDATA[site hits]]></category>
		<category><![CDATA[visitors count]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=285</guid>
		<description><![CDATA[Provides free HTML link that gives you a tiny map. When it loads, it increments a counter and shows the locations of all visitors to your page, cumulatively (even for huge numbers). Clicking on it zooms in to a big world map, and (optionally) lets you zoom in to the continents, as in the example [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=285&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Provides free HTML link that gives you a tiny map. When it loads, it increments a counter and shows the locations of all visitors to your page, cumulatively (even for huge numbers). Clicking on it zooms in to a big world map, and (optionally) lets you zoom in to the continents, as in the example above. For light users (under 2500 visitors daily) the service is free, forever, and stores cumulative totals up to millions of visitors. </p>
<p><a href="http://www4.clustrmaps.com/user/609dc176"><img src="http://www4.clustrmaps.com/stats/maps-no_clusters/asimafzal.wordpress.com-thumb.jpg" alt="Locations of visitors to this page" /><br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=285&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/06/20/clustr-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>

		<media:content url="http://www4.clustrmaps.com/stats/maps-no_clusters/asimafzal.wordpress.com-thumb.jpg" medium="image">
			<media:title type="html">Locations of visitors to this page</media:title>
		</media:content>
	</item>
		<item>
		<title>Best Practices &#8211; MS SQL Server Programming</title>
		<link>http://asimafzal.wordpress.com/2011/04/17/best-practices-ms-sql-server-programming/</link>
		<comments>http://asimafzal.wordpress.com/2011/04/17/best-practices-ms-sql-server-programming/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 08:56:11 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[SQL Server Database]]></category>
		<category><![CDATA[MS SQL Server Programming tips]]></category>
		<category><![CDATA[MS SQL tips and Tricks]]></category>
		<category><![CDATA[SQL server best practices]]></category>
		<category><![CDATA[SQL Tips]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=279</guid>
		<description><![CDATA[Best Practices &#8211; MS SQL Server Programming Contents 1) Query Constructs 2) Code Re-useable Techniques 3) Environment Settings 4) Coding Style 5) Naming Conventions 6) Other Useful tips 1) Query Constructs Expressions o Simple &#38; Complex Expressions Clauses o Select, From o Where o Group by o Order by o Having o Insert, Update, Delete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=279&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Best Practices &#8211; MS SQL Server Programming</strong></p>
<p><strong>Contents</strong></p>
<p>1) Query Constructs</p>
<p>2) Code Re-useable Techniques</p>
<p>3) Environment Settings</p>
<p>4) Coding Style</p>
<p>5) Naming Conventions</p>
<p>6) Other Useful tips</p>
<p><strong>1) Query Constructs</strong></p>
<p>Expressions</p>
<p>o Simple &amp; Complex Expressions</p>
<p>Clauses</p>
<p>o Select, From</p>
<p>o Where</p>
<p>o Group by</p>
<p>o Order by</p>
<p>o Having</p>
<p>o Insert, Update, Delete</p>
<p>o INTO</p>
<p>Joins</p>
<p>o Inner</p>
<p>o Outer (Left, Right, Full)</p>
<p>o Cross</p>
<p>Iterations</p>
<p>o Cursors (Static, Dynamic)</p>
<p>o While Loops</p>
<p>Derived &amp; Temporary Tables</p>
<p>o Sub-Query</p>
<p>o Local &amp; Global Temporary Tables</p>
<p>Apply Clause</p>
<p>o Outer Apply</p>
<p>o Cross Apply</p>
<p>LIKE, TOP, UNION, UNION ALL, EXCEPT, INTERSECT</p>
<p>TRYCATCH</p>
<p><strong>Things to consider</strong></p>
<p>Avoid to use expressions in where clause</p>
<p>Always use Column names list in Select Clause, avoid using SELECT *</p>
<p>Restrict data rows selection by using WHERE clause</p>
<p>Avoid using WHERE IN (query), convert it into joins or apply clause.</p>
<p>Use the GROUP BY clause to filter group function results by the columns of the SELECT statement instead of grouping every record</p>
<p>Use the HAVING clause to filter groups based on group function values instead of using WHERE to filter records before they are grouped</p>
<p>Use GROUP BY clause to gather distinct values instead of DISTINCT clause.</p>
<p>Do not use the column numbers in the ORDER BY clause as it impairs the readability of the SQL statement. Further, changing the order of columns in the SELECT list has no impact on the ORDER BY when the columns are referred by names instead of numbers.</p>
<p>Use the more readable ANSI-Standard Join clauses instead of the old style joins. With ANSI joins the WHERE clause is used only for filtering data. Whereas with older style joins, the WHERE clause handles both the join condition and filtering data.</p>
<p>Try to avoid server side cursors as much as possible. Always stick to &#8216;set based approach&#8217; instead of a &#8216;procedural approach&#8217; for accessing/manipulating data. Cursors can be easily avoided by SELECT statements in many cases. If a cursor is unavoidable, use a simple WHILE loop instead, to loop through the table.</p>
<p>Use derived and temporary tables to make filtered data selections as per requirement.</p>
<p>Avoid using global temporary tables</p>
<p>Avoid using INLINE queries.</p>
<p>Try to avoid wildcard characters at the beginning of a word while searching using the LIKE keyword, as that results in an index scan, which is defeating the purpose of having an index, also avoid searching with not equals operators (&lt;&gt; and NOT) as they result in table and index scans.</p>
<p>Avoid to use of dynamic SQL, if necessary use with care as it leads to SQL injection.</p>
<p><strong>2) Code Re-useable Techniques</strong></p>
<p>Procedures</p>
<p>o Temporary (Local &amp; Global) Procedures</p>
<p>o System Procedures</p>
<p>o Extended Procedures</p>
<p>o Internal Procedures</p>
<p>o User Procedures</p>
<p>Functions</p>
<p>o Scalar UDFs</p>
<p>o In-Line and Table-valued UDFs</p>
<p>o Built-in Functions</p>
<p>Triggers</p>
<p>o After Triggers</p>
<p>o Instead Of Triggers</p>
<p>o CLR Triggers</p>
<p>Views</p>
<p>o Standard views</p>
<p>o Indexed views</p>
<p>o Partitioned views (Local &amp; Distributed)</p>
<p>o Parameterized views</p>
<p>Code Re-useable Techniques Best Practices</p>
<p>include SET NOCOUNT ON statement</p>
<p>Use schema name with object name</p>
<p>Do not use the prefix sp_ in the stored procedure name</p>
<p>Use IF EXISTS (SELECT 1) instead of (SELECT *)</p>
<p>Use the sp_executesql stored procedure instead of the EXECUTE statement</p>
<p>Try to avoid using SQL Server cursors whenever possible</p>
<p>Keep the Transaction as short as possible</p>
<p>Use TRY-Catch for error handling</p>
<p>User defined function are most likely not recommended.</p>
<p>Views are mostly implemented to hide complex logics, for security reasons or to hide actual implementations.</p>
<p>Always avoid making view on other views.</p>
<p><strong>3) Environment Settings</strong></p>
<p>Date and time statements</p>
<p>o SET DATEFIRST (@@DATEFIRST)</p>
<p>o SET DATEFORMAT (mdy)</p>
<p>Locking statements</p>
<p>Miscellaneous statements</p>
<p>o SET CONCATE NULL YIELDS NULL</p>
<p>o SET IDENTITY INSERT</p>
<p>Query execution statements</p>
<p>o SET NOCOUNT</p>
<p>o SET ROWCOUNT</p>
<p><strong>4) Coding Style</strong></p>
<p>Adopt a convention</p>
<p>Use indenting to help break up the sequence of statements, so that conditional statement flow is readily apparent.</p>
<p>Some people like to use a fixed 3- or 4-spaces per indent level, while others like it to vary depending on the statement preceding the indent.</p>
<p>Capitalize the entire keyword that SSMS would display in blue (e.g. within a stored procedure).</p>
<p>Camel case the names of system functions like CharIndex() .</p>
<p>Keep lines short so that horizontal scrolling isn&#8217;t necessary.</p>
<p>Use Begin and End blocks. Place the Begin at the end of the conditional clause and place the End on its own line but at the same indent level as the If or While that initiated its use.</p>
<p>Use SET for assignment statements. An exception is SELECT @Err=@@Error, @RC=@@RowCount when both assignments must be made at the same time.</p>
<p>Use SELECT for assignment statements that require a query.</p>
<p>Dispense with the superfluous AS in data type statements and when aliasing.</p>
<p><strong>5) Naming Conventions</strong></p>
<p>Tables</p>
<p>Mostly no need any prefix, but we are using tblXXXXX</p>
<p>o Name should be descriptive for an entity</p>
<p>o Use prefix for look up tables like luXXXX or tblLUXXXX</p>
<p>o Many-to-many (conjoint) tables should be separated by underscore.</p>
<p>o Table/Entity name may be singular or plural.</p>
<p>o Never use a name that requires [ ].</p>
<p>o Columns</p>
<p>o Avoid underscores</p>
<p>o Never use column name that require [ ]</p>
<p>o Dont use abbreviation, name should be descriptive.</p>
<p>o Primary key should be same in all tables (Parent &amp; Child)</p>
<p>Views</p>
<p>o Common prefix used vwXXXX or vXXXXXX</p>
<p>o Avoid use of underscores</p>
<p>o Should be under particular schema.</p>
<p>Procedures</p>
<p>o Prefix may be uspXXXX or sProjectDESCRXXXXX</p>
<p>o Should be under particular schema.</p>
<p>Functions</p>
<p>o Common prefix used ufnXXXX or fnXXXX or udfXXXXXX</p>
<p>o Must be associated to schema.</p>
<p>Alias Names</p>
<p>o Use initials of each word from table name</p>
<p>o Always specify name to an expression or computed column</p>
<p><strong>6) Other Useful Tips</strong></p>
<p>Do not depend on undocumented functionality.</p>
<p>Do not use varchar fields for dates. SmallDateTime is sufficient for most purposes.</p>
<p>NULL and NOT IN Predicate</p>
<p>Incorrect sub-query column, care mostly in DML statements</p>
<p>Predicate evaluation order (From, Where, group by, having, Order by)</p>
<p>Avoid the use of excessive cursors. They are slow and very rarely necessary.</p>
<p>Avoid the use of triggers. When used, focus on its complexity, if it is complicated, it will slow down DML.</p>
<p>Write comments in your stored procedures, triggers and SQL batches generously, whenever something is not very obvious. This helps other programmers understand your code clearly.</p>
<p>General template to write batch codes:</p>
<p><em>Comments:</em></p>
<p><em>Program Name:</em></p>
<p><em>Programmer:</em></p>
<p><em>Date Created:</em></p>
<p><em>Purpose:</em></p>
<p><em>Dependency:</em></p>
<p><em>History of Changes:</em></p>
<p>Use &#8216;User Defined Data types&#8217;, if a particular column repeats in a lot of your tables, so that the data type of that column is consistent across all your tables.</p>
<p>Minimize the usage of NULLs, as they often confuse the front-end applications, unless the applications are coded intelligently to eliminate NULLs or convert the NULLs into some other form.</p>
<p>Always access tables in the same order in all your stored procedures/triggers consistently. This helps in avoiding deadlocks. Other things to keep in mind to avoid deadlocks are: Keep your transactions as short as possible. Touch as less data as possible during a transaction. Never, ever wait for user input in the middle of a transaction.</p>
<p>Offload tasks like string manipulations, concatenations, row numbering, case conversions, type conversions etc. to the front-end applications, if these operations are going to consume more CPU cycles on the database server. Also try to do basic validations in the front-end itself during data entry. This saves unnecessary network round trips.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=279&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/04/17/best-practices-ms-sql-server-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Internet Explorer 9 &#8211; Developer Overview</title>
		<link>http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/</link>
		<comments>http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 12:34:43 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=256</guid>
		<description><![CDATA[Download IE 9 Download Wallpapers Download Slide Show &#8211; IE9 Dev Overview by Asim Here are the link that I used in today&#8217;s session &#8220;Internet Explorer 9 &#8211; Developer Overview&#8221;. Beauty of the Web &#8211; IE 9 Download it IE 9 Test Drive Test Border in dfferent Browsers Flying Images Network Monitoring API -Window.msPerformance What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=256&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/presspass/redirects/IE9Launch.aspx">Download IE 9</a></p>
<p><em>Download Wallpapers</em>
<a href='http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/04-internet-explorer-9-wallpaper/' title='04-Internet-Explorer-9-Wallpaper'><img data-attachment-id='265' data-orig-size='1920,1200' data-liked='0'width="150" height="93" src="http://asimafzal.files.wordpress.com/2011/03/04-internet-explorer-9-wallpaper.jpg?w=150&#038;h=93" class="attachment-thumbnail" alt="04-Internet-Explorer-9-Wallpaper" title="04-Internet-Explorer-9-Wallpaper" /></a>
<a href='http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/hardware-accelerated/' title='Hardware-accelerated'><img data-attachment-id='266' data-orig-size='1024,640' data-liked='0'width="150" height="93" src="http://asimafzal.files.wordpress.com/2011/03/hardware-accelerated.jpg?w=150&#038;h=93" class="attachment-thumbnail" alt="Hardware-accelerated" title="Hardware-accelerated" /></a>
<a href='http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/ie9_1024x768/' title='IE 9'><img data-attachment-id='267' data-orig-size='1024,768' data-liked='0'width="150" height="112" src="http://asimafzal.files.wordpress.com/2011/03/ie9_1024x768.png?w=150&#038;h=112" class="attachment-thumbnail" alt="IE 9" title="IE 9" /></a>
</p>
<p><a href='http://asimafzal.files.wordpress.com/2011/03/ie9-dev-overview-by-asim.ppsx'>Download Slide Show &#8211; IE9 Dev Overview by Asim</a></p>
<p>Here are the link that I used in today&#8217;s session &#8220;Internet Explorer 9 &#8211; Developer Overview&#8221;.</p>
<p><a href="http://www.beautyoftheweb.com/">Beauty of the Web &#8211; IE 9 Download it</a><br />
<a href="http://ie.microsoft.com/testdrive/Default.html">IE 9 Test Drive</a><br />
<a href="http://ie.microsoft.com/testdrive/htML5/BorderRadius/">Test Border in dfferent Browsers</a><br />
<a href="http://ie.microsoft.com/testdrive/performance/FlyingImages/">Flying Images</a><br />
<a href="http://ie.microsoft.com/testdrive/performance/NetworkMonitor/">Network Monitoring</a><br />
<a href="http://ie.microsoft.com/testdrive/performance/msPerformance/Default.html?loaded=2">API -Window.msPerformance</a></p>
<p>
What is your browser of choice?<br />
 Are you an ex-IE user considering a return? </p>
<p>Let us know using the comments below.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=256&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/03/18/internet-explorer-9-developer-overview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2011/03/04-internet-explorer-9-wallpaper.jpg?w=150" medium="image">
			<media:title type="html">04-Internet-Explorer-9-Wallpaper</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2011/03/hardware-accelerated.jpg?w=150" medium="image">
			<media:title type="html">Hardware-accelerated</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2011/03/ie9_1024x768.png?w=150" medium="image">
			<media:title type="html">IE 9</media:title>
		</media:content>
	</item>
		<item>
		<title>Internet Explorer 9</title>
		<link>http://asimafzal.wordpress.com/2011/03/17/internet-explorer-9/</link>
		<comments>http://asimafzal.wordpress.com/2011/03/17/internet-explorer-9/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 09:41:27 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ie 9]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[internet explorer 9]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=250</guid>
		<description><![CDATA[On 14th March 2011, the final version of Inter Explorer 9 has been launched. Thanks to Brine Hall General Manager Internet Explorer / Windows Live and his brilliant team.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=250&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On 14th March 2011, the final version of Inter Explorer 9 has been launched.</p>
<p>Thanks to Brine Hall General Manager Internet Explorer / Windows Live and his brilliant team.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=250&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2011/03/17/internet-explorer-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Drop Hash(#)/Temp Table If Exists</title>
		<link>http://asimafzal.wordpress.com/2010/10/13/drop-hashtemp-table-if-exists/</link>
		<comments>http://asimafzal.wordpress.com/2010/10/13/drop-hashtemp-table-if-exists/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 07:30:57 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[SQL Server Database]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=241</guid>
		<description><![CDATA[Drop Hash(#)/Temp Table If Exists Every time you execute your query you have to drop the Hash(#) table by check Drop if Exist or you get the message “There is already an object named &#8216;#temp_Table&#8217; in the database.”. There is another good way to solve this by checking the TempDB database which keeps the temp [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=241&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Drop Hash(#)/Temp Table If Exists</strong></p>
<p>Every time you execute your query you have to drop the Hash(#) table by check Drop if Exist or you get the message “There is already an object named &#8216;#temp_Table&#8217; in the database.”.</p>
<p>There is another good way to solve this by checking the TempDB database which keeps the temp tables and we can only check if exist drop it.</p>
<p><strong>Here is code:</strong></p>
<p>IF OBJECT_ID(&#8216;tempdb..#temp_Table&#8217;) IS NOT NULL</p>
<p>BEGIN</p>
<p>DROP TABLE #temp_Table</p>
<p>END</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=241&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2010/10/13/drop-hashtemp-table-if-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Passing Arrays in SQL Parameters using XML Data Type in SQL Server 2005</title>
		<link>http://asimafzal.wordpress.com/2010/10/04/passing-arrays-in-sql-parameters-using-xml-data-type-in-sql-server-2005/</link>
		<comments>http://asimafzal.wordpress.com/2010/10/04/passing-arrays-in-sql-parameters-using-xml-data-type-in-sql-server-2005/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 06:54:19 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[SQL Server Database]]></category>
		<category><![CDATA[Array in TSQL]]></category>
		<category><![CDATA[Array with XML]]></category>
		<category><![CDATA[pass array using XML in TSQL]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=240</guid>
		<description><![CDATA[Passing Arrays in SQL Parameters using XML Data Type in SQL Server 2005 A very good technique using XML as parameter to SQL stored procedures. Passing an array of objects to a stored procedure improves performance for batch operations. This can improve both the performance and scalability of an application. I have already implemented it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=240&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Passing Arrays in SQL Parameters using XML Data Type in SQL Server 2005</strong></p>
<p><strong>A very good technique using XML as parameter to SQL stored procedures. Passing an array of objects to a stored procedure improves performance for batch operations. This can improve both the performance and scalability of an application. </strong></p>
<p><strong>I have already implemented it by passing collection of objects as XML and then retrieving in SQL procedure, if someone needs help.</strong></p>
<p>Using XML data types in SQL Server 2005, we can pass an array of values from an application server to the database.</p>
<h2>Introduction</h2>
<p> Passing arrays of values as SQL parameters has always been troublesome in T-SQL. In SQL Server 2005, the XML data type can help simulate arrays.</p>
<h2>Using XML</h2>
<p> One of the big highlights of SQL Server 2005 is the introduction of the <code>XML</code> data type. XML is great for transporting all sorts of structural information. Using XML, we could implement the scenario from the previous section. We would simply convert an array (e.g. <code>{</code>42<code>, </code>73<code>, </code>2007<code>}</code>) into an XML document:</p>
<pre>&lt;list&gt;</pre>
<pre> &lt;item&gt;42&lt;/item&gt;</pre>
<pre> &lt;item&gt;73&lt;/item&gt;</pre>
<pre> &lt;item&gt;2007&lt;/item&gt;</pre>
<pre>&lt;/list&gt;</pre>
<p> This approach would have many advantages:</p>
<ul>
<li>Extracting the information from the XML document in T-SQL is straightforward using the x-query capability of T-SQL.</li>
<li>There are special characters in the serialization process (e.g. &lt;, &gt;), but the escaping mechanism of XML is well known and is taken care of by T-SQL.</li>
<li>The semantics of the stored procedure are somewhat clearer, since <code>XML</code> always represents a package of information.</li>
</ul>
<h2>Using the Code</h2>
<p> The mini-library proposed in this article consists of a <strong>static</strong> helper class in C# and a T-SQL function. The static class has one method:</p>
<pre>public static SqlXml GetXml(IEnumerable list)</pre>
<pre>{</pre>
<pre> //We don't use 'using' or dispose or close the stream, </pre>
<pre> //since it leaves in the return variable</pre>
<pre> MemoryStream stream = new MemoryStream();</pre>
<pre> using (XmlWriter writer = XmlWriter.Create(stream))</pre>
<pre> {</pre>
<pre> writer.WriteStartElement(&quot;list&quot;);</pre>
<pre> foreach (object obj in list)</pre>
<pre> {</pre>
<pre> writer.WriteElementString(&quot;item&quot;, obj.ToString());</pre>
<pre> }</pre>
<pre> writer.WriteEndElement();</pre>
<pre> stream.Position = 0;</pre>
<pre> return new SqlXml(stream);</pre>
<pre> }</pre>
<pre>}</pre>
<p> It takes a list of objects (any type of object; it simply relies on the <code>ToString</code> implementation) and returns an XML variable ready to be fed to an <code>SqlParameter</code>. On SQL Server, the function is an inline table function:</p>
<pre>CREATE FUNCTION [lm].[SplitList]</pre>
<pre>(</pre>
<pre> @list AS XML</pre>
<pre>)</pre>
<pre>RETURNS TABLE</pre>
<pre>AS</pre>
<pre>RETURN</pre>
<pre>(</pre>
<pre> SELECT tempTable.item.value('.', 'VARCHAR(MAX)') AS Item</pre>
<pre> FROM @list.nodes('list/item') tempTable(item)</pre>
<pre>);</pre>
<p> It takes an XML parameter and returns a table with one column where each row is the content of an XML node.</p>
<p>For detailed reference: <a href="http://www.codeproject.com/KB/reporting-services/PassingArraysSQLParameter.aspx">http://www.codeproject.com/KB/reporting-services/PassingArraysSQLParameter.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=240&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2010/10/04/passing-arrays-in-sql-parameters-using-xml-data-type-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing Optional Parameters in T-SQL Stored Procedures</title>
		<link>http://asimafzal.wordpress.com/2010/10/04/implementing-optional-parameters-in-t-sql-stored-procedures/</link>
		<comments>http://asimafzal.wordpress.com/2010/10/04/implementing-optional-parameters-in-t-sql-stored-procedures/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 06:22:33 +0000</pubDate>
		<dc:creator>asimafzal</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://asimafzal.wordpress.com/?p=234</guid>
		<description><![CDATA[Implementing Optional Parameters in T-SQL Stored Procedures A handy technique when dealing with optional parameters at Stored Procedure Level (T-SQL). Let: You have a stored procedure GetCustomers with two parameters: LastName, FirstName. The stored procedure returns all the records matching the values of the parameters. You want the parameters be optional, which means skipping the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=234&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Implementing Optional Parameters in T-SQL Stored Procedures</strong></p>
<p>A handy technique when dealing with optional parameters at Stored Procedure Level (T-SQL).</p>
<p>Let: You have a stored procedure GetCustomers with two parameters: LastName, FirstName. The stored procedure returns all the records matching the values of the parameters. You want the parameters be optional, which means skipping the parameter if you do not pass a value.</p>
<p>T-SQL does not provide optional parameters, but you can implement one.</p>
<p>1. You have original stored procedure</p>
<p><a href="http://asimafzal.files.wordpress.com/2010/10/image001.jpg"><img src="http://asimafzal.files.wordpress.com/2010/10/image001.jpg?w=460" alt="" title="image001"   class="alignnone size-full wp-image-235" /></a></p>
<p>2. Add =null at your parameter declaration of the stored procedure</p>
<p><a href="http://asimafzal.files.wordpress.com/2010/10/image002.jpg"><img src="http://asimafzal.files.wordpress.com/2010/10/image002.jpg?w=460" alt="" title="image002"   class="alignnone size-full wp-image-236" /></a></p>
<p>3. Add IS NULL at your WHERE clause</p>

<a href='http://asimafzal.wordpress.com/2010/10/04/implementing-optional-parameters-in-t-sql-stored-procedures/image004/' title='image004'><img data-attachment-id='237' data-orig-size='227,107' data-liked='0'width="150" height="70" src="http://asimafzal.files.wordpress.com/2010/10/image004.jpg?w=150&#038;h=70" class="attachment-thumbnail" alt="image004" title="image004" /></a>
<a href='http://asimafzal.wordpress.com/2010/10/04/implementing-optional-parameters-in-t-sql-stored-procedures/image007/' title='image007'><img data-attachment-id='239' data-orig-size='537,231' data-liked='0'width="150" height="64" src="http://asimafzal.files.wordpress.com/2010/10/image007.png?w=150&#038;h=64" class="attachment-thumbnail" alt="image007" title="image007" /></a>

<p>4. Now you have optional parameters in the stored procedure</p>
<p><a href="http://asimafzal.files.wordpress.com/2010/10/image005.jpg"><img src="http://asimafzal.files.wordpress.com/2010/10/image005.jpg?w=460" alt="" title="image005"   class="alignnone size-full wp-image-238" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asimafzal.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asimafzal.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asimafzal.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asimafzal.wordpress.com&amp;blog=531723&amp;post=234&amp;subd=asimafzal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asimafzal.wordpress.com/2010/10/04/implementing-optional-parameters-in-t-sql-stored-procedures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ff66bd81f3ffd8725e23b93ff71526f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asimafzal</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2010/10/image001.jpg" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2010/10/image002.jpg" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2010/10/image004.jpg?w=150" medium="image">
			<media:title type="html">image004</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2010/10/image007.png?w=150" medium="image">
			<media:title type="html">image007</media:title>
		</media:content>

		<media:content url="http://asimafzal.files.wordpress.com/2010/10/image005.jpg" medium="image">
			<media:title type="html">image005</media:title>
		</media:content>
	</item>
	</channel>
</rss>
