Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1067265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:08:09+00:00 2026-05-16T20:08:09+00:00

Directly related to visual studio 2010 database project, is there a visual way? I

  • 0

Directly related to visual studio 2010 database project, is there a visual way?

I have a problem synchronizing between database project and a database in Visual Studio.

Usually I synchronize FROM database TO database project (using the Visual Studio > data > scheme compare > new schema comparison).

The synchronization works, BUT when I for example corrected the spelling of a key in the database and synchronized it – the file with the WRONG spelling of a key remains (albeit is commented out inside). the new one is correctly added.

This file happens to be in:

[project name]/Scheme Objects/Schemas/dbo/Tables/Keys

But for sure there are others elsewhere.

how to automatically remove such obsolete files when synchronizing?

thnx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:08:09+00:00Added an answer on May 16, 2026 at 8:08 pm

    You could write a small console application (or a script) that looks at all files in your project and remove the ones that contain only commented sql statements.

    There is one thing to consider though: If you re-name an object you might want to tell your source control system that you re-named the object i.e. you would not just delete the old file. This way you would preserve the history of the object (I think with Git this would not be an issue but it is for others).

    Usually I pull the changes from the database into my project very frequently and thus I only have couple of files that change. This way it is not too hard to manually delete obsolete files or make my source control system believe that I renamed a file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My programming decissions are directly related to how much room I have left, or
A lot of code in a current project is directly related to displaying things
After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started
Just wondering how others out there are managing tasks not directly related to fulfilling
I have a bizarre problem using Qt Creator that I can't reproduce with Visual
This question is directly related to StackOverFlow while counting digits . I have lifted
I have a basic newbie binding question, which isn't necessarily directly related to the
This question is directly related to my previous question ASP.NET AJAX Is it possible
Here is a question not directly related to programming. Being fed up with Microsoft
I know this isn't directly related to programming, but I was wondering if anyone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.