﻿<?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 / InstantKB.NET 2.x / General Discussion  / Upgrade problems (database specific) / 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>Sat, 30 Aug 2008 00:51:45 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>[quote][b]BentleyBoys (07/05/2008)[/b][hr]Ryan &lt;P&gt;Please excuse my stupidity! Yes you were correct, I was using a Database from one of the beta tests of KB2 - I restored the correct live KB1.3 database and the script ran just fine.&lt;/P&gt;&lt;P&gt;Thanks for your help and apologies for not concentrating!!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Martin[/quote] &lt;P&gt;Hi Martin, &lt;P&gt;Hope your very well. It's no problem honestly we are all only human unfortunately ;) &lt;P&gt;I'm delighted to hear my suggestion helped. We are here to help and please don't hesitate to post any future problems. It's more than likely we've seen the problem dozens of times before and can hopefully point you in the right direction. &lt;P&gt;I just wanted to also say thanks Martin for your feedback and especially your time during the 2.0 release. I know your a busy chap and it's sincerely appreciated. &lt;P&gt;We do have a further update available today (more fun and games) to resolve a number of issues found within the 2.0 release. Thankfully the update is quite simple to apply but will require a small database update. Any questions or problems please don't hesitate to post here. You can find more information at the link below..&lt;P&gt;&lt;a target="_blank" href="http://community.instantasp.co.uk/Topic13902-9-1.aspx" target=_blank&gt;http://community.instantasp.co.uk/Topic13902-9-1.aspx&lt;/A&gt;&lt;P&gt;Thanks again Martin,</description><pubDate>Mon, 12 May 2008 19:00:22 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>Ryan&lt;/P&gt;&lt;P&gt;Please excuse my stupidity! Yes you were correct, I was using a Database from one of the beta tests of KB2 - I restored the correct live KB1.3 database and the script ran just fine.&lt;/P&gt;&lt;P&gt;Thanks for your help and apologies for not concentrating!!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Martin</description><pubDate>Wed, 07 May 2008 09:44:38 GMT</pubDate><dc:creator>BentleyBoys</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>[quote][b]BentleyBoys (01/05/2008)[/b][hr]Hi Ryan &lt;P&gt;Nice to hear from you and great to see v2.0 out! Hopefully we can get past these issues fairly easily.&lt;/P&gt;&lt;P&gt;I started again just so I could document the process.&lt;/P&gt;&lt;P&gt;1. Restored my existing, working 1.3 db into a new database (SQL2005)&lt;/P&gt;&lt;P&gt;2. Ran the upgrade script - see results attached&lt;/P&gt;&lt;P&gt;3. The Article table is not present in the upgraded DB&lt;/P&gt;&lt;P&gt;Let me know if you need more information to diagnose the problem.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin[/quote] &lt;P&gt;Hi Martin, &lt;P&gt;Hope your well. Many thanks for your response. IT appears your running the ugrade script against a database that already contains a version of InstantKB.NET 2.0... &lt;P&gt;There is already an object named 'InstantASP_Emails' in the database. &lt;P&gt;When you run the script within management studio ensure you selected your restored 1.3 database from the drop down list. Please see attached screen grab. &lt;P&gt;Please let me know if this helps,</description><pubDate>Thu, 01 May 2008 17:18:12 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>Hi Ryan&lt;/P&gt;&lt;P&gt;Nice to hear from you and great to see v2.0 out! Hopefully we can get past these issues fairly easily.&lt;/P&gt;&lt;P&gt;I started again just so I could document the process.&lt;/P&gt;&lt;P&gt;1. Restored my existing, working 1.3 db into a new database (SQL2005)&lt;/P&gt;&lt;P&gt;2. Ran the upgrade script - see results attached&lt;/P&gt;&lt;P&gt;3. The Article table is not present in the upgraded DB&lt;/P&gt;&lt;P&gt;Let me know if you need more information to diagnose the problem.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin</description><pubDate>Thu, 01 May 2008 14:53:34 GMT</pubDate><dc:creator>BentleyBoys</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>[quote][b]BentleyBoys (01/05/2008)[/b][hr]I also tried an upgrade install - loads of errors running the script, and trying to access the applicaton I get the following error : &lt;P&gt;Exception Type:        System.Data.SqlClient.SqlException&lt;BR&gt;Exception Message:     Invalid object name 'InstantKB_Articles'.&lt;BR&gt;Exception Source:      .Net SqlClient Data Provider&lt;BR&gt;Exception Target Site: OnError&lt;BR&gt;[/quote] &lt;P&gt;Hi Martin, &lt;P&gt;Hope your well .Nice to hear from you again I'm sorry to hear your having problems. The error messages indicates your installation of InstantKB.NET cannot find our main InstantKB_Articles database table. . &lt;P&gt;If you check the connection string within the InstantKB.NET 2.0 web.config file this should point a InstantKB.NET 2.0 database. If you open your database in management studio do you see the InstantKB_Articles table. I'm assuming you've received this error after attempting to update an existing 1.3 database. Did you receive any error message whilst running the upgrade script? Does it appear the database updated? Do you now see a number of new tables and stored procedures within your database? &lt;P&gt;Sorry to ask so many questions Martin. Any additional information you can provide will certainly help me determine what's causing this error. Looking forward to your response,</description><pubDate>Thu, 01 May 2008 14:40:19 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>Hi Rob,&lt;/P&gt;&lt;P&gt;Sorry to hear your having some problems. We don't accommodate for nulls there as RoleID in the old InstantKB_TreeRoles table should never be bull. Categories will always need a valid role identity to determine who has access to the content within that category.&lt;/P&gt;&lt;P&gt;The only thing i can suggest for the moment Rob is to run a query similar to the following before running our update script. &lt;/P&gt;&lt;P&gt;DELETE FROM InstantKB_TreeRoles WHERE RoleID IS NULL&lt;/P&gt;&lt;P&gt;I've made a note of this Rob and will be looking to see if there is any reason RoleID would be null in the 1.3 InstantKB_TreeRoles table. Please let me know if this helps Rob,&lt;BR&gt;</description><pubDate>Thu, 01 May 2008 14:16:26 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>I also tried an upgrade install - loads of errors running the script, and trying to access the applicaton I get the following error :&lt;/P&gt;&lt;P&gt;Exception Type:        System.Data.SqlClient.SqlException&lt;BR&gt;Exception Message:     Invalid object name 'InstantKB_Articles'.&lt;BR&gt;Exception Source:      .Net SqlClient Data Provider&lt;BR&gt;Exception Target Site: OnError&lt;BR&gt;</description><pubDate>Thu, 01 May 2008 11:43:27 GMT</pubDate><dc:creator>BentleyBoys</dc:creator></item><item><title>Upgrade problems (database specific)</title><link>http://community.instantasp.co.uk/Topic13850-74-1.aspx</link><description>I'm sure I brought this up before (perhaps I spoke direct with ryan on it) but I have upgrade errors.&lt;/P&gt;&lt;P&gt;Msg 515, Level 16, State 2, Line 27&lt;/P&gt;&lt;P&gt;Cannot insert the value NULL into column 'RoleID', table 'kb2.dbo.instantKB_CategoryRoles'; column does not allow nulls. Insert fails.&lt;/P&gt;&lt;P&gt;I have a lot of the above lines repeated over and over in the output of the 1.3 &amp;gt; 2.0 upgrade&lt;/P&gt;&lt;P&gt;In Instantkb_treeroles I have 0 Null values&lt;/P&gt;&lt;P&gt;In instantkb_treeroles I have 1474 records&lt;/P&gt;&lt;P&gt;In Instantkb_categoryroles I end up with 1235 so unless some truncation takes place I lose 239 records.&lt;/P&gt;&lt;P&gt;I can't find any NULL values anywhere except the blank line for inserting a new record.&lt;/P&gt;&lt;P&gt;Anyone any ideas?</description><pubDate>Thu, 01 May 2008 09:34:52 GMT</pubDate><dc:creator>RobH</dc:creator></item></channel></rss>