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

  • Home
  • SEARCH
  • 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

This question is directly related to my previous question ASP.NET AJAX Is it possible
I've got a (mostly) working plugin developed, but since its function is directly related
Perhaps not directly programming related, but definitely product / commercially related. And I can't
I know this question isn't directly programming related, but since I want to be
When have you ever directly applied the concepts of dynamic programming to solve a
I'm embedding MSBuild directly into a more complex build tool. The relevant code looks
Is it possible to directly access MySql databases through an Adobe AIR/Flex application? If
Is it possible to read a disk directly with .NET? By directly, I mean
I know this is not programming directly, but it's regarding a development workstation I'm
Has anyone had success automating testing directly on embedded hardware? Specifically, I am thinking

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.