can i ignore certain db objects?
merk
Posts: 17
Unfortunately i have a few stored procs which differ from the dev database compared to the production database. So, i'd prefer it if sqlcompare would ignore these, since i absolutely do not want to copy the dev version into the production db.
So i'd like to know if i can tell sql compare to ignore changes - preferably ignore them just when on a specific db. i.e. if sp_mySproc changes, notify me when i an looking at the dev database, but don't tell me when i am looking at the production db.
Thanks
So i'd like to know if i can tell sql compare to ignore changes - preferably ignore them just when on a specific db. i.e. if sp_mySproc changes, notify me when i an looking at the dev database, but don't tell me when i am looking at the production db.
Thanks
Comments
In SQL Compare you can use the Filter panel to exclude objects. You can save the filter settings with a saved project.
This isn't yet possible in SQL Source Control.
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
David
Product Manager
Redgate Software
It would not be a huge deal to have then in SC except that we have a large number of objects in the db and I suspect this as the reason for slow performance.
i also occasionally comment out sections of code in my dev or prod stored procs since some of it's for debugging purposes.
David
Product Manager
Redgate Software
ie on dev it's linkdevserv. DevDb.dbo.devtable
and when i'm pushing changes to the production db, it should automatically convert linkdevsrv to linkprdserv and devdb to proddb, and should ignore differences in that text when doing a compare.
I didn't think that would be something that would be included in sql source control, which is why i asked about ignoring files, which is obviously an imperfect workaround.
David
Product Manager
Redgate Software
We have a reporting database that looks at a replicated (MSSQL replication) copy of our production database.
We use synonyms in our reporting database to point to the replicated production database.
I don't really want or need the synonyms in source control. When we deploy a new report database, we simply run a proc that automatically creates all of the synonyms.
Sure would love the ability to exclude things from source control! :-)
Jim
Comments on this approach are most welcome! As soon as we've got something ready, we'll release this as an Early Access build.
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
Kind regards,
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
Kind regards,
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
We have a replicated database bound to source control and are running into a similar problem by not being able to exclude the replication elements that are created dynamically for each instance.
We have 3 different development sql servers in 3 different companies all using the same database schema through TFS and Redgate source control.
It's not going well at the moment.
Are there any tricks you can share for when you bind a replicated database to source control?
Thanks in advance.
David Atkinson
Red Gate Software
Product Manager
Redgate Software
We are doing merge replication and the objects that are giving us grief are all the triggers, etc that include a GUID supplied by the server when replication is turned on.
i.e.
create trigger [MSmerge_del_6B0A0FF8ADDE416C9BF3853E8769F39A] on [server].[dbo].[tablename] FOR DELETE AS
declare @is_mergeagent bit, @at_publisher bit, @retcode smallint
Replication also adds constraints, indexes and statistics. These also need to be filtered out for a replicated database to be bound to source control when shared.
Product Manager
Redgate Software
Am I missing something?
We're hoping to add the SQL Compare options to SQL Source Control at some point. We don't have any precise details right now, but we'll respond to this thread when we've done the work.
David
Product Manager
Redgate Software
Should we have one database that isn't replicated and bind that to source control, and have another replicated database that isn't bound to source control. Than keep the unbound db up to date using SQL Compare...
Is that the best we can do for now?
I'd appreciate it if you could try this out and let us know if this is a viable workaround, as it's not the first time we've been asked this!
Many thanks,
David
Product Manager
Redgate Software