<?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:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3831224965063409658</id><updated>2024-11-01T12:30:47.894+06:00</updated><category term="C#.NET"/><category term="SQL Server"/><category term=".NET Framework"/><category term="BizTalk Server"/><category term="CSS Opacity"/><category term="Coding Standards"/><category term="Control Access"/><category term="Database"/><category term="Database Autobackup"/><category term="Google AdSense"/><category term="HTML"/><category term="Indentation"/><category term="Installer"/><category term="Meta Tags"/><category term="Naming Conventions"/><category term="Privacy Policy"/><category term="SEO"/><category term="Setup File"/><category term="String Class"/><category term="String Manipulation"/><category term="StringBuilder Class"/><category term="Truncate Table"/><category term="W3C Validation"/><category term="Windows Scheduler"/><category term="jQuery"/><title type='text'>Salahuddin Ahmed&#39;s Blog</title><subtitle type='html'>It&#39;s all about C#, ADO.NET, SQL Server, Crystal Report, ASP.NET, HTML, CSS, JavaScript, XML, AJAX, jQuery, Flash, and BizTalk</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-4198898895740814608</id><published>2012-01-11T18:10:00.001+06:00</published><updated>2012-01-11T18:18:58.015+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BizTalk Server"/><title type='text'>BizTalk Map Breaks When Schema Changes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Many times we see that links within BizTalk map break when there is some change in the schema used in the map. &lt;br /&gt;
&lt;br /&gt;
One of the reasons for maps to break the links is changing the target namespace of the source or destination schema. To avoid breaking of the links within map, we should set the Ignore Namespace for Links property of the map to “Yes”.&lt;br /&gt;
&lt;br /&gt;
If the root node name changes in a schema, all the links within map break. You need to rebuild the links again or open the .btm file in notepad and replace the old root node name with new root node name.&lt;br /&gt;
&lt;br /&gt;
Changing the version of the .net assembly housing custom functoids or helper functions used in the map breaks the links using those assemblies. In this case we should update the .btm file directly in notepad to update the version of the referenced assembly.&lt;br /&gt;
&lt;br /&gt;
If the schema element/attribute name changes the associated links break. Adding new elements/attributes/records doesn’t break the existing links. Those changes are automatically reflected in the map when map is reloaded.&lt;br /&gt;
&lt;br /&gt;
That&#39;s it.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/4198898895740814608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2012/01/biztalk-map-breaks-when-schema-changes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/4198898895740814608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/4198898895740814608'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2012/01/biztalk-map-breaks-when-schema-changes.html' title='BizTalk Map Breaks When Schema Changes'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-1507262798278108964</id><published>2011-02-03T01:29:00.014+06:00</published><updated>2011-02-03T01:46:58.708+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS Opacity"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="W3C Validation"/><title type='text'>Setting CSS Opacity with jQuery that Passes W3C Validation</title><content type='html'>Setting CSS opacity directly using jQuery is much more practical and easier to implement, because the code is exactly the same for all browsers and passes W3C validation as well. Let us see how jQuery sets CSS opacity on a div element.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&#39;code&#39;&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;       &lt;br /&gt;
 $(document).ready(&lt;br /&gt;
 function()&lt;br /&gt;
    {&lt;br /&gt;
     $(&quot;.boxcaption&quot;).css({ opacity: .5 })&lt;br /&gt;
    }&lt;br /&gt;
 );&lt;br /&gt;
 &amp;lt;/script&amp;gt;&lt;/div&gt;&lt;br /&gt;
