﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / Old Forums / InstantKB.NET 1.x / Installation / Update  / Install - Changing SQL connection string / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 09 Jan 2009 10:29:45 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>Try it like this... &lt;/P&gt;&lt;P&gt;[code]&amp;lt;add key="InstantASP_ConnectionString" value="server=yourdatabaseserver;user id=youruserid; pwd=yourpwd;database=instantforumdb;"/&amp;gt;[/code]</description><pubDate>Mon, 12 Dec 2005 15:54:03 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>RE: Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>Our installation has SQL on another box using a sql account in the connection string.  The navigation of the site works fine, but if I try to click on search I get the following.  (I changed the machine name for this post)&lt;P&gt;[code]&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Exception&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Message&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;Login failed for user 'XXXX\ASPNET'.&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Message&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Source&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.Net SqlClient Data Provider&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Source&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;StackTrace&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;&amp;amp;amp;&lt;/FONT&gt; &lt;FONT color=#000000&gt; isInTransaction)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;&amp;amp;amp;&lt;/FONT&gt;  isInTransaction)&lt;/P&gt;&lt;P&gt;at System.Data.SqlClient.SqlConnection.Open()&lt;/P&gt;&lt;P&gt;etc., etc.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Is there a way to get the search function to work without a trusted connection?&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 12 Dec 2005 14:22:56 GMT</pubDate><dc:creator>Steve Billingsley</dc:creator></item><item><title>RE: Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>&lt;P&gt;Hi Sicilian,&lt;/P&gt;&lt;P&gt;Could you try the following connection string...&lt;/P&gt;&lt;P&gt;server=localhost;trusted_connection=true;database=instantkb12;&lt;/P&gt;&lt;P&gt;And ensure the ASPNET account appears within the users node of your database. Add this user if necessary and provide the do_owner database role to this ASPNET account.&lt;/P&gt;&lt;P&gt;This should allow you to use the software locally using a trusted connection. Of course you will need to change the connection string to use your dedicated SQL Server account once you move to a live environment. Please let me know if this helps &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Thu, 05 Aug 2004 09:57:04 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>Hi All&lt;BR&gt;I have windows 2000 professional and sql developer edition. I have installed the Installed the instantkb. But when i start it , I get the following error "SQL Server Does not exist or access denied" ..I had taken the following steps&lt;BR&gt;1) Added ASPNET user in sql server and provided the permission of owner,read and write&lt;BR&gt;2)Created another user in windows and added it to the sql database, gave the above permission and changed the connection string to &lt;BR&gt;value="server=localhost;uid=xxxxx;password=yyyyyy;database=InstantKB12"&lt;BR&gt;3)I added both aspnet and the above usernames in the security--login in sql server , still couldnt get...&lt;BR&gt;&lt;BR&gt;Can anyone tell me where am i going wrong?&lt;BR&gt;&lt;BR&gt;Regards&lt;BR&gt;Sicilian</description><pubDate>Thu, 05 Aug 2004 09:51:25 GMT</pubDate><dc:creator>Class.NET</dc:creator></item><item><title>RE: Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;Yes it is that simple. The error your receiving is because the database object don't have the correct permissions for whatever user account your using within the connection string.&lt;/P&gt;&lt;P&gt;Your connection string should look something like...&lt;/P&gt;&lt;P&gt;server=mysqlserver.com;uid=myusername;pwd=mypassword;database=instantkb12&lt;/P&gt;&lt;P&gt;Please ensure that whatever user you have created within the SQL server database has db_owner rights to your database. In the users node in Enterprise Manager right click the user and click db_owner apply the settings.&lt;/P&gt;&lt;P&gt;This will fix this error. I would recommend you do a some research into securing your user account when moving to a production environment &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description><pubDate>Wed, 22 Oct 2003 13:22:00 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>Install - Changing SQL connection string</title><link>http://community.instantasp.co.uk/Topic1055-25-1.aspx</link><description>&lt;P&gt;I do not want to use the default connection string. I want to add a user and password to connect to the database. Is it as easy as changing the connection string in the web.config file? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error when I use the default connection string:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[SqlException: SELECT permission denied on object 'InstantKB_Articles', database 'InstantKB12', owner 'dbo'.]&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;</description><pubDate>Wed, 22 Oct 2003 13:12:00 GMT</pubDate><dc:creator>Sam Roberts</dc:creator></item></channel></rss>