Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Setting Defaults for New SQL Compare Projects from Blog Posts - SQLServerCentral

Save for later
  • 3 min read
  • 14 Dec 2020

article-image

Recently I wrote about ignoring comments in SQL Compare. That seems like something I want to do in all my projects, so I went looking for how to set this as a default. It wasn’t obvious to me, but since I can ping the Redgate Software developers and support staff, I found an answer for this post.

If I start SQL Compare by clicking a project, it opens and my settings are there. When I start SQL Compare, it brings up the New Project dialog, shown here:

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-0

However, if I don’t want a new project, and close that, I have a basic interface. Going through the menus, I don’t see any way to set global options.

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-1

There are Application Options, but these aren’t anything to do with projects.

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-2

However, I realized that I missed something a support person pointed out to me. On the options tab for any project is a button that says “Save as my defaults”.

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-3

I can set things from any project, or I can click the “My Projects” button in the toolbar, which gives me a list of projects (I don’t save many).

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-4

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at $19.99/month. Cancel anytime

At the bottom of this is an “edit” button, which opens the familiar project dialog. I can click Options from there and see options.

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-5

When I do that, I can now set the items that I care about. The Ignore Comments is one, but there a few others I think cause issues. I do want to ignore encryption objects. I shouldn’t have the same ones  in dev as prod, so I’ll check that. Others:

  • Use database compat level (likely better than server version these days)
  • Online = ON
  • Ignore identity seed and increment (this could get changed)
  • Ignore WITH ENCRYPTION

I can then click the “Save as my defaults”. This will ensure new projects have these options. If I have old projects I want to update, I can always click the “My defaults” in the project to load what I’ve saved. This animation shows how the button works.

setting-defaults-for-new-sql-compare-projects-from-blog-posts-sqlservercentral-img-6

Now I can easily ensure that projects work as expected on my machine. Unfortunately, these defaults are stored in the registry, so this is a client by client basis, but you can ensure all your projects are set up the same by default.

SQL Compare is a fantastic product to make it easy to see what has changed in a database. If you’ve never used it, give it a try today.

The post Setting Defaults for New SQL Compare Projects appeared first on SQLServerCentral.