HomeHome Product Discus... Product Discus...SmithCartSmithCartTrouble Upgrading - SQL errorTrouble Upgrading - SQL error
Previous
 
Next
New Post
12/5/2011 2:06 PM
 

Hi,

I have had a lot of trouble getting updated versions installed. I tried 4.67, and earlier, and I keep getting this. Any ideas on how to get around it?

Thanks!

Steve

 

SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'VariantCost' in table 'dbo.Smith_SavedCartDetail' is specified more than once. 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) ALTER TABLE dbo.Smith_SavedCartDetail ADD VariantCost MONEY Default(0) Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'VariantCost' in table 'dbo.Smith_ShoppingCart' is specified more than once. 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) ALTER TABLE dbo.Smith_ShoppingCart ADD VariantCost decimal(10,2) Default(0) Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'Description' in table 'dbo.Smith_VariantMatrixItem' is specified more than once. 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) ALTER TABLE dbo.Smith_VariantMatrixItem ADD Description nvarchar(500) Default('') Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'UOM' in table 'dbo.Smith_VariantMatrixItem' is specified more than once. 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) ALTER TABLE dbo.Smith_VariantMatrixItem ADD UOM nvarchar(50) Default('') Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'Notes' in table 'dbo.Smith_VariantMatrixItem' is specified more than once. 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) ALTER TABLE dbo.Smith_VariantMatrixItem ADD Notes ntext Default('') Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'RecurringStartDate' in table 'dbo.Smith_Products' is specified more than once. 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) ALTER TABLE dbo.Smith_Products ADD RecurringStartDate varchar(15) Default('') Null System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'ExcludeVariantRecur' in table 'dbo.Smith_Products' is specified more than once. 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) ALTER TABLE dbo.Smith_Products ADD ExcludeVariantRecur BIT Default(0) Null

 
New Post
12/5/2011 5:19 PM
 
Hi Steve,

Is this a clean install or an upgrade?

Thanks,
 
New Post
12/5/2011 5:56 PM
 
Hi Kevin,

It is an upgrade. I think I have 4.42 installed. I jumped ahead to 4.67, got the error, rolled things back, and tried the first one up from .42, and the error is the same both times. This is odd, as I never had this before.
 
New Post
12/5/2011 6:18 PM
 
If you dont have any data in your SavedCartDetail table try deleting the column "VariantCost" in table SavedCartDetail before upgrading again. I recommend doing the upgrade in a test environment first to test it out first and as always make sure you have a full backup on your live site before installing on live.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
12/8/2011 10:36 AM
 
Finally got it to work. I would keep deleting table columns, and find a new error, then I would go back and have to keep deleting the columns over again.

I finally edited out all the ALTER TABLE lines in 04.40.00.SqlDataProvider, and it installed. The following were the lines I removed:

ALTER TABLE {databaseOwner}{objectQualifier}Smith_SavedCartDetail ADD VariantCost MONEY Default(0) Null
GO

ALTER TABLE {databaseOwner}{objectQualifier}Smith_ShoppingCart ADD VariantCost decimal(10,2) Default(0) Null
GO


ALTER TABLE {databaseOwner}{objectQualifier}Smith_VariantMatrixItem ADD Description nvarchar(500) Default('') Null
GO

ALTER TABLE {databaseOwner}{objectQualifier}Smith_VariantMatrixItem ADD UOM nvarchar(50) Default('') Null
GO

ALTER TABLE {databaseOwner}{objectQualifier}Smith_VariantMatrixItem ADD Notes ntext Default('') Null
GO

ALTER TABLE {databaseOwner}{objectQualifier}Smith_Products ADD RecurringStartDate varchar(15) Default('') Null
GO

ALTER TABLE {databaseOwner}{objectQualifier}Smith_Products ADD ExcludeVariantRecur BIT Default(0) Null
GO
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartTrouble Upgrading - SQL errorTrouble Upgrading - SQL error