Partial project using table name prefix?
PeterDaniels
Posts: 89 Bronze 3
I have a DB that has a new set of tables for a new application. For some reason, the developers were not able to create the new objects in a new schema, so they are in dbo. All of the tables are prefixed with <Prefix>_<TableName>. I'm wondering how I can set up a SCA project to just work with the objects names LIKE <Prefix>_%?
Tagged:
Best Answers
-
Sergio R Posts: 610 Rose Gold 5Monday's recommendation should work well in your caseSergio
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools
Answers
1) Created a new empty dev DB on localhost
2) Created a new project, connected to the new DB for dev, but did not connect to a "target" DB (where I want to grab the <Prefix>_% tables from.)
3) Started a new SQL compare project and chose source as the "target DB", target as my empty new localhost dev DB.
4) Compared, then under actions, chose "filter setup pane"
5) created a custom filter: object_name like <Prefix>_
6) Saved the filter.scpf into the root folder of my project
7) closed and reopened the solution
8) Continued with "setup the project" and imported the baseline script.
BINGO!
Looks good. I only have those objects in the project.