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 ...DNN_Platform_07.02.02_Install.zipDNN_Platform_07.02.02_Install.zip
Previous
 
Next
New Post
6/5/2014 8:19 AM
 

Hello,

My PC configurations : Windows 8, SQL 2008 R2, IIS 8

I try to new install on my local pc by using "DNN_Platform_07.02.02_Install.zip". I followed these steps:

1. Unzipped the zip file

2.Copied files into my new created directory named "dnn070202"

3.Created a new database called "dnn070202" with Latin1_General_CI_AS collation.

4.Created a new web site called "dnn070202" on IIS.

5.Checked the application pool called "dnn070202" Works over net framework v4

6.Given full access to "IIS Apppool\dnn070202" on directory "dnn070202" and db_owner on database.

After all, i open website to be install, but installation process never pass the database installation step, and getting error always. what is the problem?

The product is being installed. Thanks for your patience...

0:05 Minutes   |   15% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Skins' in the database. at System.Data.SqlClient.SqlConnection. (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) 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:1c6112e0-9f84-420a-915b-9db75c72378e CREATE TABLE dbo.[Skins] ( [SkinID] [int] NOT NULL IDENTITY(1, 1), [SkinPackageID] [int] NOT NULL, [SkinSrc] [nvarchar] (250) NOT NULL ) System.Data.SqlClient.SqlException (0x80131904): Table 'Skins' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at

 

 

 
New Post
6/5/2014 8:32 AM
 
The clue is in the message - "There is already an object named 'Skins' in the database"

This is at least your second attempt. The first attempt added some objects to the database. You need to start again with the database properly empty.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
6/5/2014 8:53 AM
 

Hello Richard,

I tried the new installation. i got first error like this, after corrected it and run on db i got the error "Skins". Is there any case to make database installation by sql scripts and skip that step?

15% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): Must declare the scalar variable "@portalid". Incorrect syntax near the keyword 'ELSE'. 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) 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:90277e70-6811-4c68-9ca1-0a66e3bec89d CREATE procedure dbo.GetTabPermissionsByPortal @PortalID int AS IF @portalid is not null BEGIN SELECT * FROM dbo.vw_TabPermissions WHERE PortalID = @PortalID END ELSE BEGIN SELECT * FROM dbo.vw_TabPermissions WHERE PortalID IS NULL END System.Data.SqlClient.SqlException (0x80131904): Must declare the scalar variable "@id". 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) 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:0d34ba32-155a-4e59-ab1f-29cb691318b1 CREATE PROCEDURE dbo.[Mobile_DeleteRedirection] @Id INT AS DELETE FROM dbo.Mobile_RedirectionRules WHERE RedirectionId = @id DELETE FROM dbo.Mobile_Redirections WHERE Id = @Id System.Data.SqlClient.SqlException (0x80131904): Must declare the scalar variable "@id". 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) 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:b74326dc-282e-49c2-9b65-da94dc13eaea CREATE PROCEDURE dbo.[Mobile_DeleteRedirectionRule] @Id INT AS DELETE FROM dbo.Mobile_RedirectionRules WHERE Id = @id System.Data.SqlClient.SqlException (0x80131904): Must declare the scalar variable "@id". Must declare the scalar variable "@id". Must declare the scalar variable "@id". 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) 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:9637b793-fadc-41ff-873e-4041d1b5e128 CREATE PROCEDURE dbo.[AddSearchItemWord] @SearchItemID INT, @SearchWordsID INT, @Occurrences INT AS DECLARE @ID INT SELECT @id = SearchItemWordId FROM dbo.SearchItemWord WHERE SearchItemId = @SearchItemID AND SearchWordsId = @SearchWordsID IF @ID IS NULL BEGIN INSERT INTO dbo.SearchItemWord ([SearchItemId], [SearchWordsId], [Occurrences]) VALUES (@SearchItemID, @SearchWordsID, @Occurrences) SELECT Scope_identity() END ELSE BEGIN UPDATE dbo.SearchItemWord SET Occurrences = @Occurrences WHERE SearchItemWordId = @id AND Occurrences <> @Occurrences SELECT @id END System.Data.SqlClient.SqlException (0x80131904): Must declare the scalar variable "@AdminTabid". 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) 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:6a76ca11-aa0f-4bab-847d-fcda9475870d CREATE PROCEDURE dbo.[UpdatePortalInfo] @PortalID int, @PortalGroupID int, @PortalName nvarchar(128), @LogoFile nvarchar(50), @FooterText nvarchar(100), @ExpiryDate datetime, @UserRegistration int, @BannerAdvertising int, @Currency char(3), @AdministratorId int, @HostFee money, @HostSpace int, @PageQuota int, @UserQuota int, @PaymentProcessor nvarchar(50), @ProcessorUserId nvarchar(50), @ProcessorPassword nvarchar(50), @Description nvarchar(500), @KeyWords nvarchar(500), @BackgroundFile nvarchar(50), @SiteLogHistory int, @SplashTabId int, @HomeTabId int, @LoginTabId int, @RegisterTabId int, @UserTabId int, @SearchTabId int, @DefaultLanguage nvarchar(10), @HomeDirectory varchar(100), @LastModifiedByUserID int, @CultureCode nvarchar(50) AS UPDATE dbo.Portals SET PortalGroupID = @PortalGroupID, ExpiryDate = @ExpiryDate, UserRegistration = @UserRegistration, BannerAdvertising = @BannerAdvertising, Currency = @Currency, AdministratorId = @AdministratorId, HostFee = @HostFee, HostSpace = @HostSpace, PageQuota = @PageQuota, UserQuota = @UserQuota, PaymentProcessor = @PaymentProcessor, ProcessorUserId = @ProcessorUserId, ProcessorPassword = @ProcessorPassword, SiteLogHistory = @SiteLogHistory, DefaultLanguage = @DefaultLanguage, HomeDirectory = @HomeDirectory, LastModifiedByUserID = @LastModifiedByUserID, LastModifiedOnDate = getdate() WHERE PortalId = @PortalID IF EXISTS (SELECT * FROM dbo.PortalLocalization WHERE PortalId = @PortalID AND CultureCode = @CultureCode) BEGIN UPDATE dbo.PortalLocalization SET PortalName = @PortalName, LogoFile = @LogoFile, FooterText = @FooterText, Description = @Description, KeyWords = @KeyWords, BackgroundFile = @BackgroundFile, HomeTabId = @HomeTabId, LoginTabId = @LoginTabId, RegisterTabId = @RegisterTabId, UserTabId = @UserTabId, SplashTabId = @SplashTabId, SearchTabId = @SearchTabId, LastModifiedByUserID = @LastModifiedByUserID, LastModifiedOnDate = getdate() WHERE PortalId = @PortalID AND CultureCode = @CultureCode END ELSE BEGIN DECLARE @AdminTabId int SET @AdminTabId = (SELECT AdminTabId FROM dbo.PortalLocalization WHERE PortalID = @PortalID AND CultureCode='en-US') INSERT INTO dbo.PortalLocalization ( [PortalID], [CultureCode], [PortalName], [LogoFile], [FooterText], [Description], [KeyWords], [BackgroundFile], [HomeTabId], [LoginTabId], [UserTabId], [AdminTabId], [SplashTabId], [SearchTabId], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate] ) VALUES ( @PortalID, @CultureCode, @PortalName, @LogoFile, @FooterText, @Description, @KeyWords, @BackgroundFile, @HomeTabId , @LoginTabId , @UserTabId, @AdminTabid, @SplashTabId , @SearchTabId, -1, getdate(), -1, getdate() ) END System.Data.SqlClient.SqlException (0x80131904): XQuery: Unable to resolve sql:variable('@userid'). The variable must be declared as a scalar TSQL variable. 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) 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:c74344ff-6322-4aca-82bc-5ecdcdcc509f CREATE PROCEDURE dbo.[Journal_Comment_Like] @JournalId int, @CommentId int, @UserId int, @UserName nvarchar(50) AS DECLARE @cxml xml SET @cxml = (SELECT CommentXML FROM dbo.[Journal_Comment] WHERE CommentId = @CommentId AND JournalId = @JournalId) IF @cxml IS NULL BEGIN DECLARE @x xml SET @x = '<root></root>'; UPDATE dbo.[Journal_Comments] SET CommentXML = @x WHERE JournalId = @JournalId AND CommentId = @CommentId END IF EXISTS(SELECT CommentId FROM dbo.[Journal_Comments] WHERE JournalId = @JournalId AND CommentId = @CommentId AND CommentXML.exist('/root/likes/u[@uid=sql:variable("@userid")]') = 1) BEGIN UPDATE dbo.[Journal_Comments] SET CommentXML.modify('delete (/root/likes/u[@uid=sql:variable("@UserId")])') WHERE JournalId = @JournalId AND CommentId = @CommentId AND journalxml.exist('/root/likes/u[@uid=sql:variable("@UserId")]') = 1 END ELSE BEGIN BEGIN IF NOT EXISTS(SELECT CommentId FROM dbo.[Journal_Comments] WHERE JournalId = @JournalId AND CommentId = @CommentID AND CommentXML.exist('/root/likes') = 1) BEGIN UPDATE dbo.[Journal_Comments] SET CommentXML.modify('insert <likes /> as last into (/root)[1]') WHERE JournalId = @JournalId AND CommentId = @CommentId AND CommentXML.exist('/root') = 1 END END BEGIN UPDATE dbo.[Journal_Comments] SET CommentXML.modify('insert <u uid="{xs:string(sql:variable("@UserId"))}" un="{xs:string(sql:variable("@UserName"))}" /> as last into (/root/likes)[1]') Where JournalId = @JournalId AND CommentId = @CommentId AND CommentXML.exist('/root/likes') = 1 END END System.Data.SqlClient.SqlException (0x80131904): XQuery: Unable to resolve sql:variable('@userid'). The variable must be declared as a scalar TSQL variable. 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) 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:e9fadbbe-09ef-4baa-941f-1746cd4f28b9 CREATE PROCEDURE dbo.[Journal_Like] @JournalId int, @UserId int, @UserName nvarchar(50) AS IF NOT EXISTS (SELECT JournalId from dbo.[Journal_Data] WHERE JournalId = @JournalId) BEGIN DECLARE @x xml SET @x = '<items><item /></items>'; INSERT INTO dbo.[Journal_Data] (JournalId, JournalXML) VALUES (@JournalId, @x) END IF EXISTS(SELECT j.JournalId FROM dbo.Journal as j INNER JOIN dbo.Journal_Data as jx ON j.JournalId = jx.JournalId WHERE j.JournalId = @JournalId AND jx.journalxml.exist('/items/likes/u[@uid=sql:variable("@userid")]') = 1) BEGIN UPDATE dbo.Journal_Data SET JournalXML.modify('delete (/items/likes/u[@uid=sql:variable("@UserId")])') WHERE JournalId = @JournalId AND journalxml.exist('/items/likes/u[@uid=sql:variable("@UserId")]') = 1 END ELSE BEGIN BEGIN IF NOT EXISTS(SELECT JournalId FROM dbo.Journal_Data WHERE JournalId = @JournalId AND journalxml.exist('/items/likes') = 1) BEGIN UPDATE dbo.Journal_Data SET JournalXML.modify('insert <likes /> as last into (/items)[1]') WHERE JournalId = @JournalId AND journalxml.exist('/items') = 1 END END BEGIN UPDATE dbo.Journal_Data SET JournalXML.modify('insert <u uid="{xs:string(sql:variable("@UserId"))}" un="{xs:string(sql:variable("@UserName"))}" /> as last into (/items/likes)[1]') Where JournalId = @JournalId AND journalxml.exist('/items/likes') = 1 END END System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'JournalId'. 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) 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:bd36704f-4caa-4f0e-a238-66add3465f28 CREATE PROCEDURE dbo.[Journal_ListForGroup] @PortalId int, @ModuleId int, @CurrentUserId int, @GroupId int, @RowIndex int, @MaxRows int AS DECLARE @EndRow int SET @EndRow = @RowIndex + @MaxRows; DECLARE @j TABLE(id int IDENTITY, journalid int, datecreated datetime) IF EXISTS(SELECT * from dbo.[Journal_TypeFilters] WHERE ModuleId = @ModuleId) INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey AND (js.SecurityKey = 'R' + CAST(@GroupId as nvarchar(100)) OR js.SecurityKey = 'E') WHERE j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId AND jt.GroupId = @GroupId INNER JOIN dbo.[Journal_TypeFilters] as jf ON jf.JournalTypeId = jt.JournalTypeId AND jf.ModuleId = @ModuleId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; ELSE INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey AND (js.SecurityKey = 'R' + CAST(@GroupId as nvarchar(100)) OR js.SecurityKey = 'E') WHERE j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId AND jt.GroupId = @GroupId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; WITH journalItems AS ( SELECT j.JournalId, ROW_NUMBER() OVER (ORDER BY j.JournalId DESC) AS RowNumber FROM dbo.[Journal] as j INNER JOIN @j as jtmp ON jtmp.JournalId = j.JournalId WHERE j.PortalId = @PortalId ) SELECT j.JournalId, j.JournalTypeId, j.Title, j.Summary, j.UserId, j.DateCreated, j.DateUpdated, j.PortalId, j.ProfileId, j.GroupId, j.ObjectKey, j.AccessKey, "JournalOwner" = '<entity><id>' + CAST(r.RoleId as nvarchar(150)) + '</id><name><![CDATA[' + r.RoleName + ']]></name></entity>', "JournalAuthor" = CASE WHEN ISNULL(a.UserId,-1) >0 THEN '<entity><id>' + CAST(a.UserId as nvarchar(150)) + '</id><name><![CDATA[' + a.DisplayName + ']]></name></entity>' ELSE '' END, "JournalOwnerId" = ISNULL(j.ProfileId,j.UserId), jt.Icon, jt.JournalType, "Profile" = CASE WHEN j.ProfileId > 0 THEN '<entity><id>' + CAST(p.UserID as nvarchar(150)) + '</id><name><![CDATA[' + p.DisplayName + ']]></name><vanity></vanity></entity>' ELSE '' END, jd.JournalXML, j.ContentItemId, j.ItemData, RowNumber FROM journalItems as ji INNER JOIN dbo.[Journal] as j ON j.JournalId = ji.JournalId INNER JOIN dbo.[Journal_Types] as jt ON jt.JournalTypeId = j.JournalTypeId INNER JOIN dbo.[Roles] as r ON j.GroupId = r.RoleId LEFT OUTER JOIN dbo.[Journal_Data] as jd on jd.JournalId = j.JournalId LEFT OUTER JOIN dbo.[Users] AS p ON j.ProfileId = p.UserID LEFT OUTER JOIN dbo.[Users] AS a ON j.UserId = a.UserID WHERE RowNumber BETWEEN @RowIndex AND @EndRow ORDER BY RowNumber ASC; System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'JournalId'. 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) 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:f241b5b9-32ad-4f86-b783-cb267ed97dcb CREATE PROCEDURE dbo.[Journal_ListForSummary] @PortalId int, @ModuleId int, @CurrentUserId int, @RowIndex int, @MaxRows int AS DECLARE @EndRow int SET @EndRow = @RowIndex + @MaxRows; DECLARE @j TABLE(id int IDENTITY, journalid int, datecreated datetime) IF EXISTS(SELECT * from dbo.[Journal_TypeFilters] WHERE ModuleId = @ModuleId) INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey WHERE j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId INNER JOIN dbo.[Journal_TypeFilters] as jf ON jf.JournalTypeId = jt.JournalTypeId AND jf.ModuleId = @ModuleId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; ELSE INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey WHERE j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; WITH journalItems AS ( SELECT j.JournalId, ROW_NUMBER() OVER (ORDER BY j.JournalId DESC) AS RowNumber FROM dbo.[Journal] as j INNER JOIN @j as jtmp ON jtmp.JournalId = j.JournalId WHERE j.PortalId = @PortalId ) SELECT j.JournalId, j.JournalTypeId, j.Title, j.Summary, j.UserId, j.DateCreated, j.DateUpdated, j.PortalId, j.ProfileId, j.GroupId, j.ObjectKey, j.AccessKey, "JournalOwner" = '<entity><id>' + CAST(p.UserId as nvarchar(150)) + '</id><name><![CDATA[' + p.DisplayName + ']]></name></entity>', "JournalAuthor" = CASE WHEN ISNULL(a.UserId,-1) >0 THEN '<entity><id>' + CAST(a.UserId as nvarchar(150)) + '</id><name><![CDATA[' + a.DisplayName + ']]></name></entity>' ELSE '' END, "JournalOwnerId" = ISNULL(j.ProfileId,j.UserId), jt.Icon, jt.JournalType, "Profile" = CASE WHEN j.ProfileId > 0 THEN '<entity><id>' + CAST(p.UserID as nvarchar(150)) + '</id><name><![CDATA[' + p.DisplayName + ']]></name><vanity></vanity></entity>' ELSE '' END, jd.JournalXML, j.ContentItemId, j.ItemData, RowNumber FROM journalItems as ji INNER JOIN dbo.[Journal] as j ON j.JournalId = ji.JournalId INNER JOIN dbo.[Journal_Types] as jt ON jt.JournalTypeId = j.JournalTypeId LEFT OUTER JOIN dbo.[Journal_Data] as jd on jd.JournalId = j.JournalId LEFT OUTER JOIN dbo.[Users] AS p ON j.ProfileId = p.UserID LEFT OUTER JOIN dbo.[Users] AS a ON j.UserId = a.UserID WHERE RowNumber BETWEEN @RowIndex AND @EndRow ORDER BY RowNumber ASC; System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'JournalId'. 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) 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:ba2735db-d55f-4fcf-933a-a0e27e316044 CREATE PROCEDURE dbo.[Journal_ListForProfile] @PortalId int, @ModuleId int, @CurrentUserId int, @ProfileId int, @RowIndex int, @MaxRows int AS DECLARE @EndRow int SET @EndRow = @RowIndex + @MaxRows; DECLARE @j TABLE(id int IDENTITY, journalid int, datecreated datetime) IF EXISTS(SELECT * from dbo.[Journal_TypeFilters] WHERE ModuleId = @ModuleId) INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey WHERE j.ProfileId = @ProfileId AND j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId INNER JOIN dbo.[Journal_TypeFilters] as jf ON jf.JournalTypeId = jt.JournalTypeId AND jf.ModuleId = @ModuleId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; ELSE INSERT INTO @j SELECT j.journalid, jt.datecreated from ( SELECT DISTINCT js.JournalId from dbo.[Journal] as j INNER JOIN dbo.[Journal_Security] as js ON js.JournalId = j.JournalId INNER JOIN dbo.[Journal_User_Permissions](@PortalId,@CurrentUserId ,1) as t ON t.seckey = js.SecurityKey WHERE j.ProfileId = @ProfileId AND j.PortalId = @PortalId ) as j INNER JOIN dbo.[Journal] jt ON jt.JournalId = j.JournalId AND jt.PortalId = @PortalId ORDER BY jt.DateCreated DESC, jt.JournalId DESC; WITH journalItems AS ( SELECT j.JournalId, ROW_NUMBER() OVER (ORDER BY j.JournalId DESC) AS RowNumber FROM dbo.[Journal] as j INNER JOIN @j as jtmp ON jtmp.JournalId = j.JournalId WHERE j.PortalId = @PortalId AND j.ProfileId = @ProfileId ) SELECT j.JournalId, j.JournalTypeId, j.Title, j.Summary, j.UserId, j.DateCreated, j.DateUpdated, j.PortalId, j.ProfileId, j.GroupId, j.ObjectKey, j.AccessKey, "JournalOwner" = '<entity><id>' + CAST(p.UserId as nvarchar(150)) + '</id><name><![CDATA[' + p.DisplayName + ']]></name></entity>', "JournalAuthor" = CASE WHEN ISNULL(a.UserId,-1) >0 THEN '<entity><id>' + CAST(a.UserId as nvarchar(150)) + '</id><name><![CDATA[' + a.DisplayName + ']]></name></entity>' ELSE '' END, "JournalOwnerId" = ISNULL(j.ProfileId,j.UserId), jt.Icon, jt.JournalType, "Profile" = CASE WHEN j.ProfileId > 0 THEN '<entity><id>' + CAST(p.UserID as nvarchar(150)) + '</id><name><![CDATA[' + p.DisplayName + ']]></name><vanity></vanity></entity>' ELSE '' END, jd.JournalXML, j.ContentItemId, j.ItemData, RowNumber FROM journalItems as ji INNER JOIN dbo.[Journal] as j ON j.JournalId = ji.JournalId INNER JOIN dbo.[Journal_Types] as jt ON jt.JournalTypeId = j.JournalTypeId LEFT OUTER JOIN dbo.[Journal_Data] as jd on jd.JournalId = j.JournalId LEFT OUTER JOIN dbo.[Users] AS p ON j.ProfileId = p.UserID LEFT OUTER JOIN dbo.[Users] AS a ON j.UserId = a.UserID WHERE RowNumber BETWEEN @RowIndex AND @EndRow ORDER BY RowNumber ASC;

 
New Post
6/5/2014 9:29 AM
 
I don't think so. The installer installs the database objects. Therefore you start with an empty database.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
6/5/2014 9:40 AM
 
sure i started a new empty database, but i got that error. do you know the path that installation read sql scripts and run? maybe can be case sensivity problem.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN_Platform_07.02.02_Install.zipDNN_Platform_07.02.02_Install.zip


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