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 Database installation problemDNN Database installation problem
Previous
 
Next
New Post
3/30/2016 9:13 AM
 

Trying to manual install DNN on Windows Server 2012 and using MsSQL Express 2012, my DNN database collation is Latin1_General_CI_AS

During database installation process i'm getting this error:

18% 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.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:e3cdd147-7ca3-4734-b351-a4cd7d48406c 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.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:e3cdd147-7ca3-4734-b351-a4cd7d48406c 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.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:e3cdd147-7ca3-4734-b351-a4cd7d48406c 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.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:e3cdd147-7ca3-4734-b351-a4cd7d48406c 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

 

And goes on... Really tired of this. Since yesterday im trying to solve this problem. I wish someone can help me.

Thanks

 

 
New Post
3/30/2016 1:18 PM
 
Is your Sql Server Express instance, or the database you are using, set up as case sensitive?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/31/2016 1:41 AM
 

Hello, thank you for your answer. instance i'm using. 

 
New Post
3/31/2016 4:25 AM
 
The important part of the question was "Is it set up as case sensitive?"

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/31/2016 6:35 AM
 

sorry forgot to answer that, Latin1_General_CI_AS i'm using. Which means i think Latin1-General, case-insensitive, accent-

sensitive. Should i pick case sensitive? 
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN Database installation problemDNN Database installation problem


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