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 ...Upgrade 5.01.00 to 5.01.01 sqldataprovider errorUpgrade 5.01.00 to 5.01.01 sqldataprovider error
Previous
 
Next
New Post
8/9/2009 11:18 AM
 

Hi,

Just upgraded a 5.01.00 instance to a 5.01.01 and got a single SqlDataProvider Error.  The associated log file (05.01.01.log) reads as below.  Having checked my website there don't appear to be any problems and upgrade otherwise seems to have worked, but obviousy would prefer if the install hadn't errored.

Any assistance would be apreciated.

Cheers, Chris.

Log file follows:

System.Data.SqlClient.SqlException: Constraint 'DF_Packages_IsSystemPackage' does not belong to table 'Packages'.
Could not drop constraint. See previous errors.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(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)

 

/* Fix bug in drop index in 5.0 script - replay failed part of script */
/**********************************************************************/

ALTER TABLE parkrun.Packages DROP CONSTRAINT DF_Packages_IsSystemPackage

CREATE TABLE parkrun.Tmp_Packages
 (
 PackageID int NOT NULL IDENTITY (1, 1),
 PortalID int NULL,
 Name nvarchar(128) NOT NULL,
 FriendlyName nvarchar(250) NOT NULL,
 [Description] nvarchar(2000) NULL,
 PackageType nvarchar(100) NOT NULL,
 [Version] nvarchar(50) NOT NULL,
 License ntext NULL,
 Manifest ntext NULL,
 [Owner] nvarchar(100) NULL,
 Organization nvarchar(100) NULL,
 Url nvarchar(250) NULL,
 Email nvarchar(100) NULL,
 ReleaseNotes ntext NULL,
 IsSystemPackage bit NOT NULL,
 CreatedByUserID int NULL,
 CreatedOnDate datetime NULL,
 LastModifiedByUserID int NULL,
 LastModifiedOnDate datetime NULL
 )
 
ALTER TABLE parkrun.Tmp_Packages ADD CONSTRAINT DF_Packages_IsSystemPackage DEFAULT ((0)) FOR IsSystemPackage

SET IDENTITY_INSERT parkrun.Tmp_Packages ON

IF EXISTS(SELECT * FROM parkrun.Packages)
  EXEC('INSERT INTO parkrun.Tmp_Packages (PackageID, PortalID, Name, FriendlyName, Description, PackageType, Version, License, Manifest, Owner, Organization, Url, Email, ReleaseNotes, IsSystemPackage, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
  SELECT PackageID, PortalID, Name, FriendlyName, Description, PackageType, Version, License, Manifest, Owner, Organization, Url, Email, ReleaseNotes, IsSystemPackage, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate FROM parkrun.Packages WITH (HOLDLOCK TABLOCKX)')

SET IDENTITY_INSERT parkrun.Tmp_Packages OFF

ALTER TABLE parkrun.Assemblies DROP CONSTRAINT FK_PackageAssemblies_PackageAssemblies

ALTER TABLE parkrun.DesktopModules DROP CONSTRAINT FK_DesktopModules_Packages

ALTER TABLE parkrun.LanguagePacks DROP CONSTRAINT FK_LanguagePacks_Packages

DROP TABLE parkrun.Packages

EXECUTE sp_rename N'parkrun.Tmp_Packages', N'Packages', 'OBJECT'

ALTER TABLE parkrun.Packages ADD CONSTRAINT PK_Packages PRIMARY KEY CLUSTERED ( PackageID )

CREATE UNIQUE NONCLUSTERED INDEX IX_Packages ON parkrun.Packages ( Owner, Name, PortalID )

ALTER TABLE parkrun.LanguagePacks ADD CONSTRAINT FK_LanguagePacks_Packages FOREIGN KEY ( PackageID ) REFERENCES parkrun.Packages ( PackageID ) ON UPDATE  NO ACTION ON DELETE  CASCADE
 
ALTER TABLE parkrun.DesktopModules WITH NOCHECK ADD CONSTRAINT FK_DesktopModules_Packages FOREIGN KEY ( PackageID ) REFERENCES parkrun.Packages ( PackageID ) ON UPDATE  CASCADE ON DELETE  CASCADE

ALTER TABLE parkrun.Assemblies ADD CONSTRAINT FK_PackageAssemblies_PackageAssemblies FOREIGN KEY ( PackageID ) REFERENCES parkrun.Packages ( PackageID ) ON UPDATE  NO ACTION ON DELETE  CASCADE

 

 
New Post
8/10/2009 6:08 AM
 

What are your settings in sqldataprovider section of web.config file for databaseOwner and objectQualifier?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/10/2009 8:40 AM
 

Hi Sebastian,

the values are:

  objectQualifier="" databaseOwner="parkrun"

Just to pre-empt a further possible question - I have not edited the web.config file manually at all (not since original installation).

I installed as 5.0.1 without problem
upgraded to 5.1.0 without problem
and upgraded this time to 5.1.1 with just this (apparently) minor problem.

Cheers
Chris. 

 
New Post
8/17/2009 12:15 PM
 

Just wondered if anyone had any suggestions or comments on this error?

Cheers

Chris

 
New Post
8/17/2009 4:28 PM
 

 Hi Chris,

I am experiencing the same and reported that over here. Up till this moment I have had no luck to get passed this one. Just like you haven't touched the web.config at all and most certainly did not change the database owner. I used the upgrade package. 

In the meantime I have been able to upgrade (development machine) to DNN510 and therefore, this behavior seems to be introduced in the latest version. Even, when I tried to upgrade from DNN510 to DNN511 i ran into this behavior once again.

At least your not alone  (for what its worth). 


Regards,
Marc

www.biservices.eu for free nl-NL resourcepacks.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 5.01.00 to 5.01.01 sqldataprovider errorUpgrade 5.01.00 to 5.01.01 sqldataprovider error


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