<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Software Code Help - Interview Question ADO.NET</title>
    <link>http://blog.softwarecodehelp.com/</link>
    <description>Blog</description>
    <language>en-us</language>
    <copyright>SoftwareCodeHelp</copyright>
    <lastBuildDate>Fri, 03 Jul 2009 11:35:56 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>rajshekher@gmail.com</managingEditor>
    <webMaster>rajshekher@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=b8e965cb-46fb-442c-a243-9d740ca7411f</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,b8e965cb-46fb-442c-a243-9d740ca7411f.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,b8e965cb-46fb-442c-a243-9d740ca7411f.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=b8e965cb-46fb-442c-a243-9d740ca7411f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When we roll back our transaction, it nullifies the effect of every command you’ve
executed since you started the last transaction. But what happens if you want to roll
back only part of an ongoing transaction? SQL Server handles this with a feature called
savepoints.<br /><br />
Savepoints are markers that act like bookmarks. You mark a certain point in the flow
of the transaction, and then you can roll back to that point. You set the savepoint
using the Transaction.Save() method. 
</p>
        <p>
Here’s a conceptual look at how you use a savepoint:
</p>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <font size="2">
              <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Start the transaction.</span> SqlTransaction trans <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Connection.BeginTransaction(); <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Mark a savepoint.</span> trans.Save(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"CompletedUpdate"</span>); <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
If needed, roll back to the savepoint.</span> trans.Rollback(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"CompletedUpdate"</span>); <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Commit or roll back the transaction.</span> trans.Commit();</font>
          </span>
        </pre>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b8e965cb-46fb-442c-a243-9d740ca7411f" />
      </body>
      <title>What is the Savepoints in Transaction in ADO.NET.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,b8e965cb-46fb-442c-a243-9d740ca7411f.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/03/WhatIsTheSavepointsInTransactionInADONET.aspx</link>
      <pubDate>Fri, 03 Jul 2009 11:35:56 GMT</pubDate>
      <description>&lt;p&gt;
