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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Steps to upgrade manuallySteps to upgrade manually
Previous
 
Next
New Post
8/30/2011 5:48 AM
 
Hi everybody, due to our security policy, our DNN DB user can't create or drop tables. We've tried to upgrade using the standard procedure in our Beta environment and, of course, we got some errors due to this. So we'd like to upgrade DNN let only our DBA running the DB scripts. Can anybody describe a procedure to upgrade from a version to another manually? (we're upgrading from 5.6.1 to 6.0.0, but a "general" guide, if exists, I guess will be usefull). I.e.: - is there something to change in the *.config files? - which scripts must be ran by our DBA? And in which order? And "when" in the procedure? - are there others scripts to run to change something in the file system? or is it enough copying the files from the Zip? Thank you very much for any contribute. Max
 
New Post
8/30/2011 11:42 AM
 
I've done this before, what you need to do is put the upgrade files in and run it. It will say there was an error see the 5.x.x.log.resources for more details. Go in and find that script. It will give any of the sql that errored along with what the error was. Just take that log and paste it into sql server management studio. Then, remove the error stuff and edit the sql so it will run as a query. Execute that query and it should work for you. We host over 60 dnn sites so I've done it quite a few times. It can get tricky so MAKE SURE you have a backup.
 
New Post
8/30/2011 11:44 AM
 
Here's an example for you. I just tried to upgrade from 6.0 to 6.0.1 and got an error. I open that resources file and it says this

System.Data.SqlClient.SqlException: There is already an object named 'GetFileContent' in the database.
   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)






CREATE PROCEDURE dbo.[GetFileContent]
@FileId int
AS
BEGIN
SELECT Content
FROM dbo.[Files]
WHERE FileId = @FileId
END

So what I did is remove the top part about the error, then change the bottom part to this
ALTER PROCEDURE dbo.[GetFileContent]
@FileId int
AS
BEGIN
SELECT Content
FROM dbo.[Files]
WHERE FileId = @FileId
END

I then just executed that script and everything is working fine.
 
New Post
8/31/2011 9:15 AM
 
Thank you.
Honestly I hoped there was a certified procedure. But we will give it a try.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Steps to upgrade manuallySteps to upgrade manually


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