Quantcast
Channel: Red Gate forums: SQL Compare 10
Viewing all 1066 articles
Browse latest View live

A duplicate object name has been found. This may occur if th

$
0
0
I am having troubles we comparing a specific source database in SQL Compare 10.7. The source database is not case sensitive, and contains several schemas, some table names exists is multiple schemas.

Previously this was not an issue for SQL Compare, however today i start receiving the following error:
A duplicate object name has been found. This may occur if the SQL Server that you are registering is case sensitive but the case sensitive option is not set.

But as mentioned above the database is not case sensitive. How do a cope with this error. I find it strange that it is not reporting the actual name of the object that resulted in the conflict - how can I figure this out?

Extract of log:
Code:

10:26:58.958|Error  |SQL Compare Engine  |13 |SqlCompareException: A duplicate object name has been found. This may occur if the SQL Server that you are registering is case sensitive but the case sensitive option is not set.
System.ArgumentException: Der findes allerede et element med samme nøgle.
   ved System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   ved System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   ved #8rg.#Ssg.#Klh()
   ved #8rg.#Ssg.#vl(DBPopulationOptions #WXrc)
10:26:59.093|Error  |SQL Compare UI      |1  |Exception in progress dialog
RedGate.SQLCompare.Engine.SqlCompareException: A duplicate object name has been found. This may occur if the SQL Server that you are registering is case sensitive but the case sensitive option is not set. ---> System.ArgumentException: Der findes allerede et element med samme nøgle.
   ved System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   ved System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   ved #8rg.#Ssg.#Klh()
   ved #8rg.#Ssg.#vl(DBPopulationOptions #WXrc)
   --- Slut pÃ¥ staksporing af indre undtagelser ---
   ved #8rg.#Ssg.#vl(DBPopulationOptions #WXrc)
   ved #8rg.#AHud.Register(ConnectionProperties #Ap8b, Options #5OPb)
   ved RedGate.SQLCompare.Engine.Database.Register(ConnectionProperties connectionProperties, Options options)
   ved RedGate.SQLCompare.Common.CompareEngineExecutor.DoRegisterDatabaseForCompare(Database #RHc, LiveDatabaseSource #ovUb)
   ved RedGate.SQLCompare.Common.CompareEngineExecutor.DoRegisterDatabaseForCompare(Database #RHc, DataSource #ovUb)
   ved RedGate.SQLCompare.Common.CompareEngineExecutor.#7bH()
   ved RedGate.Shared.Utils.ProgressTasks.ProgressTask.#kco()
   ved RedGate.Shared.Controls.ProgressDialogEx.DoTasks()

RE: SQL Compare hangs at "Reading object text"

$
0
0
fllouw wrote:
An update: I found the reason for the performance difference. The large database had a single encrypted object (a 5-line stored procedure), and the option to decrypt encrypted objects was checked (it is checked by default). Unchecking the option to decrypt encrypted objects solved the performance issue.

Thanks,
Francois


Thanks fllouw, that also fix the performance problem in my case as well. Now the only question that remains is why option to decrypt encrypted objects causes so much overhead, but that is a question I will leave for another day.

Cheers!

RE: Primary Key difference when comparing Full Text Indexes

RE: Compare not detecting ALLOW_SNAPSHOT_ISOLATION

$
0
0
Hi Paul,

I don't believe SQL Compare is meant to synchronize any database-level configuration properties, except when required to add an object, for instance enabling FULLTEXT so that it can synchronize a full text catalog.

If this setting is causing an object synchronization to fail, I can definitely put in a change request for SQL Compare to support it.

RE: How to skip database name comparing in a view?

$
0
0
SQL Compare has a few options to ignore certain object properties, but it does not do any refactoring where programmability objects like views, stored procedures, and UDFs are concerned. You can map the owning schema to a different owner and that's about it. There definitely isn't support for manipulation of three-part identifiers (database.schema.object).

If it's important, you could consider requesting this feature on UserVoice. https://redgate.uservoice.com/forums/141379-sql-compare

Hope this helps.

RE: SQL Compare v11 Beta 3

$
0
0
We've now released the fourth beta of SQL Compare 11, which you can download here.

SQL Compare 11 is still in development, and we'd really appreciate your feedback.

Features
This version includes support for memory-optimized tables. SQL Compare can now:
• perform a deployment to create, drop and rebuild memory-optimized tables on SQL Server 2014 databases
• drop and recreate database level event notifications for CREATE TABLE and DROP TABLE statements when memory-optimized tables are deployed

If your deployment includes memory-optimized tables, you need to:
• make sure that the target database has a memory-optimized filegroup
• turn on the ‘Do not use transactions in deployment scripts’ option

Behavioral differences
• If you turn on the ‘Ignore indexes’ option, differences in indexes for memory-optimized tables are ignored if the only differences between the tables are the indexes. However, if there are other differences between the tables, all indexes will be deployed.
• The ‘Ignore collations’ option is not applied to memory-optimized tables.

Known issues and further improvements
We're currently working on adding support for:
• deploying memory-optimized tables from a SQL Server 2014 database to a database on an older version of SQL Server
• dropping and recreating database level triggers for CREATE TABLE and DROP TABLE statements on a target database when memory-optimized tables are deployed
• deployment using transactions for other objects types when they're deployed alongside memory-optimized tables. For example, if you deploy functions alongside memory-optimized tables, there will be no transaction block for the section in the deployment script for deploying the functions
• other new features in SQL Server 2014 including memory-optimized table types, natively compiled stored procedures, clustered columnstore indexes and incremental statistics. This latest SQL Compare beta may display incorrect SQL for these objects, and attempts to deploy them are likely to fail or result in incorrect deployment

SQL Compare 11 won't include support for comparing and deploying backup files (native or SQL Backup) containing memory-optimized tables.

Bug fixes
This version includes the following bug fixes:
• SC-7260: Fillfactor option no longer appears in user-defined table types
• SC-5164: Fix for the issue where SQL Compare attempts to re-add extended properties when altering a function with existing extended properties
• SC-7248: Assemblies with circular dependencies on other assemblies no longer causes stackoverflow exception
• SC-5443: Using drop and create instead of alter option no longer throws an error after dropping a view then trying to refresh it
• SC-7142: Migration scripts are now retrieved by command line
• SC-6835: *= operator in stored procedures is now properly parsed
• SC-7063: A TIMEOUT value of -1 when retrieving messages from a queue no longer causes parsing error[/u]

RE: This implementation is not part of the Windows Platform FIPS

$
0
0
Anu,

What was the answer to this problem? I am having the same issue.

Thanks,

Rich

SQL Compare v11 Beta (including SQL Server 2014 support)

$
0
0
SQL Compare v11 is in beta and can be downloaded from our website.

It has its own forum. Post any questions or feedback you have on SQL Compare 11 there.

SQL Compare v11 includes support for SQL Server 2014 support which we are currently rolling out and a large number of fixes.

RE: Compare not detecting ALLOW_SNAPSHOT_ISOLATION

$
0
0
Brian

The background was that we are doing application development against a database and hit a throughput problem, so we changed the transaction option from serializable to snapshot, which requires the ALLOW_SNAPSHOT_ISOLATION setting to work.

The issue is that every other bit of the database, schema, tables, views, indices etc in in source control which means we can promote changes through the environments in a controller manner - except for this one!

I'd suggest having a database settings comparison section so that we can choose whether these are synchronised or not, ok it's not schema synchronization but it does make a difference to the functionality of the database and if it's out of sync can break applications.

RE: A duplicate object name has been found. This may occur if th

$
0
0
Hello,

Sorry this is not straightforward, and depends on what is being compared. If it's a live datasource, this should not happen as SQL Server does not allow two objects of any type with the same name. In that case, possibly the database is corrupt.

With scripts folders, you can use MS-DOS findstr (findstr /S /I /C:"object name" *.*) The reason this happens is usually CI-related - either someone has put a scripts folder as a subfolder of a scripts folder, put "migrations" scripts inside the scripts folder, or specified two VCS roots containing scripts, which then combine into the same folder.

RE: How to Exclude Assembly in SQL Compare Pro Command-Line?

$
0
0
Hi Rick,

If I understand correctly, this error is probably happening because the assembly has been excluded. Then you would get this error if an object that depends on that assembly (such as a stored procedure or user-defined function) was being applied to the database without the underlying assembly.

Non-CL Index should DROP NCL First

$
0
0
I could be wrong, but I thought it was more efficient when changing the PK and dropping a non-clustered Index on the same table to drop the non-clustered index first, then drop the PK.

In my case, I swapped the PK sequence of the 3rd and 4th columns along with dropping an obsolete index.

SC drops the PK then the non-clustered index, so perhaps it's doing unnecessary IO. With the table in question comprising over 110MM rows, this is a potential excessive-wait situation in the making...

(Sadly, I inherited the poorly chosen table and column names; they're pervasive, so I'm stuck with them for now, so please no observations on them...!)

Like I said, I could be wrong...

Here's the generated script:
Code:
/*
Run this script on:

xcQA.xcp_rpt - This database will be modified

to synchronize it with:

xcdev2012.xcp_rpt

You are recommended to back up your database before running this script

Script created by SQL Compare version 10.4.8 from Red Gate Software Ltd at 4/3/2014 3:20:41 PM

*/
SET NUMERIC_ROUNDABORT OFF
GO
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
USE [xcp_rpt]
GO
IF EXISTS (SELECT * FROM tempdb..sysobjects WHERE id=OBJECT_ID('tempdb..#tmpErrors')) DROP TABLE #tmpErrors
GO
CREATE TABLE #tmpErrors (Error int)
GO
SET XACT_ABORT ON
GO
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
GO
BEGIN TRANSACTION
GO
PRINT N'Dropping constraints from [dbo].[t_meter_agg]'
GO
ALTER TABLE [dbo].[t_meter_agg] DROP CONSTRAINT [PK_t_meter_agg]
GO
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
GO
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
GO
PRINT N'Dropping index [ix_ma_EndTime] from [dbo].[t_meter_agg]'
GO
DROP INDEX [ix_ma_EndTime] ON [dbo].[t_meter_agg]
GO
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
GO
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
GO
PRINT N'Creating primary key [PK_t_meter_agg] on [dbo].[t_meter_agg]'
GO
ALTER TABLE [dbo].[t_meter_agg] ADD CONSTRAINT [PK_t_meter_agg] PRIMARY KEY CLUSTERED ([agg_site_id], [agg_tag_id], [agg_interval_code], [agg_start_time], [agg_input_id]) WITH (FILLFACTOR=100, DATA_COMPRESSION = PAGE) ON [PRIMARY]
GO
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
GO
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
GO
IF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTION
GO
IF @@TRANCOUNT>0 BEGIN
PRINT 'The database update succeeded'
COMMIT TRANSACTION
END
ELSE PRINT 'The database update failed'
GO
DROP TABLE #tmpErrors
GO
http://www.coininfifa.com/

Decorating bedroom Wall with Flower Decals

$
0
0
Walls decals for bedroom are available in best styles to choose from based on what you really want to add into developing styles to make inner bedroom becomes excellent. Bedroom Wholesale Wall Decals have always been very popular in offering many excellent and amazing elements to make much better bedroom credentials developing at excellent ranked beauty. Flower Walls Decals for developing bedroom have been very well known in offering simple and affordable ideas to make quite specifically elegant bedroom styles at excellent principles. Flower Wall Decals for bedroom based on modern developing styles are quite amazing but it depends on your thoughts in how to style and beautify bedroom credentials with recommended decals.

Interdependent functions (udf)

$
0
0
Hello,

We have two udf-functions which are interdependent and can call each other recursivly.

Changing the parameters and update a database with SQL compare leads in an error.
The reason is clear - but how can I avoid the error? Is there a way to solve this without Scripting?

Thank you for any help or hints!
regards,
Robert

RE: Non-CL Index should DROP NCL First

$
0
0
Thanks for reporting this. It's something that has already been noticed and logged as enhancement request SC-7066. At this time, though, the team are working on other things and are going to look into this at a later date.

Sell credit card with good quality

$
0
0
Provide of CVV and Bank Logins + MSR/ATM Skimmers with good price here.

- US cvv: Visa/Master: $2 - Amex Card/Discover: $4
- UK cvv: Card Random: $5, With D.O.B/With Pin: $13
- CA cvv: $10
- Paypal verified with mail and pass login: $25


----RULE----
* Only sell, not share and I don't want to see SCAM and SPAM here.
* I will send CVV checked live after you make payment. If cvv not good i'll change it in 5mins.
* Who bought please verified for me.

* Contact me for more details:
- ICQ (/UIN): 653541187
- Skype ID: itgeneration77779
- AIM Messenger: paygate107@gmail.com

* Payment method: Perfect Money (PM), Webmoney (WMZ), Western Union (WU), Money Gram (MG).

PRESTIGE IS THE QUALITY

RE: Interdependent functions (udf)

$
0
0
Thank you for your forum post.

You obviously have a circular dependency. One way to resolve this is to break the circular dependency and manually script the change.

Or create temp objects with the new structure. Export the data out of the existing tables and insert into the temp tables. Drop the existing objects and rename the temp objects to take over the role of the objects that were dropped.

Either way, you will need to perform some scripting.

Many Thanks
Eddie

Using Underscores in a filter

$
0
0
We rename tables with "_" before we physically remove them.

Is there a way to specify an underscore without it being interpreted as a wildcard?

Default Settings

$
0
0
I s there a way to set the "My Defaults" as the default setting when SQLCompare loads?

RE: SQL Compare aborts - Could not find a part of the path

$
0
0
Hello,


I used Long Path Tool software that simply worked for me for Long Path files. This software can be easy solution for you.

Thank you....
Viewing all 1066 articles
Browse latest View live