views:

39

answers:

1

Is it possible to ignore the schema in object names when comparing databases using Visual Studio 2010 Schema Compare? For example, I'd like [dbo].[mysproc] and [mysproc] to be considered equivalent.

A: 

Are these references in stored procedures?

I don't think that there's any way of achieving this. As far as I'm aware stored procedures are compared textually, rather than semantically.

David Atkinson
These occur all over the place, often when defining object names, eg, `CREATE PROC [dbo].[mysproc]` vs. `CREATE PROC [mysproc]`.
Daniel
I've just reproduced this in VS2010 and can't see a way round it. To plug the product I work on, Red Gate SQL Compare, this will ignore the schema as long as they're just in the object name declaration. However, in the textual body of an object, SQL Compare will also highlight these as differences. If you give this a go, you'll get fewer false positives to trawl through.
David Atkinson