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 1052473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:05:58+00:00 2026-05-16T17:05:58+00:00

Tools used: Visual Studio 2008 Team Foundation Server or Visual Source Safe Backstory: We

  • 0

Tools used:
Visual Studio 2008
Team Foundation Server or Visual Source Safe

Backstory:
We add our SQL files to our source control. We do this by adding them to the solution with the .sql extension and checking them in.

By default these files are saved as unicode. What that means is that user A can save foo.sql and user B can get latest and grab foo.sql

Problem:
Unfortunately, since the encoding is unicode by default, if foo.sql happens to have a file size that is divisible by 8 bits the system will open up the file in the wrong format. This causes the file to look like it has chinese characters instead of normal sql statements.

This can be fixed if the user A manually changes the encoding type to western european, but that’s a huge pain. It’s also very difficult to notice if user A forgot to manually set the encoding unless a problem occurs.

Question:
Is there a way to have visual studio make the default encoding of sql files western european? Is there a way to batch update the encoding type of files in visual studio?

  • 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-16T17:05:58+00:00Added an answer on May 16, 2026 at 5:05 pm

    You can update the Visual Studio default files. See the answers in this post:

    SQL file encoding in Visual Studio

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

Sidebar

Related Questions

Tools used: Visual Studio 2008 SP1 Team Explorer Team Foundation Server Power Tools October
I'm trying to connect to a TFS2008 server through Visual Studio 2008 (Tools\Connect to
I installed the SQL Server 2008 R2 and now I have the Visual Studio
I am using Visual Studio 2010 with MVC 3 and MS SQL SERVER 2008
We are developing a windows application in .NET(C#) IDE used is Visual Studio 2008.
We just upgraded our Visual Studio 2008 projects to Visual Studio 2010. All of
I have been running Visual Studio 2008 Team Edition for some time now and
I 've used the Query Builder tool of Visual Studio 2008 to build a
I'm using Visual Studio Team System 2008 at work to do web development. I've
I am developing an add-in for Microsoft Excel, using Visual Studio .NET 2008. The

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.