<?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/"
	>

<channel>
	<title>Dotnet Aid</title>
	<atom:link href="http://dotnetaid.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetaid.com</link>
	<description>Simplifying ASP.NET Programming</description>
	<lastBuildDate>Tue, 14 May 2013 08:38:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to Print a Document without using Crystal Report</title>
		<link>http://dotnetaid.com/how-to-print-a-document-without-using-crystal-report/</link>
		<comments>http://dotnetaid.com/how-to-print-a-document-without-using-crystal-report/#comments</comments>
		<pubDate>Tue, 14 May 2013 08:01:51 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Desktop App]]></category>
		<category><![CDATA[Crystal Report]]></category>
		<category><![CDATA[Desktop Application]]></category>
		<category><![CDATA[print document]]></category>
		<category><![CDATA[win form]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2101</guid>
		<description><![CDATA[Desktop Application provide various features that keep it more strong then other applications. When we talking about printing any document then the first question arrives in our mind is how can we print in .net application. The first solution comes in our mind &#8216;Using Crystal Report&#8217;. As we discussed in past that how to use [...]]]></description>
				<content:encoded><![CDATA[<p>Desktop Application provide various features that keep it more strong then other applications. When we talking about printing any document then the first question arrives in our mind is how can we print in .net application. The first solution comes in our mind &#8216;Using Crystal Report&#8217;. As we discussed in past that how to use crystal report today we will go for another method. When we are talking about printing and need to database access inside the form then I will prefer this method.</p>
<p><span id="more-2101"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
I have used PrintDocument control to use this method. What I am doing exactly is I am just creating a graphic of the winform to print it. As we will proceed with this project we will look at step by step.In this post I have attached the demo so that you can download it also you can see what is the coding to implement this.</p>
<p>Download Here</p>
<p><a href="http://dotnetaid.com/wp-content/uploads/ppf.bmp"><img class="aligncenter size-full wp-image-2102" alt="ppf" src="http://dotnetaid.com/wp-content/uploads/ppf.bmp" /></a></p>
<pre>Step 1: Namespaces used

using System.Runtime.InteropServices;
using System.Drawing.Imaging;
using System.Drawing.Printing;

Step 2: Win Form Page codding:

public partial class Form1 : Form
{
    PrintDocument PrintDoc1 = new PrintDocument();
    PrintPreviewDialog PPDlg1 = new PrintPreviewDialog();
    PrintPreviewDialog PrintPreviewDialog1 = new PrintPreviewDialog();
    public Form1()
    {
       InitializeComponent();
       PPDlg1.Document = PrintDoc1;
       PrintDoc1.OriginAtMargins = false;
       PrintDoc1.PrintPage += printDocument1_PrintPage;
    }
    private void btnPrint_Click_1(object sender, EventArgs e)
    {
     try
     {
           PrintDoc1.Print();
     }
     catch
     {
           MessageBox.Show("Please try again...", "Saving slip");
     }
   }
<span style="font-size: 11pt; letter-spacing: 0em; line-height: 1.6em;">   private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)</span>
<em id="__mceDel">   {
   </em>try
   {
      Graphics grp = panel1.CreateGraphics();
      Size s = panel1.Size;
      Bitmap bmp = new Bitmap(762, 427, grp);
 <span style="font-size: 11pt; letter-spacing: 0em; line-height: 1.6em;">    panel1.DrawToBitmap(bmp, new Rectangle(0, 0, 762, 427));</span>
     e.Graphics.DrawImage(bmp, 0, 0);
   }
   catch
   {
     MessageBox.Show("Please try again...", "Saving slip");
   }
 }
 }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-print-a-document-without-using-crystal-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manage the Desktop Swiftly with DataGrid Applications</title>
		<link>http://dotnetaid.com/manage-the-desktop-swiftly-with-datagrid-applications/</link>
		<comments>http://dotnetaid.com/manage-the-desktop-swiftly-with-datagrid-applications/#comments</comments>
		<pubDate>Thu, 09 May 2013 14:06:09 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[Desktop App]]></category>
		<category><![CDATA[DataGrid Applications]]></category>
		<category><![CDATA[Desktop management]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2097</guid>
		<description><![CDATA[Good news for all software developers in the country. Now you can easily manage the applications from the desktop and work on different projects. The application will not only help you to manage your work better, but will also assist in completing the task soon. Now, you can save time by editing all essential facts [...]]]></description>
				<content:encoded><![CDATA[<p>Good news for all software developers in the country. Now you can easily manage the applications from the desktop and work on different projects. The application will not only help you to manage your work better, but will also assist in completing the task soon. Now, you can save time by editing all essential facts and figures from the desktop of the system. To get introduced to this unique system, just come to the http://www.dotnetaid.com. Download the software, install and edit all your essential tasks from the desktop application.</p>
<p><span id="more-2097"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>Control your desktop with the DataGridView applications. Monitor all applications and operate evenly. The records will be clearly displayed in tabular format. The format will clearly demonstrate all facts and figures. It will be easier for anyone to understand the status of the work. You can also change the look and edit figures. The application offers complete control and you can even customize easily. Visit the http://www.dotnetaid.com and know more about this application</p>
<p>Things you can do with this application<br />
• Manage all data efficiently from the desktop. Helps you control all application and developing features.</p>
<p>• You can edit, shift or delete any column if required.</p>
<p>• You may even hide a column filled with important data.</p>
<p>• Organizes your work.</p>
<p>• Now you can just glance at the format and know the status of the work.</p>
<p>• Managing and working with tables is easier with this software.</p>
<p>• You may even modify the headline of the text if and when needed.</p>
<p>The application gives you complete control of the desktop applications and simplify your daily task.</p>
<p>Essential Features of the desktop application<br />
• A drop down list helps in selecting a web application quickly. After completing the task, entering the details in the combo box is simple. You have to add the information manually and then connect it to the main database. You can also take use the codes to fill up the box from different pages.</p>
<p>• Will assist all software developers in the development task and simplify the page managing system.</p>
<p>• Helps in controlling the method of coding adequately.</p>
<p>• Opens new avenue to your business by helping you manage things efficiently.</p>
<p>The application also makes the software development work manageable from the desktop. You can now work comfortably on<br />
• Ajax<br />
• JQuery<br />
• SQL<br />
• JavaScript<br />
• Web App<br />
• C#</p>
<p>You can visit the page and easily download the application. Install it on the system to use it properly. Go through the tutorial before using the applications. Reading the tutorial will make navigation simpler. You can comfortably manage the software once you learn the basic keys of an application. Spend some time to learn and implement the new software. Thus, you can prepare any and every type of website and manage coding efficiently from the system.</p>
<p>Once you start using this software you will know about its activities and different feature in detail. It makes life easier and gives you immense time to relax. Thus, software developers may quickly get this desktop application and reap benefit from the system.</p>
<p>Author Bio: Osho Garg is a writer for <a href="http://www.webnethosting.net/" target="_blank">WebNet Hosting</a>, a web hosting company that offers reliable, budget-friendly and easy-to-use <a href="http://www.webnethosting.net/dedicated-servers/" target="_blank">Managed Dedicated Servers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/manage-the-desktop-swiftly-with-datagrid-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Customize DataGridView Control in .Net Desktop Application</title>
		<link>http://dotnetaid.com/how-to-customize-datagridview-control-in-net-desktop-application/</link>
		<comments>http://dotnetaid.com/how-to-customize-datagridview-control-in-net-desktop-application/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 07:13:34 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[Desktop App]]></category>
		<category><![CDATA[Control in .net]]></category>
		<category><![CDATA[customize controls in .net]]></category>
		<category><![CDATA[Customize datagridview]]></category>
		<category><![CDATA[DataGridView]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2087</guid>
		<description><![CDATA[DataGridView control is used in desktop application to show the record values in tabular format, As we used GridView in web application. But the difference is the GridView is easy to customize. We can easily use the paging in gridview. But when we use DataGridView we need to do so manually. There are some functionality [...]]]></description>
				<content:encoded><![CDATA[<p>DataGridView control is used in desktop application to show the record values in tabular format, As we used GridView in web application. But the difference is the GridView is easy to customize. We can easily use the paging in gridview. But when we use DataGridView we need to do so manually. There are some functionality that we can apply on datagridview control. We can hide any particular column after fetching the data from the table, we can change the width of the column as well as we can change the header text that we want to put manually.</p>
<p><span id="more-2087"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
Here I am going to give you the code that how we can do this changes manually according to our requirement with datagridview control.<br />
To understand the problem we have assigned the Id for Datagridview control = &#8220;DGStudent&#8221;.</p>
<pre><strong>1. Hide the Column of DataGridView
</strong>
 DGStudent.Column[0].Visible = "<span style="color: #3366ff;">false</span>";

<strong>2. Change the width of columns in DataGridView
</strong>
 DGStudent.Column[1].Width = "200";
 DGStudent.Column[2].Width = "150";

<strong>3. Change the Header Text of Column
</strong>
 DGStudent.Column[1].HeaderText="Student Name";
 DGStudent.Column[2].HeaderText="Father name";</pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-customize-datagridview-control-in-net-desktop-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Class file for AutoFill Combobox From Database</title>
		<link>http://dotnetaid.com/creating-class-file-for-autofill-combobox-from-database/</link>
		<comments>http://dotnetaid.com/creating-class-file-for-autofill-combobox-from-database/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 08:10:23 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[Desktop App]]></category>
		<category><![CDATA[AutoFill]]></category>
		<category><![CDATA[Combobox]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[Multiple]]></category>
		<category><![CDATA[WinForm]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2081</guid>
		<description><![CDATA[A Combobox control in window application is used to show the field values in list as we use DropDown List control in Web Application. And when we fill this combo box control there are two methods. First we fill the field values by adding items manually and in the second method we fill the combo [...]]]></description>
				<content:encoded><![CDATA[<p>A Combobox control in window application is used to show the field values in list as we use DropDown List control in Web Application. And when we fill this combo box control there are two methods. First we fill the field values by adding items manually and in the second method we fill the combo box using Databse table. We need to create a connection with database and then we fill the combo box using data reader or data adapter. But what should the better solution if we have to fill the combobox in multiple pages or form.</p>
<p><span id="more-2081"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
We have a better solution now. We can add a class file and in this file we can write code to fill the combo box so that if we need to fill combo box on different different forms then we need not to write all code every time. Here I am writing the code of both the class file and code page of winForm.</p>
<p><strong>1. Class File named FillCombo Code:</strong></p>
<p>In this class file we will add all the code of database and the code to fill the combo box. we will do this by creating a method in the class. So whenever we need to use this class we need to first create an object of the same class.</p>
<pre><span style="color: #3366ff;">public void</span> fillcombox(<span style="color: #3366ff;">ref</span> <span style="color: #33cccc;">ComboBox</span> cmb, <span style="color: #3366ff;">string</span> str)
        {
            <span style="color: #3366ff;">try</span>
            {
              strConnectionString ="<span style="color: #993300;">Data Source=.\\SQLEXPRESS;Initial Catalog=PO;Integrated Security=True</span>";
              <span style="color: #33cccc;">SqlConnection</span> cnn=<span style="color: #3366ff;">new</span> <span style="color: #33cccc;">SqlConnection</span>();
              <span style="color: #33cccc;">SqlCommand</span> cmd=new <span style="color: #33cccc;">SqlCommand</span>();
              cnn.ConnectionString=strConnectionString;
              cmd.Connection=cnn;
              cmd.CommandType = <span style="color: #33cccc;">CommandType</span>.StoredProcedure;
              cmd.CommandName = str;
              IDataReader da = cmd.ExecuteReader();
              cmb.Items.Clear();
              cmb.Items.Add("<span style="color: #993300;">--Select--</span>");
              <span style="color: #3366ff;">while</span> (da.Read())
              {
                    cmb.Items.Add(da[1].ToString());
              }
            }
            <span style="color: #3366ff;">catch</span> (Exception ex)
            {
               <span style="color: #3366ff;">throw</span> ex;
            }
        }</pre>
<p><strong>WinForm Coding part::</strong></p>
<p>Now its turn to implement the code that we have written in class file. here is the coding that will show you how to execute this:</p>
<pre>                <span style="color: #33cccc;">FillCombo</span> fcmb = new <span style="color: #33cccc;">FillCombo</span>();
                fcmb.fillcombox(<span style="color: #3366ff;">ref</span> cmbAuthorName, <span style="color: #993300;">"AUTHOR_DETAILS_SELECTALL"</span>);
                cmbAuthorName.SelectedIndex = 0;</pre>
<p style="text-align: left;">In the above code cmbAuthorname is the name of combobox control and &#8220;AUTHOR_DETAILS_SELECTALL&#8221;  is the name of stored procedure that we have created in SQL Server</p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/creating-class-file-for-autofill-combobox-from-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transact-SQL : Aggregate Functions</title>
		<link>http://dotnetaid.com/transact-sql-aggregate-functions/</link>
		<comments>http://dotnetaid.com/transact-sql-aggregate-functions/#comments</comments>
		<pubDate>Thu, 18 Apr 2013 07:42:36 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Aggregate]]></category>
		<category><![CDATA[Aggregate Function]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2028</guid>
		<description><![CDATA[Aggregate function is T-SQL are sued to perform some calculations on multiple records or values in SQL table. Generally we use these function with Group By clause in Select statements. The aggregate functions are performed on a set of value and returns a single value. Also most of these function returns numeric values. In this [...]]]></description>
				<content:encoded><![CDATA[<p>Aggregate function is T-SQL are sued to perform some calculations on multiple records or values in SQL table. Generally we use these function with Group By clause in Select statements. The aggregate functions are performed on a set of value and returns a single value. Also most of these function returns numeric values. In this article you can see that what are the aggregate functions that we can used in SQL.</p>
<p><span id="more-2028"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
Here are the list of Aggregate functions that can be used in T-SQL.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="308"><strong>Function</strong></td>
<td valign="top" width="308"><strong>Description</strong></td>
</tr>
<tr>
<td valign="top" width="308">AVG</td>
<td valign="top" width="308">Returns the average of the group values</td>
</tr>
<tr>
<td valign="top" width="308">SUM</td>
<td valign="top" width="308">Returns the sum of the group valies</td>
</tr>
<tr>
<td valign="top" width="308">MIN</td>
<td valign="top" width="308">Returns the minimum value from the expression</td>
</tr>
<tr>
<td valign="top" width="308">MAX</td>
<td valign="top" width="308">Returns the maximum value from the expression</td>
</tr>
<tr>
<td valign="top" width="308">COUNT</td>
<td valign="top" width="308">Returns the number of iteams in group</td>
</tr>
<tr>
<td valign="top" width="308">VAR</td>
<td valign="top" width="308">Returns the statistical variance of all the values in the specified expression</td>
</tr>
<tr>
<td valign="top" width="308">VARP</td>
<td valign="top" width="308">Returns the statistical variance for the population for all values in specified expression</td>
</tr>
<tr>
<td valign="top" width="308">STDEV</td>
<td valign="top" width="308">Returns the statistical standard deviation of all values in the specified expression</td>
</tr>
<tr>
<td valign="top" width="308">STDEVP</td>
<td valign="top" width="308">Returns the statistical standard deviation for the population for all values in the specified expression</td>
</tr>
<tr>
<td valign="top" width="308">COUNT_BIG</td>
<td valign="top" width="308">Returns the number of items of bigint type.</td>
</tr>
<tr>
<td valign="top" width="308">GROUPING</td>
<td valign="top" width="308">Indicates that whether a specified column expression in a GROUP BY list is aggregate or not</td>
</tr>
<tr>
<td valign="top" width="308">GROUPING_ID</td>
<td valign="top" width="308">Computes the level of grouping</td>
</tr>
<tr>
<td valign="top" width="308">CHECKSUM_AGG</td>
<td valign="top" width="308">Returns the checksum of the values in group</td>
</tr>
</tbody>
</table>
<p><strong>Suggested Entry:</strong></p>
<pre><a href="http://dotnetaid.com/cast-function-in-sql-server/">Cast() Function in SQL

</a><a href="http://dotnetaid.com/convert-function-in-sql-server/">Convert() Function in SQL</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/transact-sql-aggregate-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transact-SQL &#8211; Using Try-Catch in Stored Procedure and Error Functions</title>
		<link>http://dotnetaid.com/transact-sql-using-try-catch-in-stored-procedure-and-error-functions/</link>
		<comments>http://dotnetaid.com/transact-sql-using-try-catch-in-stored-procedure-and-error-functions/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 07:48:45 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Catch]]></category>
		<category><![CDATA[Erros funtion]]></category>
		<category><![CDATA[Stored Procedure]]></category>
		<category><![CDATA[Transact-SQL]]></category>
		<category><![CDATA[Try]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2018</guid>
		<description><![CDATA[Try-Catch is used to handling exception in C#. Today we will see that how this is also useful to handle errors in SQL also. The Try-Catch consists of two blocks Try block and Catch block. We just write our statements inside the Try block and when the error generate in the Try block the control [...]]]></description>
				<content:encoded><![CDATA[<p>Try-Catch is used to handling exception in C#. Today we will see that how this is also useful to handle errors in SQL also. The Try-Catch consists of two blocks Try block and Catch block. We just write our statements inside the Try block and when the error generate in the Try block the control is passed to Catch block and there we handle the error by writing statements.</p>
<p><span id="more-2018"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
When we use the Try-Catch blocks in T-SQL we need to remember that the Catch block will be written after the Try block so that the error that generates in Try block can be handled immediately by the Catch block.</p>
<p><strong>Sysnax:</strong></p>
<pre>BEGIN TRY
         DELETE from Student_Master
         WHERE id=5001
END TRY
BEGIN CATCH
         SELECT  ERROR_NUMBER() as errornumbers;
END CATCH

Note: the ERROR_NUMBER() is the error functions that is predefined in T-SQL library.</pre>
<p><strong>Error Functions:</strong></p>
<pre>The error functions are used to capture error information that arrives from the Try-Catch statements. The Try-Catch uses the following error functions to keep the error information:

<strong>1. ERROR_NUMBER():</strong> This function returns the error number. So that the error can be detected from the predefined error number in SQL.

<strong>2. ERROR_MESSAGE():</strong> This function returns the complete text of the error message including length, object names or times.

<strong>3. ERROR_SEVERTY():</strong> This function returns the severty of error. If the severty in between 10 to 20 then Try-Catch can handle the error easily. 

<strong>4. ERROR_STATE():</strong> This function the error state numbers.

<strong>5. ERROR_LINE():</strong> It returns the line number from the routine where the error generated.

<strong>6. ERROR_PROCEDURE():</strong> It returns the name of procedure or trigger where the errors generated.</pre>
<p>So these are the error functions that we can use inside the SQL Try_Catch block. Also we can use nested Try-Catch block in T-SQL. Nesting Try-Catch block means we can use the Try-Catch block inside the other Try-Catch blocks.</p>
<p><strong>Suggested Entry:</strong></p>
<pre><a href="http://dotnetaid.com/implementing-if-else-statements-in-t-sqlms-sql-server/">Using If-Else Statement in T-SQL(SQL Server)

</a><a href="http://dotnetaid.com/how-to-declare-and-assign-a-variable-in-sql-server/">How to Declare and Assign a Variable in SQL Server

</a><a href="http://dotnetaid.com/creating-altering-dropping-and-executing-sproc-or-stored-procedure-in-ms-sql-server/">Creating, Altering, Dropping and executing Sproc or Stored Procedure in MS SQL Server</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/transact-sql-using-try-catch-in-stored-procedure-and-error-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Normalize a DataBase Table : Step-4 Converting the 2NF to 3NF</title>
		<link>http://dotnetaid.com/how-to-normalize-a-database-table-step-4-converting-the-2nf-to-3nf/</link>
		<comments>http://dotnetaid.com/how-to-normalize-a-database-table-step-4-converting-the-2nf-to-3nf/#comments</comments>
		<pubDate>Mon, 15 Apr 2013 07:57:14 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[2NF to 3NF]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Normalisation]]></category>
		<category><![CDATA[Normalised Database]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2013</guid>
		<description><![CDATA[The final step for most of databases to be normalized is converting the 2NF to 3NF. After converting the databse into the 3rd normalization form or 3NF most of database are normalized. While converting the 2NF to 3NF we remeber a rule that remove any non-key attributes to a new table that are more dependent [...]]]></description>
				<content:encoded><![CDATA[<p>The final step for most of databases to be normalized is converting the 2NF to 3NF. After converting the databse into the 3rd normalization form or 3NF most of database are normalized. While converting the 2NF to 3NF we remeber a rule that remove any non-key attributes to a new table that are more dependent on other non-key attributes than a table key.</p>
<p><span id="more-2013"></span></p>
<p><script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
The procedure is as follows:</p>
<p>&nbsp;</p>
<pre><strong>Step 1:</strong> If the non-key attribute is more dependent on another non-key attribute than the table key then move the dependent attribute, together with a copy of the non-key attribute upon which it is dependent. 

<strong>Step 2:</strong> Make the non-key attribute, upon which it is dependent, the key in the new table.

<strong>Step 3:</strong> Leave the non-key attribute, upon which it is dependent, in the original table and mark it a foreign key(*).

So here are the steps to normalize a table. In case if the table is still not normalized then we proceed to the 4NF and 5NF but this situation rarely comes.</pre>
<p><strong>Suggested Entry:</strong></p>
<pre><a href="http://dotnetaid.com/normalisation-a-technique-to-design-a-database-system/">Normalization - A Technique to Design a Database System

</a><a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/">How to Normalize a Database Table: Step -1 Converting the Datasoruce to UNF
</a>
<a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-2-converting-the-unf-to-1nf/">How to Normalize a Database table: Step-2 Converting the UNF to 1NF</a>

<a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-3-converting-the-1nf-to-2nf/">How to Normalize a Database table: Step-3 Converting the 1NF to 2NF</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-normalize-a-database-table-step-4-converting-the-2nf-to-3nf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Normalize a DataBase Table : Step-3 Converting the 1NF to 2NF</title>
		<link>http://dotnetaid.com/how-to-normalize-a-database-table-step-3-converting-the-1nf-to-2nf/</link>
		<comments>http://dotnetaid.com/how-to-normalize-a-database-table-step-3-converting-the-1nf-to-2nf/#comments</comments>
		<pubDate>Mon, 15 Apr 2013 07:18:17 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[1NF to 2NF]]></category>
		<category><![CDATA[database normalization]]></category>
		<category><![CDATA[Normalization]]></category>
		<category><![CDATA[Normalize a Database]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2009</guid>
		<description><![CDATA[The Next process of normalization is convert the first normalization form 1NF to second normalization form 2NF. In this process we will remove any non-key attributes that only depend on path of the table key to a new table. Enen many data sources normalized after the 2NF but some time we need to proceed for [...]]]></description>
				<content:encoded><![CDATA[<p>The Next process of normalization is convert the first normalization form 1NF to second normalization form 2NF. In this process we will remove any non-key attributes that only depend on path of the table key to a new table. Enen many data sources normalized after the 2NF but some time we need to proceed for the next step also. But in this article w will see only to convert the 1NF to 2NF.</p>
<p><span id="more-2009"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
The procedure to convert 1NF to 2NF is as follows:</p>
<pre><strong>Step 1:</strong> Take each non key attribute and check whether it is dependent on one part of the key or not.

<strong>Step 2:</strong> If yes then remove the attribute to the new table with a copy of the part of the key it is dependent upon. 

<strong>Step 3:</strong> If no then check against other part of the key and repeat step 1 again.

<strong>Step 4:</strong> Still the key attribute is not dependent on one part of the key the keep the attribute in current table.

Your datasource is now converted into the 2NF.</pre>
<p><strong>Suggested Entry:</strong></p>
<pre><a href="http://dotnetaid.com/normalisation-a-technique-to-design-a-database-system/">Normalization - A Technique to Design a Database System

</a><a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/">How to Normalize a Database Table: Step -1 Converting the Datasoruce to UNF
</a>
<a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-2-converting-the-unf-to-1nf/">How to Normalize a Database table: Step-2 Converting the UNF to 1NF</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-normalize-a-database-table-step-3-converting-the-1nf-to-2nf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Normalize a DataBase Table : Step-2 Converting the UNF to 1NF</title>
		<link>http://dotnetaid.com/how-to-normalize-a-database-table-step-2-converting-the-unf-to-1nf/</link>
		<comments>http://dotnetaid.com/how-to-normalize-a-database-table-step-2-converting-the-unf-to-1nf/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 09:09:22 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Normalization]]></category>
		<category><![CDATA[Normalization Form]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[UNF to 1NF]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=2004</guid>
		<description><![CDATA[As we have seen previously how to convert the data source to Un-Normalized Form also called UNF. Today we will proceed for the next step. In this step we transform the UNF into the first Normalization Form that is called 1NF. To accomplish this we need to remember a rule: we need to remove repeating [...]]]></description>
				<content:encoded><![CDATA[<p>As we have seen previously how to convert the data source to Un-Normalized Form also called UNF. Today we will proceed for the next step. In this step we transform the UNF into the first Normalization Form that is called 1NF. To accomplish this we need to remember a rule: we need to remove repeating attributes to a new table. here we will discuss the process to do this.</p>
<p><span id="more-2004"></span><br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
<strong>Procedure:</strong><br />
<strong>Step 1:</strong> Identify the repeating attributes.<br />
<strong>Step 2:</strong> Remove repeating attributes to a table. Remember while doing this not forget to contain a copy of the key from the UNF table.<br />
<strong>Step 3:</strong> Assign a key to the new table. And a compound key is created. The value for this key must be unique for each entity occurance.</p>
<p><strong>Note:</strong> The key from the unnormalized table always becomes the part of the key of the new table.</p>
<p><strong>Suggested Entry:</strong></p>
<p><a href="http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/">How to Normalize a DataBase Table : Step-1 Converting the Data Source to UNF</a><br />
<a href="http://dotnetaid.com/normalisation-a-technique-to-design-a-database-system/">Normalzation &#8211; A Technique to Design a Database System</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-normalize-a-database-table-step-2-converting-the-unf-to-1nf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Normalize a DataBase Table : Step-1 Converting the Data Source to UNF</title>
		<link>http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/</link>
		<comments>http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 07:47:41 +0000</pubDate>
		<dc:creator>Sourabh Sharma</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[database normalization]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Normalization process]]></category>
		<category><![CDATA[Normalize a data source]]></category>
		<category><![CDATA[UNF]]></category>

		<guid isPermaLink="false">http://dotnetaid.com/?p=1999</guid>
		<description><![CDATA[Recently we have discusses about normalization and the procedure to normalize the data source. Today we will discuss about for this process. As you know that the first step in normalization is to convert the data source to Unnormalized Form that is also called UNF. If you will follow the process accurately then there will be no errors in the first [...]]]></description>
				<content:encoded><![CDATA[<p>Recently we have discusses about normalization and the procedure to normalize the data source. Today we will discuss about for this process. As you know that the first step in normalization is to convert the data source to Unnormalized Form that is also called UNF. If you will follow the process accurately then there will be no errors in the first step of normalization.</p>
<p><span id="more-1999"></span></p>
<p>&nbsp;<br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-0959257577289982"; /* dotnetaid-sidebar */ google_ad_slot = "6074730083"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
Now we will see that what is the proce to complete this first step. Remember we are converting the data source into the UNF. After this we need to convert this UNF into 1NF. The process to convert the data source to UNF is as follows:</p>
<p>&nbsp;</p>
<pre><strong>Step 1:</strong> To convert a data source into UNF, first we need to create column heading and we also ignore any calculated field.

<strong>Step 2:</strong> Now we enter the sample data into table to make it to UNF.

<strong>Step 3:</strong> To make the table in UNF we need to identify a key for table. 

<strong>Step 4:</strong> The most important part of this procdure is to remove the duplicate data from the data source. 

</pre>
<p>If you have followed the above steps on your data source then now your data source is converted into the UNF. After that you need to proceed for the next step of Normalication.</p>
<p><strong>Suggested Entry:</strong></p>
<pre><a href="http://dotnetaid.com/normalisation-a-technique-to-design-a-database-system/">Normalization- A Technique to Design a Database System</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dotnetaid.com/how-to-normalize-a-database-table-step-1-converting-the-datasource-to-unf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.777 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-05-24 11:10:22 -->

<!-- Compression = gzip -->