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 ...SqlDataProvider ERROR! (and fix)SqlDataProvider ERROR! (and fix)
Previous
 
Next
New Post
9/28/2007 3:57 PM
 

Well, I upgraded from 4.5.5 to 4.6.0 and it FAILED to upgrade the database. As soon as that happened, my site went dead.

I have not fully revived my site, but I do have some insight that might be of interest to other users, as well as to the DotNetNuke developers.

I have found a couple bugs in the 4.06.00.SqlDataProvider file that is provided.

/* Create Assemblies Table */
/***************************/
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}Assemblies]') AND OBJECTPROPERTY(id, N'IsTable') = 1)
 BEGIN
  CREATE TABLE {databaseOwner}[{objectQualifier}Assemblies](
   [AssemblyID] [int] IDENTITY(1,1) NOT NULL,
   [PackageID]  [int] NOT NULL,
   [AssemblyName] [nvarchar](250) NOT NULL,
   [Version]  [nvarchar](20) NOT NULL,
   CONSTRAINT [PK_****PackageAssemblies] PRIMARY KEY CLUSTERED ([AssemblyID] ASC)
  )
  ALTER TABLE {databaseOwner}[{objectQualifier}Assemblies] 
   ADD CONSTRAINT [FK_****PackageAssemblies_PackageAssemblies] FOREIGN KEY([PackageID]) REFERENCES {databaseOwner}[{objectQualifier}Packages] ([PackageID]) 
 END
GO

The two sections with the **** are actually NOT included in the SQL. They should be replaced with the {objectQualifier} as they are for other FK and PK values. This happens a couple of times in the SQLprovider, and really messes up the installations...

And the same thing happens in the PackageTypes section

 

/* Create PackageTypes Table */
/*****************************/

IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}PackageTypes]') AND OBJECTPROPERTY(id, N'IsTable') = 1)
	BEGIN
		CREATE TABLE {databaseOwner}[{objectQualifier}PackageTypes]
			(
				[PackageType] [nvarchar](100) NOT NULL,
				[Description] [nvarchar](500) NOT NULL,
				[SecurityAccessLevel] [int] NOT NULL,
				CONSTRAINT [PK_****_PackageTypes_1] PRIMARY KEY CLUSTERED ( [PackageType] ASC )			
			)

		/* Add Auth_System Package Type */
		INSERT INTO {databaseOwner}{objectQualifier}PackageTypes
			( PackageType, Description, SecurityAccessLevel )
			VALUES ( 'Auth_System', 'Authentication System', 3 )
	END
GO

back

 
New Post
9/29/2007 4:09 PM
 

thus script has been corrected for DNN 4.6.1


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SqlDataProvider ERROR! (and fix)SqlDataProvider ERROR! (and fix)


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