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...DNN Upgrade from 7.03.04 to 7.04.00DNN Upgrade from 7.03.04 to 7.04.00
Previous
 
Next
New Post
3/2/2015 3:48 AM
 

Hello,

I have a GoDaddy shared hosting account.  I'm trying to upgrade my DNN instance from 7.03.04 to 7.04.00 and I'm getting the following error:

 

25% ERROR occured -
System.Data.SqlClient.SqlException (0x80131904): User does not have permission to alter database 'OBibleStudy', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at
System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at
DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:72502b16-b489-4167-ba29-d484e67af68a Error Number:5011,State:9,
Class:14
 /************************************************************/
 /***** SqlDataProvider *****/
 /***** *****/
 /***** *****/
 /***** Note: To manually execute this script you must *****/
 /***** perform a search and replace operation *****/
 /***** for dbo. and *****/
 /***** *****/
 /************************************************************/
 /***** DNN-6159: update database compatibility to sql 2008 when its below than 2008. *****/
DECLARE @ProductEdition INT
SET @ProductEdition = CAST(ServerProperty('EngineEdition') as INT)

IF (@ProductEdition <> 5)
BEGIN
 DECLARE @Name NVARCHAR(260), @CompatibilityLevel INT
 SELECT @Name = DB_NAME()
 SELECT @CompatibilityLevel = compatibility_level FROM sys.databases WHERE name = @Name
 
 IF @CompatibilityLevel <= 100
 BEGIN
  DECLARE @sql NVARCHAR(max)
  SELECT @sql = N'ALTER DATABASE [' + @Name + '] SET COMPATIBILITY_LEVEL = 100'
  EXECUTE sp_executesql @sql
 END
END

 

It seems that it's having trouble with the "ALTER Database" statement.  Do I need any special permissions for this?

 

This is happening on 2 of my hosting accounts...  Any help would be apperciated.

Thanks!

 

Fady

 
New Post
3/2/2015 4:22 AM
 
there seem to be missing permissions, please make sure the user used to Access the database has dbowner permission for the database - or use a second account for updates (specify in SQL section of your web.config)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/2/2015 11:30 AM
 

Thanks for the quick response.  The account has permissions since I was able to do an alter table statement.  I also called the GoDaddy support and they verified that the account is a db owner.  Do I need root permissions to do an Alter Database statement?

 

I noticed that this is the first DNN Upgrade ever that has an ALTER DATABASE sql statement.  Perhaps this requires extra privileges that I don't have?

 
New Post
3/2/2015 11:56 AM
 
dbowner should be granted "ALTER" permission to the database, however, you may workaround by editing compatibility level yourself.
DNN requires Compatibility level 100 (SQL Server 2008), for performance reasons you should set the value to max. available.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/2/2015 5:26 PM
 

In my case the database COMPATIBILITY_LEVEL was already set to 100.  I modified the upgrade script to take out this section only and tried again and it seemed to work for me.

 

Thanks again for the help!

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN Upgrade from 7.03.04 to 7.04.00DNN Upgrade from 7.03.04 to 7.04.00


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