When we roll back our transaction, it nullifies the effect of every command you’ve
executed since you started the last transaction. But what happens if you want to roll
back only part of an ongoing transaction? SQL Server handles this with a feature called
savepoints.&lt;br&gt;
&lt;br&gt;
Savepoints are markers that act like bookmarks. You mark a certain point in the flow
of the transaction, and then you can roll back to that point. You set the savepoint
using the Transaction.Save() method. 
&lt;/p&gt;
&lt;p&gt;
Here’s a conceptual look at how you use a savepoint:
&lt;/p&gt;
&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font size=2&gt;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Start the transaction.&lt;/span&gt; SqlTransaction trans &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Connection.BeginTransaction(); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Mark a savepoint.&lt;/span&gt; trans.Save(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CompletedUpdate"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
If needed, roll back to the savepoint.&lt;/span&gt; trans.Rollback(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CompletedUpdate"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Commit or roll back the transaction.&lt;/span&gt; trans.Commit();&lt;/font&gt;&lt;/span&gt;&lt;/pre&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b8e965cb-46fb-442c-a243-9d740ca7411f" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,b8e965cb-46fb-442c-a243-9d740ca7411f.aspx</comments>
      <category>Interview Question ADO.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=12f58f3c-3250-46a5-90bc-68f014798463</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,12f58f3c-3250-46a5-90bc-68f014798463.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,12f58f3c-3250-46a5-90bc-68f014798463.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=12f58f3c-3250-46a5-90bc-68f014798463</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Utopia-Regular" size="1">
          <p align="left">
            <font size="2">
              <strong>ExecuteNonQuery()</strong> Executes non-SELECT commands, such
as SQL commands that insert, </font>
            <font size="2">delete, or update records. The
returned value indicates the number of </font>
            <font size="2">rows affected by the
command. You can also use ExecuteNonQuery() to </font>
            <font size="2">execute data-definition
commands that create, alter, or delete database </font>
            <font size="2">objects (such
as tables, indexes, constraints, and so on).</font>
          </p>
          <p align="left">
            <font size="2">
              <strong>ExecuteScalar()</strong> Executes a SELECT query and returns
the value of the first field of the first </font>
            <font size="2">row from the rowset
generated by the command. This method is usually </font>
            <font size="2">used when executing
an aggregate SELECT command that uses functions </font>
            <font size="2">such as COUNT()
or SUM() to calculate a single value.</font>
          </p>
          <p align="left">
            <font size="2">
              <strong>ExecuteReader()</strong> Executes a SELECT query and returns
a DataReader object that wraps a </font>
            <font size="2">read-only, forward-only cursor.</font>
          </p>
        </font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=12f58f3c-3250-46a5-90bc-68f014798463" />
      </body>
      <title>How many different type of Command Method in ADO.NET</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,12f58f3c-3250-46a5-90bc-68f014798463.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/03/HowManyDifferentTypeOfCommandMethodInADONET.aspx</link>
      <pubDate>Fri, 03 Jul 2009 11:14:25 GMT</pubDate>
      <description>&lt;font face=Utopia-Regular size=1&gt; 
&lt;p align=left&gt;
&lt;font size=2&gt;&lt;strong&gt;ExecuteNonQuery()&lt;/strong&gt; Executes non-SELECT commands, such
as SQL commands that insert, &lt;/font&gt;&lt;font size=2&gt;delete, or update records. The returned
value indicates the number of &lt;/font&gt;&lt;font size=2&gt;rows affected by the command. You
can also use ExecuteNonQuery() to &lt;/font&gt;&lt;font size=2&gt;execute data-definition commands
that create, alter, or delete database &lt;/font&gt;&lt;font size=2&gt;objects (such as tables,
indexes, constraints, and so on).&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;&lt;strong&gt;ExecuteScalar()&lt;/strong&gt; Executes a SELECT query and returns
the value of the first field of the first &lt;/font&gt;&lt;font size=2&gt;row from the rowset
generated by the command. This method is usually &lt;/font&gt;&lt;font size=2&gt;used when executing
an aggregate SELECT command that uses functions &lt;/font&gt;&lt;font size=2&gt;such as COUNT()
or SUM() to calculate a single value.&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;&lt;strong&gt;ExecuteReader()&lt;/strong&gt; Executes a SELECT query and returns
a DataReader object that wraps a &lt;/font&gt;&lt;font size=2&gt;read-only, forward-only cursor.&lt;/font&gt;
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=12f58f3c-3250-46a5-90bc-68f014798463" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,12f58f3c-3250-46a5-90bc-68f014798463.aspx</comments>
      <category>Interview Question ADO.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=92fccdc8-427f-440f-b0ac-6090ab018080</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,92fccdc8-427f-440f-b0ac-6090ab018080.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,92fccdc8-427f-440f-b0ac-6090ab018080.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=92fccdc8-427f-440f-b0ac-6090ab018080</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Utopia-Regular" size="1">
          <p align="left">
            <font size="2">A </font>
          </p>
        </font>
        <i>
          <font face="Utopia-Italic">data provider 
</font>
        </i>
        <font face="Utopia-Regular" size="1">
          <font size="2">is a set of ADO.NET
classes that allows you to access a specific database, execute SQL </font>
          <font size="2">commands,
and retrieve data. Essentially, a data provider is a bridge between your application
and </font>
          <font size="2">a data source.</font>
          <font face="Utopia-Regular">
            <p align="left">
              <font size="2">There are four type of providers in .net:</font>
            </p>
            <p align="left">
              <font size="2">• </font>
            </p>
          </font>
          <b>
            <font face="Utopia-Semibold">
              <font size="2">SQL Server provider</font>
            </font>
          </b>
        </font>
        <font face="Utopia-Regular">
          <font size="2">: Provides optimized
access to a SQL Server database (version 7.0 or later).</font>
          <p align="left">
            <font size="2">• </font>
          </p>
        </font>
        <b>
          <font face="Utopia-Semibold">
            <font size="2">OLE DB provider</font>
          </font>
        </b>
        <font face="Utopia-Regular">
          <font size="2">: Provides access to any data
source that has an OLE DB driver. This </font>
          <font size="2">includes SQL Server databases
prior to version 7.0.</font>
          <p align="left">
            <font size="2">• </font>
          </p>
        </font>
        <b>
          <font face="Utopia-Semibold">
            <font size="2">Oracle provider</font>
          </font>
        </b>
        <font size="2">
          <font face="Utopia-Regular">: Provides optimized access
to an Oracle database (version 8</font>
          <i>
            <font face="Utopia-Italic">i 
</font>
          </i>
        </font>
        <font face="Utopia-Regular">
          <font size="2">or later).</font>
          <p align="left">
            <font size="2">• </font>
          </p>
        </font>
        <b>
          <font face="Utopia-Semibold">
            <font size="2">ODBC provider</font>
          </font>
        </b>
        <font face="Utopia-Regular" size="1">
          <font size="2">: Provides access to
any data source that has an ODBC driver.</font>
        </font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=92fccdc8-427f-440f-b0ac-6090ab018080" />
      </body>
      <title>How many type of Data Provider in ADO.NET</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,92fccdc8-427f-440f-b0ac-6090ab018080.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/02/HowManyTypeOfDataProviderInADONET.aspx</link>
      <pubDate>Thu, 02 Jul 2009 11:02:02 GMT</pubDate>
      <description>&lt;font face=Utopia-Regular size=1&gt; 
&lt;p align=left&gt;
&lt;font size=2&gt;A &lt;/font&gt;
&lt;/font&gt;&lt;i&gt;&lt;font face=Utopia-Italic&gt;data provider 
&lt;/i&gt;&gt;&lt;font face=Utopia-Regular size=1&gt;&lt;font size=2&gt;is a set of ADO.NET classes that
allows you to access a specific database, execute SQL &lt;/font&gt;&lt;font size=2&gt;commands,
and retrieve data. Essentially, a data provider is a bridge between your application
and &lt;/font&gt;&lt;font size=2&gt;a data source.&lt;/font&gt;&gt;
&lt;font face=Utopia-Regular&gt; 
&lt;p align=left&gt;
&lt;font size=2&gt;There are&amp;nbsp;four type of&amp;nbsp;providers in .net:&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• &lt;/font&gt;
&lt;/font&gt;&lt;b&gt;&lt;font face=Utopia-Semibold&gt;&lt;font size=2&gt;SQL Server provider&lt;/font&gt;
&lt;/b&gt;&lt;/font&gt;&lt;font face=Utopia-Regular&gt;&lt;font size=2&gt;: Provides optimized access to a
SQL Server database (version 7.0 or later).&lt;/font&gt;&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• &lt;/font&gt;
&lt;/font&gt;&lt;b&gt;&lt;font face=Utopia-Semibold&gt;&lt;font size=2&gt;OLE DB provider&lt;/font&gt;
&lt;/b&gt;&gt;&lt;font face=Utopia-Regular&gt;&lt;font size=2&gt;: Provides access to any data source that
has an OLE DB driver. This &lt;/font&gt;&lt;font size=2&gt;includes SQL Server databases prior
to version 7.0.&lt;/font&gt;&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• &lt;/font&gt;
&lt;/font&gt;&lt;b&gt;&lt;font face=Utopia-Semibold&gt;&lt;font size=2&gt;Oracle provider&lt;/font&gt;
&lt;/b&gt;&gt;&lt;font size=2&gt;&lt;font face=Utopia-Regular&gt;: Provides optimized access to an Oracle
database (version 8&lt;/font&gt;&lt;i&gt;&lt;font face=Utopia-Italic&gt;i 
&lt;/i&gt;&lt;/font&gt;&gt;&lt;font face=Utopia-Regular&gt;&lt;font size=2&gt;or later).&lt;/font&gt;&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• &lt;/font&gt;
&lt;/font&gt;&lt;b&gt;&lt;font face=Utopia-Semibold&gt;&lt;font size=2&gt;ODBC provider&lt;/font&gt;
&lt;/b&gt;&gt;&lt;font face=Utopia-Regular size=1&gt;&lt;font size=2&gt;: Provides access to any data source
that has an ODBC driver.&lt;/font&gt;&gt;
&lt;/font&gt;&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=92fccdc8-427f-440f-b0ac-6090ab018080" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,92fccdc8-427f-440f-b0ac-6090ab018080.aspx</comments>
      <category>Interview Question ADO.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=d935466b-4c8f-4bba-a47f-2dd74552ef6c</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,d935466b-4c8f-4bba-a47f-2dd74552ef6c.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,d935466b-4c8f-4bba-a47f-2dd74552ef6c.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=d935466b-4c8f-4bba-a47f-2dd74552ef6c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Utopia-Regular" size="1">
          <p align="left">
            <font size="2">ADO.NET has two types of objects: </font>
          </p>
        </font>
        <i>
          <font face="Utopia-Italic">connection-based 
</font>
        </i>
        <font face="Utopia-Regular">and </font>
        <i>
          <font face="Utopia-Italic">content-based
</font>
        </i>
        <font face="Utopia-Regular">.
</font>
        <b>
          <font face="Utopia-Semibold">
            <p align="left">
Connection-based objects
</p>
          </font>
        </b>
        <font face="Utopia-Regular">: These are the data provider objects such
as Connection, Command, DataReader, and DataAdapter. They allow you to connect to
a database, execute SQL statements, move through a read-only result set, and fill
a DataSet. The connection-based objects are specific to the type of data source, and
are found in a provider-specific namespace (such as System.Data.SqlClient for the
SQL Server provider).
</font>
        <p align="left">
          <b>
            <font face="Utopia-Semibold">Content-based objects
</font>
          </b>
          <font face="Utopia-Regular" size="1">
            <font size="2">: These objects are
really just "packages" for data. They include the </font>
            <font size="2">DataSet, DataColumn,
DataRow, DataRelation, and several others. They are completely independent </font>
            <font size="2">of
the type of data source and are found in the System.Data namespace.</font>
          </font>
        </p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=d935466b-4c8f-4bba-a47f-2dd74552ef6c" />
      </body>
      <title>How many types of object in ADO.NET</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,d935466b-4c8f-4bba-a47f-2dd74552ef6c.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/02/HowManyTypesOfObjectInADONET.aspx</link>
      <pubDate>Thu, 02 Jul 2009 10:58:47 GMT</pubDate>
      <description>&lt;font face=Utopia-Regular size=1&gt; 
&lt;p align=left&gt;
&lt;font size=2&gt;ADO.NET has two types of objects: &lt;/font&gt;
&lt;/font&gt;&lt;i&gt;&lt;font face=Utopia-Italic&gt;connection-based 
&lt;/i&gt;&gt;&lt;font face=Utopia-Regular&gt;and &lt;/font&gt;&lt;i&gt;&lt;font face=Utopia-Italic&gt;content-based
&lt;/i&gt;&gt;&lt;font face=Utopia-Regular&gt;.&gt;
&lt;/font&gt;&lt;b&gt;&lt;font face=Utopia-Semibold&gt; 
&lt;p align=left&gt;
Connection-based objects
&lt;/b&gt;&gt;&lt;font face=Utopia-Regular&gt;: These are the data provider objects such as Connection,
Command, DataReader, and DataAdapter. They allow you to connect to a database, execute
SQL statements, move through a read-only result set, and fill a DataSet. The connection-based
objects are specific to the type of data source, and are found in a provider-specific
namespace (such as System.Data.SqlClient for the SQL Server provider).&gt;
&lt;/font&gt; 
&lt;p align=left&gt;
&lt;b&gt;&lt;font face=Utopia-Semibold&gt;Content-based objects
&lt;/b&gt;&gt;&lt;font face=Utopia-Regular size=1&gt;&lt;font size=2&gt;: These objects are really just
"packages" for data. They include the &lt;/font&gt;&lt;font size=2&gt;DataSet, DataColumn, DataRow,
DataRelation, and several others. They are completely independent &lt;/font&gt;&lt;font size=2&gt;of
the type of data source and are found in the System.Data namespace.&lt;/font&gt;
&lt;/p&gt;
&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=d935466b-4c8f-4bba-a47f-2dd74552ef6c" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,d935466b-4c8f-4bba-a47f-2dd74552ef6c.aspx</comments>
      <category>Interview Question ADO.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=e5b319cd-1b19-436c-a4de-c1bf1232f4f3</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,e5b319cd-1b19-436c-a4de-c1bf1232f4f3.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,e5b319cd-1b19-436c-a4de-c1bf1232f4f3.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=e5b319cd-1b19-436c-a4de-c1bf1232f4f3</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Utopia-Regular">
          <p align="left">
There are three type of CommandType enumeration in ADO.NET.
</p>
          <p align="left">
            <strong>CommandType.Text</strong> The command will execute a direct SQL statement.
The SQL statement is provided in the CommandText property. This is the default value. 
</p>
          <p align="left">
            <strong>CommandType.StoredProcedure</strong> The command will execute a stored procedure
in the data source. The CommandText property provides the name of the stored procedure.
</p>
          <p align="left">
            <strong>CommandType.TableDirect</strong> The command will query all the records in
the table. The CommandText is the name of the table from which the command will retrieve
the records. 
</p>
        </font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=e5b319cd-1b19-436c-a4de-c1bf1232f4f3" />
      </body>
      <title>What are the different values for the CommandType Enumeration in ADO.NET</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,e5b319cd-1b19-436c-a4de-c1bf1232f4f3.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/01/WhatAreTheDifferentValuesForTheCommandTypeEnumerationInADONET.aspx</link>
      <pubDate>Wed, 01 Jul 2009 11:10:36 GMT</pubDate>
      <description>&lt;font face=Utopia-Regular&gt; 
&lt;p align=left&gt;
There are three type of CommandType enumeration in ADO.NET.
&lt;/p&gt;
&lt;p align=left&gt;
&lt;strong&gt;CommandType.Text&lt;/strong&gt; The command will execute a direct SQL statement.
The SQL statement is provided in the CommandText property. This is the default value. 
&lt;/p&gt;
&lt;p align=left&gt;
&lt;strong&gt;CommandType.StoredProcedure&lt;/strong&gt; The command will execute a stored procedure
in the data source. The CommandText property provides the name of the stored procedure.
&lt;/p&gt;
&lt;p align=left&gt;
&lt;strong&gt;CommandType.TableDirect&lt;/strong&gt; The command will query all the records in
the table. The CommandText is the name of the table from which the command will retrieve
the records. 
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=e5b319cd-1b19-436c-a4de-c1bf1232f4f3" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,e5b319cd-1b19-436c-a4de-c1bf1232f4f3.aspx</comments>
      <category>Interview Question ADO.NET</category>
    </item>
  </channel>
</rss>