Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SQL Execution Exception- Invalid object name: after upgrade to 3.3.5SQL Execution Exception- Invalid object name: after upgrade to 3.3.5
Previous
 
Next
New Post
9/20/2006 11:29 PM
 
I just upgraded my site from 3.2.2 to 3.3.5.   Now when I try to upload core module upgrades the upload goes through the standard module install process, all files get extracted, then I get the following error :  Anyone have any ideas or is there a bug in this upgrade process. (*empulse_dnnuer" is the database owner - set in web.config)

SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Invalid object name 'empulse_dnnuser.sysobjects'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from empulse_dnnuser.sysobjects where id = object_id(N'empulse_dnnuser.[GetAnnouncement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure empulse_dnnuser.GetAnnouncement System.Data.SqlClient.SqlException: Invalid object name 'empulse_dnnuser.sysobjects'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from empulse_dnnuser.sysobjects where id = object_id(N'empulse_dnnuser.[GetAnnouncements]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure empulse_dnnuser.GetAnnouncements System.Data.SqlClient.SqlException: There is already an object named 'GetAnnouncement' in the database. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure empulse_dnnuser.GetAnnouncement @ItemId int, @ModuleId int as select Announcements.ItemId, Announcements.ModuleId, Announcements.CreatedByUser, Announcements.CreatedDate, Announcements.Title, Announcements.URL, Announcements.Description, Announcements.ViewOrder, UrlTracking.TrackClicks, UrlTracking.NewWindow from Announcements left outer join UrlTracking on Announcements.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID where Announcements.ItemId = @ItemId and Announcements.ModuleId = @ModuleId System.Data.SqlClient.SqlException: There is already an object named 'GetAnnouncements' in the database. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure empulse_dnnuser.GetAnnouncements @ModuleId int, @StartDate datetime, @EndDate datetime as select Announcements.ItemId, Announcements.ModuleId, Announcements.CreatedByUser, Announcements.CreatedDate, Announcements.Title, Announcements.URL, Announcements.ViewOrder, Announcements.Description, UrlTracking.TrackClicks, UrlTracking.NewWindow from Announcements left outer join UrlTracking on Announcements.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID where Announcements.ModuleId = @ModuleId and ( ((Announcements.CreatedDate >= @StartDate) or @StartDate is null) and ((Announcements.CreatedDate <= @EndDate) or @EndDate is null) ) order by Announcements.ViewOrder asc, Announcements.CreatedDate desc
 
New Post
10/3/2006 1:26 PM
 

I am doing some research prior to a 3.2.2. upgrade to 3.3.5. Did you resolve this issue? Would you recommend an upgrade from 3.2.2 to 3.3.5? Thanks.


Forerunner Communications, LLC
DotNetNuke Integration Specialists

 
New Post
10/4/2006 10:57 AM
 
No, after getting no response for a few days, I referred to this problem in This thread  and did get some responses, but have not had time to track down the source of the error.

As far as upgrading goes, I did an upgrade on my intranet site without any problems,  But my ISP has a different method of setting up SQL object ownership than I have on my local server and that seems to have caused this problem.

If your tables are ALL owned by "dbo", you probably won't have this problem.  If your DNN tables are owned by your database user name, as in my case, you may have issues.  It seems that the particular table here can ONLY be owned by dbo, but some function in DNN is prependig the wrong owner name.  I have found this upgrade (actually any upgrade FROM 3.2.2) to be very frustrating.  I have tried a couple of times before with different versions, but had so many issues that I kept reverting back to 3.2.2 (thank god for backups). 

The change from NET 1.x to NET 2.x has been a factor and also caused issues, particularly related to permissisons for the DNN worker process.  Those were ISP issues and not DNN issues. That said, I have been resolving the issues little by little, and the site IS working now, which is further than I got with previous upgrade attempts.  I purchased several modules from Snowcovered that require at least a 3.3x DNN version and eventually know that I will have to move to a 4.x or higher version, so I have been anxious to get this version working.

My advice at this point, is that if you really don't need to upgrade and your current install is working well, then don't upgrade.  If you do decide to, then make sure you have good backups of both the entire fileset and the entire database. and that you know how to re-install it all if you have to.  Make usre you follow the upgrade instructions (modifying the release.config etc)  - I have a number of changes from the satandard web.config required by different modules like the Speerio file manager and FCK editor so it is important to keep track of those <!-- JJB: I use a comment with my initials in the XML code for every change so they are easy to track down during upgrades -->

I needed functionality that I cannot get with 3.2.2 so I really HAVE to upgrade.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SQL Execution Exception- Invalid object name: after upgrade to 3.3.5SQL Execution Exception- Invalid object name: after upgrade to 3.3.5


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out