Here &quot;.boxcaption&quot;  is a class name of a div element where the opacity .5 ( 50%) will take place.&lt;br /&gt;
&lt;br /&gt;
That’s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/1507262798278108964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2011/02/setting-css-opacity-with-jquery-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1507262798278108964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1507262798278108964'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2011/02/setting-css-opacity-with-jquery-that.html' title='Setting CSS Opacity with jQuery that Passes W3C Validation'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-4109852320373463532</id><published>2010-01-21T23:43:00.005+06:00</published><updated>2010-01-22T00:03:09.461+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="String Class"/><category scheme="http://www.blogger.com/atom/ns#" term="String Manipulation"/><category scheme="http://www.blogger.com/atom/ns#" term="StringBuilder Class"/><title type='text'>Use StringBuilder Class instead of String Class when you manipulate string object</title><content type='html'>Use System.Text.StringBuilder Class instead of System.String Class when you have to manipulate string objects in a loop. Each time you append a string object in a loop it is actually discarding the old string object and recreating a new one which is relatively expensive operations.&lt;br/&gt;&lt;br /&gt;Have a look at the following example where the string object ‘message’ is discarded each time.&lt;br/&gt;&lt;br /&gt;&lt;div class=&#39;code&#39;&gt;public string MyMessage(string[] lines)&lt;br /&gt;{&lt;br /&gt;string message = String.Empty;&lt;br /&gt;for(int i=0;i&amp;lt;lines.length;i++)&lt;br /&gt;{&lt;br /&gt;  message+=lines[i];&lt;br /&gt;}&lt;br /&gt;return message;&lt;br /&gt;}&lt;/div&gt;&lt;br /&gt;The System.String Class object is immutable. Every time you use System.String Class, you create a new string object in memory. In situations where you need to perform repeated modifications to a string object, the overhead associated with creating a new string object can be costly. The System.Text.StringBuilder Class can be used when you want to modify a string object without recreating a new one. Using the System.Text.StringBuilder Class can boost performance when concatenating many string objets together in a loop.&lt;br/&gt;&lt;br /&gt;Have a look at the following example where the System.String Class object is replaced with the System.Text.StringBuilder Class.&lt;br/&gt;&lt;br /&gt;&lt;div class=&#39;code&#39;&gt;public string MyMessage(string[] lines)&lt;br /&gt;{&lt;br /&gt;StringBuilder message =new StringBuilder();&lt;br /&gt;for(int i=0;i&amp;lt;lines.length;i++)&lt;br /&gt;{&lt;br /&gt;  Message.Append(ines[i]);&lt;br /&gt;}&lt;br /&gt;return message;&lt;br /&gt;}&lt;/div&gt;&lt;br /&gt;That’s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/4109852320373463532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/use-stringbuilder-class-instead-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/4109852320373463532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/4109852320373463532'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/use-stringbuilder-class-instead-of.html' title='Use StringBuilder Class instead of String Class when you manipulate string object'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-1910116136379140739</id><published>2010-01-09T00:03:00.004+06:00</published><updated>2010-01-18T00:10:20.804+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Installer"/><category scheme="http://www.blogger.com/atom/ns#" term="Setup File"/><title type='text'>How to create an installer in order to distribute a .NET windows application?</title><content type='html'>After you have developed a .NET windows application you need to follow the following steps to create an installer in order to distribute your application. The resulting windows installer file is a combination of the application, dependent files, registry files, and instructions for installation.&lt;br /&gt;&lt;br /&gt;1. Go to File menu then click Add to follow Add-&gt;New Project-&gt;“Add New Project” window opens&lt;br /&gt;2. Double click “Other Project Types” and then click “Setup and Deployment Projects” to choose “Setup Project” from the given templates. Give a name (e.g. Setup) for the project in the name text box and then finally click “OK” button. After that “File System” window might opens immediately.&lt;br /&gt;3. Now newly created “Setup” project appears in solution explorer accompanied with your application project created earlier.&lt;br /&gt;4. Select “Setup” project and then right click to follow Setup-&gt;View-&gt;File System-&gt;”File System” window opens.&lt;br /&gt;5. You can see here three folders such as Application Folder, User’s Desktop, and User’s Program Menu under “File System on Target Machine”.&lt;br /&gt;6. Select Application Folder and then right click to follow Add-&gt;Project Output-&gt;Select Primary Output(Contains the DLL or EXE built by the project.) from “Add Project Output Group” window-&gt;Click “OK” button&lt;br /&gt;7. Select User’s Desktop Folder and then right click on the right panel to follow Create New Shortcut-&gt;”Select Item in Project” window opens-&gt;Select Primary Output file from Application Folder&gt;Click “OK” button-&gt;Chang the shortcut to name it “Setup”&lt;br /&gt;8. Select User’s Program Menu Folder and then right click on the right panel to follow Create New Shortcut-&gt;”Select Item in Project” window opens-&gt;Select Primary Output file from Application Folder&gt; Click “OK” button-&gt;Change the shortcut to name it “Setup”&lt;br /&gt;9. Now if you want to change the manufacture’s name or anything else just select “Setup” project to change “Setup” project’s Deployment Project Properties as per your requirement.&lt;br /&gt;10. Finally build your application project after successfully build the “Setup” project. When completed, Setup.msi file can be appeared in the application Debug or Release folder depending upon the properties settings (Select and then right click “Setup” project to follow Properties -&gt;Setup Property Pages)&lt;br /&gt;11. Prerequisites: Windows installer 3.1 and most importantly .NET Framework 3.5 must be installed on the target machine where your application project will be installed with the help of Setp.msi installer. .NET Framework 3.5 installation is mandatory because application and controls written for the .NET Framework version 3.5 require the .NET Framework redistributable package version 3.5 to be installed on the computer where the application or controls runs.&lt;br /&gt;&lt;br /&gt;That&#39;s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/1910116136379140739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/how-to-create-installer-in-order-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1910116136379140739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1910116136379140739'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/how-to-create-installer-in-order-to.html' title='How to create an installer in order to distribute a .NET windows application?'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-849886188900507352</id><published>2010-01-01T23:14:00.006+06:00</published><updated>2010-01-02T00:52:44.826+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Meta Tags"/><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>Meta Tags: Important factors for your website and SEO</title><content type='html'>HTML meta tags hold important information about your website and also put impact on SEO resulting efficient page rank. There are many kinds of meta tags but I would rather describe some important meta tags which really rock. These are given as bellow:&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;Title Meta Tag&lt;/strong&gt;&lt;br /&gt;Title meta tag refers to the name of your website. It appears in the reverse bar of the browser. Title of your web site can be seen in the search results. Title meta tag format is as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;meta content=&amp;quot;&amp;lt;title&amp;gt;Your web site name&amp;lt;/title&amp;gt;&amp;quot; name=&amp;quot;title&amp;quot;/&amp;gt;&lt;/div&gt;&lt;br /&gt;&lt;strong&gt;Description Meta Tag&lt;/strong&gt;&lt;br /&gt;Description meta tag refers to the actual target of your website. Your websitesite description can be seen in the search results as well. Description meta tag format is as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;meta content=&amp;quot;Your web site description.&amp;quot; name=&amp;quot;description&amp;quot;/&gt;&lt;/div&gt;&lt;br /&gt;&lt;strong&gt;Keywords Meta Tag&lt;/strong&gt;&lt;br /&gt;Keywords meta tag is less important in case of popular Google search engine. However, keywords as a meta tag is followed by SEO process to index your web pages. Keywords meta tag refers to the descriptive terms of  your website contents. Keywords meta tag format is as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;meta content=&amp;quot;internet, website, blog&amp;quot; name=&amp;quot;keywords&amp;quot;/&amp;gt;&lt;/div&gt;&lt;br /&gt;&lt;strong&gt;Robots Meta Tag&lt;/strong&gt;&lt;br /&gt;Robots meta tag allows search engine robot (e.g. Google Bot) to crawl web pages starting from index page of your website and continuing with the rest of the web pages. Robots meta tag format is as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;meta content=&amp;quot;all, index, follow&amp;quot; name=&amp;quot;robots&amp;quot;/&amp;gt;&lt;/div&gt;&lt;br /&gt;However, in case of a particular page should not be indexed by a search engine then the robots meta tag format will be as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;meta content=&amp;quot;none, noindex, nofollow&amp;quot; name=&amp;quot;robots&amp;quot;/&amp;gt;&lt;/div&gt; &lt;br /&gt;Meta tags must be placed in between HTML HEAD tag e.g.&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;head&amp;gt;Meta tags go here&amp;lt;/head&amp;gt;&lt;/div&gt; &lt;br /&gt;A sample implementation of meta tags is as follows:&lt;br/&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;head&amp;gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;meta content=&amp;quot;&amp;lt;title&amp;gt;Salahuddin Ahmed&#39;s Blog&amp;lt;/title&amp;gt;&amp;quot; name=&amp;quot;title&amp;quot;/&amp;gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;meta content=&amp;quot;It is all about C#.NET, ASP.NET, ADO.NET, SQL Server, Crystal Report, HTML, JavaScript, XML, AJAX, CSS, and Flash.&amp;quot;name=&amp;quot;description&amp;quot;/&gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;meta content=&amp;quot;C#.NET, ASP.NET, ADO.NET, SQL Server, Crystal Report, HTML, JavaScript, XML, AJAX, CSS, Flash&amp;quot; name=&amp;quot;keywords&amp;quot;/&amp;gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;meta content=&amp;quot;all, index, follow&amp;quot; name=&amp;quot;robots&amp;quot;/&amp;gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;br /&gt;That’s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/849886188900507352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/meta-tags-important-factors-for-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/849886188900507352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/849886188900507352'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2010/01/meta-tags-important-factors-for-your.html' title='Meta Tags: Important factors for your website and SEO'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-5828975417747406692</id><published>2009-12-23T17:00:00.012+07:00</published><updated>2009-12-25T17:40:11.028+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Truncate Table"/><title type='text'>How to truncate database tables in SQL Server?</title><content type='html'>Suppose you have created a database containing three tables with no foreign key constraints. Now simply execute the following commands:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;TRUNCATE TABLE [dbo].[table1]&lt;br /&gt;TRUNCATE TABLE [dbo].[table2]&lt;br /&gt;TRUNCATE TABLE [dbo].[table3]&lt;/div&gt;&lt;br /&gt;that&#39;s it.&lt;br /&gt;&lt;br /&gt;But what if some of your tables have foreign key constraints? Don&#39;t worry there is a solution as follows.Suppose table1 and table2 have foreign key constraints with reference to table1. Now follow the following steps:&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;ALTER TABLES&lt;/strong&gt;-[Drop Foreign Key Constraints]&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;ALTER TABLE [dbo].[table2] DROP CONSTRAINT FKtable2&lt;br /&gt;ALTER TABLE [dbo].[table3] DROP CONSTRAINT FKtable3&lt;/div&gt;&lt;br /&gt;2. &lt;strong&gt;TRUNCATE TABLES&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;TRUNCATE TABLE [dbo].[table1]&lt;br /&gt;TRUNCATE TABLE [dbo].[table2]&lt;br /&gt;TRUNCATE TABLE [dbo].[table3]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;strong&gt;ALTER TABLES&lt;/strong&gt;-[Add Foreign Key Constraints]&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;ALTER TABLE [dbo].[table2] ADD CONSTRAINT FKtable2 FOREIGN KEY (Id) REFERENCES [dbo].[table1] (Id)&lt;br /&gt;&lt;br /&gt;ALTER TABLE [dbo].[table3] ADD CONSTRAINT FKtable3 FOREIGN KEY (Id) REFERENCES [dbo].[table1] (Id)&lt;/div&gt;&lt;br /&gt;that&#39;s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/5828975417747406692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/how-to-truncate-database-tables-in-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/5828975417747406692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/5828975417747406692'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/how-to-truncate-database-tables-in-sql.html' title='How to truncate database tables in SQL Server?'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-7827677261592074717</id><published>2009-12-22T14:10:00.003+07:00</published><updated>2009-12-22T14:16:17.322+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Coding Standards"/><category scheme="http://www.blogger.com/atom/ns#" term="Indentation"/><category scheme="http://www.blogger.com/atom/ns#" term="Naming Conventions"/><title type='text'>C#.NET Coding Standards</title><content type='html'>&lt;strong&gt;Naming Conventions and Standards:&lt;/strong&gt;&lt;br /&gt;1.       Use Pascal casing for Class names.&lt;br /&gt;Pascal Casing - First character of all words are Upper Case and other characters are lower case. Example: SalahuddinAhmedBlog&lt;br /&gt;2.       Use Pascal casing for Method names.&lt;br /&gt;3.       Use Camel casing for variables and method parameters.&lt;br /&gt;Camel Casing - First character of all words, except the first word are Upper Case and other characters are lower case. Example: salahuddinAhmedBlog&lt;br /&gt;4.       Use the prefix “I” with Camel Casing for interfaces.&lt;br /&gt;5.       Use Meaningful, descriptive words to name variables. Do not use abbreviations.&lt;br /&gt;6.       Do not use single character variable names like i, n, s etc. Use names like index, temp.&lt;br /&gt;One exception in this case would be variables used for iterations in loops.&lt;br /&gt;7.       Do not use underscores (_) for local variable names.&lt;br /&gt;8.       All member variables must be prefixed with underscore (_) so that they can be identified from other local variables.&lt;br /&gt;9.       Do not use variable names that resemble keywords.&lt;br /&gt;10.    Prefix boolean variables, properties and methods with “is” or similar prefixes.&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;_Toc138138223&quot;&gt;&lt;strong&gt;Indentation and Spacing&lt;/strong&gt;&lt;/a&gt;:&lt;br /&gt;1.       Use TAB for indentation. Do not use SPACES.  Define the Tab size as 4.&lt;br /&gt;2.       Comments should be in the same level as the code (use the same level of indentation).&lt;br /&gt;3.       Curly braces should be in the same level as the code outside the braces.        &lt;br /&gt;4.       Use one blank line to separate logical groups of code.&lt;br /&gt;5.       There should be one and only one single blank line between each method inside the class.&lt;br /&gt;6.        The curly braces should be on a separate line and not in the same line as if, for etc.&lt;br /&gt;7.       Use a single space before and after each operator and brackets.&lt;br /&gt;8.       Use #region to group related pieces of code together.&lt;br /&gt;9.       Keep private member variables, properties and methods in the top of the file and public members in the bottom.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/7827677261592074717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/cnet-coding-standards.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/7827677261592074717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/7827677261592074717'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/cnet-coding-standards.html' title='C#.NET Coding Standards'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-1300631091007034273</id><published>2009-12-09T13:01:00.006+07:00</published><updated>2009-12-25T23:36:01.374+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Control Access"/><title type='text'>Accessing control from another form in C#.NET</title><content type='html'>Say you have two forms(Form_One and Form_Two) in your project. Suppose Form_One contains SplitContainer control. Now you want to use the SplitContainer control object into the Form_Two. How? The solution is as follows.&lt;br /&gt;&lt;br /&gt;At first you have to declare the SplitContainer control object as public instead private in the Form_One.Designer.cs as bellow.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;public System.Windows.Forms.SplitContainer splitContainer1;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then you have to create Form_Two object and call Form_Two from Form_One class using the following code.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;Form_Two frmTwo = new Form_Two(this);&lt;br /&gt;frmTwo.Show();&lt;/div&gt;&lt;br /&gt;Then you can get the SplitContainer control object in the Form_Two using the following code.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;public partial class Form_Two : Form&lt;br /&gt;{&lt;br /&gt;public Form_Two()&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;}&lt;br /&gt;private void BtnSplitCtr _Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;splitContainer1.Panel2.Controls.Clear();&lt;br /&gt;}&lt;br /&gt;}&lt;/div&gt;&lt;br /&gt;However, the above code is not enough. You have to modify the Form_Two class as bellow. Otherwise NullReferenceException(Object reference not set to an instance of an object) can be occurred. The modified code is given bellow.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;public partial class Form_Two : Form&lt;br /&gt;{&lt;br /&gt;private Form_One frmOne;&lt;br /&gt;public Form_Two(Form_One frm)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;frmOne = frm;&lt;br /&gt;}&lt;br /&gt;private void BtnSplitCtr _Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;frmOne.splitContainer1.Panel2.Controls.Clear();&lt;br /&gt;}&lt;br /&gt;}&lt;/div&gt;&lt;br /&gt;That&#39;s it.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/1300631091007034273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/accessing-control-from-another-form-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1300631091007034273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1300631091007034273'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/accessing-control-from-another-form-in.html' title='Accessing control from another form in C#.NET'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-5793729383749717364</id><published>2009-12-07T16:09:00.004+07:00</published><updated>2009-12-24T20:57:16.126+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database Autobackup"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Scheduler"/><title type='text'>SQL Server database auto-backup done simply using windows scheduler</title><content type='html'>To accomplish database backup automatically just go through the following steps. However at first store the following script with sql extension e.g autobackup.sql in a disk drive.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;DECLARE @MyBackupName nvarchar(250)&lt;br /&gt;SET @MyBackupName = &#39;C:\Backup\YourDB&#39; + convert( varchar(10), getdate(), 112 ) + &#39;.BAK&#39;&lt;br /&gt;BACKUP DATABASE [YourDB] TO DISK = @MyBackupName&lt;br /&gt;WITH&lt;br /&gt;NOFORMAT,&lt;br /&gt;NOINIT,&lt;br /&gt;NAME = N&#39;[YourDB]-Full Database Backup&#39;,&lt;br /&gt;SKIP,&lt;br /&gt;STATS = 10&lt;/div&gt;&lt;br /&gt;Step 1. Go to control panel menu as Start-&gt;Settings-&gt;Control Panel.&lt;br /&gt;Step 2. Now open the ‘Scheduled Tasks’ for scheduling purpose.&lt;br /&gt;Step 3. Double click ‘Add Schedule Task’ and then click ‘Next’.&lt;br /&gt;Step 4. Now browse for ‘SQLCMD.EXE’ file. (It can be found where SQL Server has been installed.)&lt;br /&gt;Step 5. When it is ok type a name for this task.&lt;br /&gt;Step 6. Then select the time and day you want this task to start.&lt;br /&gt;Step 7. When it is ok click ‘Next’ then you must enter admin password.&lt;br /&gt;Step 8. Just click ‘Finish’.&lt;br /&gt;Step 9.&lt;br /&gt;SQL SERVER 2005 EXPRESS EDITION:&lt;br /&gt;When finished properly you will see &quot;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE&quot; in the Run Text Box which is not sufficient at all. So replace &quot;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE&quot; with &quot;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE&quot; -SSALAHUDDIN\SQLEXPRESS -i&quot;E:\autobackup.sql&quot; in the Run Text Box.&lt;br /&gt;&lt;br /&gt;SQL SERVER 2000 PERSONAL EDITION:&lt;br /&gt;&quot;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\osql.exe&quot; -SSALAHUDDIN -Usa -P123 -i&quot;F:\autobackup.sql&quot;&lt;br /&gt;&lt;br /&gt;SALAHUDDIN is my server name. Your server name should simply replaces SALAHUDDIN.&lt;br /&gt;&lt;br /&gt;Standard path format:[SQL Server 2005 Express and 2000 Personal Edition]&lt;br /&gt;“SQLCMD.Exe path” –S[Server Name] –i[”autobackup.sql file path”]&lt;br /&gt;“OSQL.Exe path” –S[Server Name] –Usa –P123 –i[”autobackup.sql file path”]&lt;br /&gt;&lt;br /&gt;The path depends on as you have installed and stored SQL Server and autobackup.sql respectively.</content><link rel='replies' type='application/atom+xml' href='http://salahuddinahmed.blogspot.com/feeds/5793729383749717364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/database-autobackup-done-simply-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/5793729383749717364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/5793729383749717364'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/database-autobackup-done-simply-using.html' title='SQL Server database auto-backup done simply using windows scheduler'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3831224965063409658.post-1040332798057642133</id><published>2009-03-26T00:01:00.003+06:00</published><updated>2010-01-13T00:51:50.999+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google AdSense"/><category scheme="http://www.blogger.com/atom/ns#" term="Privacy Policy"/><title type='text'>Privacy Policy</title><content type='html'>&lt;strong&gt;Privacy Policy for salahuddinahmed.blogspot.com &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at &lt;a href=&quot;mailto:sumu2007@gmail.com&quot;&gt;sumu2007@gmail.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;At salahuddinahmed.blogspot.com, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by salahuddinahmed.blogspot.com and how it is used.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Log Files&lt;/strong&gt;&lt;br /&gt;Like many other Web sites, salahuddinahmed.blogspot.com makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cookies and Web Beacons&lt;/strong&gt;&lt;br /&gt;salahuddinahmed.blogspot.com does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DoubleClick DART Cookie&lt;/strong&gt;&lt;br /&gt;.:: Google, as a third party vendor, uses cookies to serve ads on salahuddinahmed.blogspot.com.&lt;br /&gt;.:: Google&#39;s use of the DART cookie enables it to serve ads to users based on their visit to salahuddinahmed.blogspot.com and other sites on the Internet.&lt;br /&gt;.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - &lt;a href=&quot;http://www.google.com/privacy_ads.html&quot;&gt;http://www.google.com/privacy_ads.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....Google Adsense&lt;br /&gt;&lt;br /&gt;These third-party ad servers or ad networks use technology to the advertisements and links that appear on salahuddinahmed.blogspot.com send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.&lt;br /&gt;&lt;br /&gt;salahuddinahmed.blogspot.com has no access to or control over these cookies that are used by third-party advertisers.&lt;br /&gt;&lt;br /&gt;You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. salahuddinahmed.blogspot.com&#39;s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.&lt;br /&gt;&lt;br /&gt;If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers&#39; respective websites.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1040332798057642133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3831224965063409658/posts/default/1040332798057642133'/><link rel='alternate' type='text/html' href='http://salahuddinahmed.blogspot.com/2009/12/privacy-policy-for-salahuddinahmed.html' title='Privacy Policy'/><author><name>Salahuddin Ahmed</name><uri>http://www.blogger.com/profile/00089279877810237563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmhgP1YeFxfJ3EjtNxblxGD8sxVoLiA-ZYnvp29XL5JYmpoQW8xCkilm2vxaFY2371sWnTE4b2wV0hZghlpCdMXLw8W9s7M5eimXt6ls0At12upd94xkYU8GkkGlfj3Kg/s220/6.JPG'/></author></entry></feed>