<?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>Quinterox &#187; databind</title>
	<atom:link href="http://www.quinterox.com/content/tag/databind/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quinterox.com/content</link>
	<description>Cesar Quinteros</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OleDb &#8211; Simple Database Databinding</title>
		<link>http://www.quinterox.com/content/code/oledb-simple-database-databinding/</link>
		<comments>http://www.quinterox.com/content/code/oledb-simple-database-databinding/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 04:12:24 +0000</pubDate>
		<dc:creator>Cesar Quinteros</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[access 2007]]></category>
		<category><![CDATA[databind]]></category>
		<category><![CDATA[oledb]]></category>

		<guid isPermaLink="false">http://quinterox.com/code/?p=31</guid>
		<description><![CDATA[Binding database data to a gridview using a datareader.]]></description>
			<content:encoded><![CDATA[<p>If you do not have MS SQL installed (Why not? The Express version is free!) or prefer the portability MS Access provides then you might want to learn how to create an OleDbConnection, part of the System.Data.OleDb namespace, as opposed to SqlConnection which is part of the System.Data.SqlClient namespace. Here is a quick example of how an OleDbConnection string is used.</p>
<pre>Dim objConn As OleDbConnection
Dim objRDR As OleDbDataReader
Dim objCmd As OleDbCommand
objConn = New OleDbConnection( _
“Provider=Microsoft.ACE.OLEDB.12.0;Data Source=” &amp; _
“E:Documentsdatabasestest.accdb”)
objCmd = New OleDbCommand(”SELECT [first], [last] FROM [names]“, objConn)
objConn.Open()
objRdr = objCmd.ExecuteReader()
GridView1.DataSource = objRdr
GridView1.DataBind()</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.quinterox.com/content/code/oledb-simple-database-databinding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
