<?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: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3275817.aspx</link><pubDate>Mon, 06 Jul 2009 03:22:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275817</guid><dc:creator>mudassarkhan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275817.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3275817</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;alcaps:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I tryed:&lt;br /&gt;ConfigurationManager.ConnectionStrings[&amp;quot;controleConnectionString&amp;quot;].ConnectionString = conStr&lt;/p&gt;
&lt;p&gt;But I get a error &amp;quot;Configuration read-only&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why you want to reset the connection string in web.config&lt;/p&gt;
&lt;p&gt;This variable &lt;strong&gt;conStr&lt;/strong&gt; has the connection string in it&amp;nbsp;use this to connect to database&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3275806.aspx</link><pubDate>Mon, 06 Jul 2009 03:05:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275806</guid><dc:creator>alcaps</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275806.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3275806</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have in web.config:&lt;br /&gt;&amp;lt;add name=&amp;quot;controleConnectionString&amp;quot; connectionString=&amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\controle.mdb;Persist Security Info=True;Jet OLEDB:Database Password={0}&amp;quot; providerName=&amp;quot;System.Data.OleDb&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;In code now I have:&lt;br /&gt;string conStr = ConfigurationManager.ConnectionStrings[&amp;quot;controleConnectionString&amp;quot;].ConnectionString;&lt;br /&gt;conStr = String.Format(conStr, &amp;quot;password&amp;quot;);&lt;/p&gt;
&lt;p&gt;This code only create a connection string. How I use this in a dataset?&lt;/p&gt;
&lt;p&gt;I tryed:&lt;br /&gt;ConfigurationManager.ConnectionStrings[&amp;quot;controleConnectionString&amp;quot;].ConnectionString = conStr&lt;/p&gt;
&lt;p&gt;But I get a error &amp;quot;Configuration read-only&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tks&lt;/p&gt;</description></item><item><title>Re: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3275136.aspx</link><pubDate>Sun, 05 Jul 2009 06:08:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275136</guid><dc:creator>Mikesdotnetting</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275136.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3275136</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;alcaps:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I want hide the database password and limit the system access.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;You can encrypt the connection string (together with the password) in your web.config file: &lt;a href="http://www.google.co.uk/search?hl=en&amp;amp;q=web+config+encrypt+connection+string&amp;amp;btnG=Google+Search&amp;amp;meta=&amp;amp;aq=2&amp;amp;oq=web+config+encr"&gt;http://www.google.co.uk/search?hl=en&amp;amp;q=web+config+encrypt+connection+string&amp;amp;btnG=Google+Search&amp;amp;meta=&amp;amp;aq=2&amp;amp;oq=web+config+encr&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you are really concerned about security, you should not be using Access.&amp;nbsp; There are plenty of tools available for cracking open password protected databases.&amp;nbsp; If you believe someone can get access to your code or web.config, then it stands to reason that they can get your database and force it open.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3275082.aspx</link><pubDate>Sun, 05 Jul 2009 03:53:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275082</guid><dc:creator>mudassarkhan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275082.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3275082</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can do something like this Place the placeholders&lt;/p&gt;
&lt;p&gt;&amp;lt;add name =&amp;quot;Excel03ConString&amp;quot; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionString=&amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extended Properties=&amp;#39;Excel 8.0;HDR={1}&amp;#39;&amp;quot;/&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And in front end then do String.Format to fill them&lt;/p&gt;
&lt;p&gt;string conStr = ConfigurationManager.ConnectionStrings[&amp;quot;Excel03ConString&amp;quot;] .ConnectionString; &lt;/p&gt;
&lt;p&gt;conStr = &lt;span style="COLOR:teal;"&gt;String&lt;/span&gt;.Format(conStr, &amp;quot;C:\\Book1.xls&amp;quot;, &amp;quot;yes&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3275078.aspx</link><pubDate>Sun, 05 Jul 2009 03:40:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275078</guid><dc:creator>alcaps</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275078.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3275078</wfw:commentRss><description>&lt;p&gt;I want hide the database password and limit the system access.&lt;/p&gt;
&lt;p&gt;Authentication at the application level&amp;nbsp;can expose my MDB password.&lt;/p&gt;
&lt;p&gt;I want use my dynamically created string in a dataset but it only get&amp;nbsp;from web.config. I want override this web.config string.&lt;/p&gt;</description></item><item><title>Re: Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3274620.aspx</link><pubDate>Sat, 04 Jul 2009 12:14:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274620</guid><dc:creator>Mikesdotnetting</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274620.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3274620</wfw:commentRss><description>&lt;p&gt;Not sure what you mean by &amp;quot;how can I use this connection string&amp;quot;.&amp;nbsp; It&amp;#39;s just a string that&amp;#39;s created dynamically.&amp;nbsp; Although I am not sure why you are authenticating users at the database connection level.&amp;nbsp; Can&amp;#39;t you just use From Authentication at the application level?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Dynamicaly DB password in connection string</title><link>http://forums.asp.net/thread/3274363.aspx</link><pubDate>Sat, 04 Jul 2009 07:05:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274363</guid><dc:creator>alcaps</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274363.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3274363</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To access my system, the user must enter a password. This pass must be the&amp;nbsp;same of my&amp;nbsp;MS Access DB.&lt;/p&gt;
&lt;p&gt;The system must try use the DB with the entered password. If sucessful, show informations. Else, show a message &amp;quot;wrong password&amp;quot;.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Dataset, then I must manipulate the connection string. But how????&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Like this:&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;
&lt;p&gt;String ConnectionString = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\database.mdb;Persist Security Info=True;Jet OLEDB:Database Password=&amp;quot; + passwordTextBox.text&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;How can I can use this conection string?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tks,&lt;/p&gt;
&lt;p&gt;Patrick Coelho - &lt;a href="http://www.criapix.com.br"&gt;www.criapix.com.br&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>