<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Access Databases and AccessDataSource Control</title><link>http://forums.asp.net/55.aspx</link><description>Discuss using Access as a data store for ASP.NET, and the AccessDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3269276.aspx</link><pubDate>Wed, 01 Jul 2009 15:29:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269276</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269276.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3269276</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;chandu2chandu1:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am not sure that oleDb works for access or not.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A common Connectionstring would look something like&lt;/p&gt;
&lt;p&gt;Provider=Microsoft.Jet.&lt;strong&gt;OleDb&lt;/strong&gt;.4.0;Data Source=|DataDirectory|myDB.mdb&lt;/p&gt;
&lt;p&gt;Also, th AccessDatasource control uses the OleDb provider&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/8e5545e1.aspx"&gt;http://msdn.microsoft.com/en-us/library/8e5545e1.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3269199.aspx</link><pubDate>Wed, 01 Jul 2009 14:52:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269199</guid><dc:creator>chandu2chandu1</dc:creator><author>chandu2chandu1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269199.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3269199</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;hans_v:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;ODBC - Access - ASP.NET&lt;/p&gt;
&lt;p&gt;Not a very good combination&lt;img title="Cry" alt="Cry" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif" border="0" /&gt;, always use OleDb &lt;img title="Laughing" alt="Laughing" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" border="0" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I am not sure that oleDb works for access or not.&amp;nbsp; That&amp;#39;s why I provided the sample example.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3268989.aspx</link><pubDate>Wed, 01 Jul 2009 13:20:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268989</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268989.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268989</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;chandu2chandu1:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;div class="dp-highlighter"&gt;
&lt;ol class="dp-c"&gt;
&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="keyword"&gt;string&lt;/span&gt;&lt;span&gt;&amp;nbsp;myConnString=ConfigurationaManager.ConnectionString[&lt;/span&gt;&lt;span class="string"&gt;&amp;quot;myConn&amp;quot;&lt;/span&gt;&lt;span&gt;].ToString(); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="keyword"&gt;using&lt;/span&gt;&lt;span&gt;(ODBCConnection&amp;nbsp;conn=&lt;/span&gt;&lt;span class="keyword"&gt;new&lt;/span&gt;&lt;span&gt;&amp;nbsp;ODBCConnection()) &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt"&gt;&lt;span&gt;{ &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="comment"&gt;//Do&amp;nbsp;your&amp;nbsp;database&amp;nbsp;processing&amp;nbsp;here. &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt"&gt;&lt;span&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="DISPLAY:none;" class="c-sharp" name="code"&gt;string myConnString=ConfigurationaManager.ConnectionString[&amp;quot;myConn&amp;quot;].ToString();
using(ODBCConnection conn=new ODBCConnection())
{
       //Do your database processing here.
}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ODBC - Access - ASP.NET&lt;/p&gt;
&lt;p&gt;Not a very good combination&lt;img title="Cry" border="0" alt="Cry" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif" /&gt;, always use OleDb &lt;img title="Laughing" border="0" alt="Laughing" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3268975.aspx</link><pubDate>Wed, 01 Jul 2009 13:15:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268975</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268975.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268975</wfw:commentRss><description>&lt;p&gt;Why would you use a UDL? Just connect the .NET way:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mikesdotnetting.com/Article.aspx?ArticleID=78" target="_blank"&gt;AccessDataSource, SqlDataSource and connecting to Access databases in ASP.NET&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3268527.aspx</link><pubDate>Wed, 01 Jul 2009 10:11:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268527</guid><dc:creator>chandu2chandu1</dc:creator><author>chandu2chandu1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268527.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268527</wfw:commentRss><description>&lt;p&gt;You open the UDL file with the notepad.&amp;nbsp; There you can find the connection string, then you can copy the connection string to your web.config file and from there you can call the connection string and connect to your database using the connection object.&amp;nbsp; See the web.config files snippet,&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;connectionStrings&amp;gt;
        &amp;lt;add name=&amp;quot;myConn&amp;quot; connectionString=&amp;quot;String From your udl file&amp;quot;/&amp;gt;
    &amp;lt;/connectionStrings&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; Now, in your application file (C#) you can call the connection string as follows,&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;string myConnString=ConfigurationaManager.ConnectionString[&amp;quot;myConn&amp;quot;].ToString();
using(ODBCConnection conn=new ODBCConnection())
{
       //Do your database processing here.
}&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how do i use a UDL file?</title><link>http://forums.asp.net/thread/3268464.aspx</link><pubDate>Wed, 01 Jul 2009 09:50:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268464</guid><dc:creator>Ambran</dc:creator><author>Ambran</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268464.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268464</wfw:commentRss><description>&lt;p&gt;Hi Y.&lt;/p&gt;&lt;p&gt;Found an &lt;b&gt;old &lt;/b&gt;guide for using an UDL file for database access: &lt;a href="http://aspalliance.com/434_Database_Access_Using_UDL_Files.all"&gt;&lt;br /&gt;http://aspalliance.com/434_Database_Access_Using_UDL_Files.all&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope this helps&lt;/p&gt;&lt;p&gt;Amit&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>how do i use a UDL file?</title><link>http://forums.asp.net/thread/3268117.aspx</link><pubDate>Wed, 01 Jul 2009 07:00:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268117</guid><dc:creator>young345</dc:creator><author>young345</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268117.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268117</wfw:commentRss><description>&lt;p&gt;I have a udl file which I want to use so I can connect to the database.&lt;/p&gt;
&lt;p&gt;I have written the code in the webconfig file so it will link to this udl file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I don’t think that is enough, I think I have to write in the code somewhere that I want to use this UDL file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have never done this before, does anyone know how I can do this, is there some kind of techinique?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using c# and visual studio 2005.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>