<?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>code for asp.net &#187; Database</title>
	<atom:link href="http://www.codeforasp.net/category/code-for-asp-net/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codeforasp.net</link>
	<description>More about asp.net ajax silverlight MVC</description>
	<lastBuildDate>Tue, 02 Mar 2010 10:17:59 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Server.MapPath in Class file for Excel or MS-Access</title>
		<link>http://www.codeforasp.net/server-mappath-in-class-file-for-excel.html</link>
		<comments>http://www.codeforasp.net/server-mappath-in-class-file-for-excel.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 12:06:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[class file]]></category>
		<category><![CDATA[excel class file]]></category>
		<category><![CDATA[Server.MapPath]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=640</guid>
		<description><![CDATA[In App_Data Folder


 
string connectionString = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221; + System.Web.HttpContext.Current.Server.MapPath(&#8221;App_Data/DBMASTER_Jan2009.xls&#8221;) + &#8220;;Extended Properties=Excel 8.0;&#8221;; 
 
In Project


 
string connectionString = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221; + System.Web.HttpContext.Current.Server.MapPath(&#8221;DBMASTER_Jan_2009.xls&#8221;) + &#8220;;Extended Properties=Excel 8.0;&#8221;;
 
public DataSet SearchReportData()
{
OleDbConnection objConn = new OleDbConnection(connectionString);
//string query = &#8220;select * from [satya$] where Dist=&#8217;&#8221; + txtDistrict.Text.Trim() + &#8220;&#8216;&#8221;;
string query = &#8220;select * from [satya$] where SCNo=?&#8221;;
OleDbCommand [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/server-mappath-in-class-file-for-excel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>data type mismatch in criteria expression. data type mismatch in criteria expression. oledb</title>
		<link>http://www.codeforasp.net/data-type-mismatch-in-criteria-expression-oledb.html</link>
		<comments>http://www.codeforasp.net/data-type-mismatch-in-criteria-expression-oledb.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 07:38:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[criteria expression]]></category>
		<category><![CDATA[data type]]></category>
		<category><![CDATA[excel class file]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=628</guid>
		<description><![CDATA[
Above Excel sheet contain
Dist column contain all cells with left alignment its datatype is string
SCNO column contain all cells with left alignment its datatype is string
ConnLoad column contains all cells with right alignment its datatype is digit type 
Here CDAMT contain all cells with right alignment tis datatype is digit type
digit type means (decimal or [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/data-type-mismatch-in-criteria-expression-oledb.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the connection for viewing your linked microsoft excel worksheet was lost. error 3620</title>
		<link>http://www.codeforasp.net/the-connection-for-viewing-your-linked-microsoft-excel-worksheet-was-lost-error-3620.html</link>
		<comments>http://www.codeforasp.net/the-connection-for-viewing-your-linked-microsoft-excel-worksheet-was-lost-error-3620.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 07:13:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[asp.net and excel]]></category>
		<category><![CDATA[excel connection string asp.net]]></category>
		<category><![CDATA[Excel connectionstring]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=623</guid>
		<description><![CDATA[Check below steps to avoid above error
Step 1: 
Use below connection for Office 2007 Excel files 
string connectionString = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\user.xls;Extended Properties=\&#8221;Excel 8.0;HDR=YES;\&#8220;&#8221;;
user.xls is Excel file Name (Database name)
Use below connection for Office 97-2003  Excel files 
string connectionString = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\user.xls;Extended Properties=Excel 8.0;&#8221;;
step2:
Before adding records from asp.net form to excel close the excel file
After adding [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/the-connection-for-viewing-your-linked-microsoft-excel-worksheet-was-lost-error-3620.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert data into asp.net using Oracle Provider msdaora.1</title>
		<link>http://www.codeforasp.net/insert-data-into-asp-net-using-oracle-provider-msdaora-1.html</link>
		<comments>http://www.codeforasp.net/insert-data-into-asp-net-using-oracle-provider-msdaora-1.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 08:05:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[inserting data into asp.net and oracle]]></category>
		<category><![CDATA[msdaora.1]]></category>
		<category><![CDATA[oracle provider for .net]]></category>
		<category><![CDATA[oracle provider for asp.net]]></category>
		<category><![CDATA[oracle provider for ole db]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=266</guid>
		<description><![CDATA[In Oracle
I am going to Create a table in Oracle using database name is dbName
Database name is dbName
Create a table name tblSales with three fields
create table TBLSALES
(
SALESCODE NUMBER not null,
ITEMS     CHAR(32) not null,
SALESDATE DATE not null
)
In Visual Studio
I am going to explain the steps to insert the data into oracle using asp.net application.
Step1:  Open [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/insert-data-into-asp-net-using-oracle-provider-msdaora-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>insert and display data into excel using asp.net</title>
		<link>http://www.codeforasp.net/insert-and-display-data-into-excel-using-asp-net.html</link>
		<comments>http://www.codeforasp.net/insert-and-display-data-into-excel-using-asp-net.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 07:52:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[connection string for excel using asp.net]]></category>
		<category><![CDATA[displaying data into asp.net using excel sheet]]></category>
		<category><![CDATA[excel connection string for asp.net]]></category>
		<category><![CDATA[inserting data into excel using asp.net]]></category>
		<category><![CDATA[office 2003 excel connection string for asp.net]]></category>
		<category><![CDATA[oledb connection for excel]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=261</guid>
		<description><![CDATA[Create excel file as Data.xls and change the name of sheet1 to users
in users sheet type ID,Name,Address,Phoneno in first row to inserting data
and for display the data in drag gridview control.
file name: Data.xls
sheet name: users
Step1: In Default.aspx page take four textbox’s(ID,Name,Address,Phoneno) and one submit button
change Textbox ID in Properties
ID textbox =txtID
Name textbox =txtName
Address textbox=txtAddres
Phoneno textbox=txtPhoneno
step2: [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/insert-and-display-data-into-excel-using-asp-net.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>asp.net and ms access database connectivity</title>
		<link>http://www.codeforasp.net/asp-net-and-ms-access-database-connectivity.html</link>
		<comments>http://www.codeforasp.net/asp-net-and-ms-access-database-connectivity.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 05:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[asp.net and ms access]]></category>
		<category><![CDATA[insert query in ms access]]></category>
		<category><![CDATA[ms access and asp.net]]></category>
		<category><![CDATA[ms access database]]></category>
		<category><![CDATA[ms access queries]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=257</guid>
		<description><![CDATA[Step1: Create table in MS-Access
Open Microsoft Access &#8211;  Goto File menu in menubar – click New – choose Blank Database – give database file name (choose the path E drive or D drive) – save the file name with Employee.mdb so the path is E:\Employee.mdb
 
Employee is Database name
 
Choose Tables in object – Double [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/asp-net-and-ms-access-database-connectivity.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database connection in asp.net</title>
		<link>http://www.codeforasp.net/database-connection-in-asp-net.html</link>
		<comments>http://www.codeforasp.net/database-connection-in-asp-net.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 05:00:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[asp.net database connections]]></category>
		<category><![CDATA[asp.net with excel connection]]></category>
		<category><![CDATA[asp.net with ms access]]></category>
		<category><![CDATA[asp.net with oracle]]></category>
		<category><![CDATA[asp.net with sqlserver 2005]]></category>
		<category><![CDATA[system.data.OledB]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=253</guid>
		<description><![CDATA[An ADO.NET provider is a class that can communicate with a specific type of database or data store. It consists of a set of classes used to handle data access.
Providers of the .Net Framework are

The .NET Framework Data Provider for SQL Server in the System.Data.SqlClient namespace. This provider is the default for the SqlDataSource control; [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/database-connection-in-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
