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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DB Error upgrading from 4.9.0 to 4.9.1DB Error upgrading from 4.9.0 to 4.9.1
Previous
 
Next
New Post
2/8/2009 7:01 PM
 

Hi All,

Can't find if this has been covered before but, I just upgraded from 4.9.0 to 4.9.1 and the DB portion failed.  The error in the 04.09.01.log file was -

System.Data.SqlClient.SqlException: Server user 'dnn_user' is not a valid user in database 'msdb'.
 

Looks like the install on the procedure to read the db backup information failed (part of the new dashboard tool).

This is on a remote server and shared SQL 2000 db.  I don't have server admin privs on the db, so therefore may indeed not have access to the msdb database.  

Is there a workaround for this? 

Thanks,

Greg C

 
New Post
3/14/2009 4:37 PM
 

I hacked the Dashboard_GetDBBackups sproc to work around this.  But there could be 2 options here:

1)  Modify the Dashboard_getDBBackups sproc-----In HOST->SQL, execute the following SQL script (replace the {databaseOwner} and {objectQualifier} with yours):

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}Dashboard_GetDbBackups]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 DROP PROCEDURE {databaseOwner}[{objectQualifier}Dashboard_GetDbBackups]
GO

CREATE procedure {databaseOwner}[{objectQualifier}Dashboard_GetDbBackups]
AS

/*replaced 'FROM msdb..backupset WHERE database_name=DB_NAME() ' to dummyrecordset*/

 SELECT TOP 20 
name,
backup_start_date as StartDate,
backup_finish_date as FinishDate,
backup_size as size,
database_name,
CASE type
WHEN 'D' THEN 'Database'
WHEN 'I' THEN 'Differential database'
WHEN 'L' THEN 'Log'
WHEN 'F' THEN 'File or filegroup'
WHEN 'G' THEN 'Differential file'
WHEN 'P' THEN 'Partial'
WHEN 'Q' THEN 'Differential partial'
END as BackupType
FROM
(select '' as name, getdate() as backup_start_date, getdate() as backup_finish_date, cast(0 as numeric(20,0)) as backup_size, '' as database_name, 'D' as type) q1
WHERE database_name=DB_NAME()
/*FROM
msdb..backupset
WHERE
database_name = DB_NAME()
ORDER BY backup_start_date DESC */
GO

OR THIS MAY ALSO WORK--

2)  Update the Dashboard_Controls table by doing the following:
In HOST->SQL, execute the following SQL (replace the {objectqualifier} with yours if you have one):

UPDATE {objectqualifier}Dashboard_Controls SET IsEnabled=False WHERE DashboardControlKey='Database'

 

 

 
New Post
3/18/2009 10:27 PM
 

greg croasdill wrote
 

Hi All,

Can't find if this has been covered before but, I just upgraded from 4.9.0 to 4.9.1 and the DB portion failed.  The error in the 04.09.01.log file was -

System.Data.SqlClient.SqlException: Server user 'dnn_user' is not a valid user in database 'msdb'.
 

Looks like the install on the procedure to read the db backup information failed (part of the new dashboard tool).

This is on a remote server and shared SQL 2000 db.  I don't have server admin privs on the db, so therefore may indeed not have access to the msdb database.  

Is there a workaround for this? 

Thanks,

Greg C

Call you hosting vendor and ask them to add dnn_user account to database msdb.


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DB Error upgrading from 4.9.0 to 4.9.1DB Error upgrading from 4.9.0 to 4.9.1


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