SQL 4.3 upgrade script doubled tables

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 năm cách đây
Hi guys, after running the upgrade script to 4.3 & software migration to 4.3 anything seemed to be great.
But: Any table has a double entry added:
Old table:
sample.Product

New tables:
sample.Product AND
dbo.Product
Deleted all new dbo.xxx entries but they are restored automatically ?!

Any hints welcome!
3 năm cách đây
Did you move database to a new SQL Server?   It sounds like the current SQL user account your are connecting with has a default schema set to  'dbo', where previously the database was created under schema named 'sample'

tomsen wrote:
Hi guys, after running the upgrade script to 4.3 & software migration to 4.3 anything seemed to be great.
But: Any table has a double entry added:
Old table:
sample.Product

New tables:
sample.Product AND
dbo.Product
Deleted all new dbo.xxx entries but they are restored automatically ?!

Any hints welcome!
3 năm cách đây
Hi JonQuick, thanks for your replay.

First executed upgrade script on a test db, then (after success) on the live db.
Maybe something messed up there?
3 năm cách đây
Am I right to say that sample.Product has the 'real' live data, and dbo.Product is empty table? Is nopCommerce showing the correct data? or empty data?

Jon




tomsen wrote:
Hi JonQuick, thanks for your replay.

First executed upgrade script on a test db, then (after success) on the live db.
Maybe something messed up there?
3 năm cách đây
Yes
3 năm cách đây
Shows up almost fine. Only some locale strings are missing.
3 năm cách đây
if you connect to SQL Server with SSMS using the same account that is in dataSettings.json

and execute this query, what is the result?

SELECT SCHEMA_NAME()




tomsen wrote:
Yes
3 năm cách đây
SELECT SCHEMA_NAME() says "sample" which contains live-data.
3 năm cách đây
Pls. have a look at the upgrade sql script 4.2 => 4.3:

--new column
IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ShippingByWeightByTotalRecord]') and OBJECTPROPERTY(object_id, N'IsUserTable') = 1)
and NOT EXISTS (SELECT 1 FROM sys.columns WHERE object_id = object_id('[ShippingByWeightByTotalRecord]') AND NAME = 'TransitDays')
BEGIN
  ALTER TABLE [ShippingByWeightByTotalRecord]
  ADD TransitDays int NULL
END
GO

I added the transitdays with SSMS to keep the Shipping Plugin "working".
3 năm cách đây
Ok, thats good.

I'm not sure what could be causing the creation of the dbo.  objects.  Any 3rd party plugins which create database objects?

tomsen wrote:
SELECT SCHEMA_NAME() says "sample" which contains live-data.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.