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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:19:17+00:00 2026-05-18T22:19:17+00:00

Let’s say there is a very large SQL database – hundreds of tables, thousands

  • 0

Let’s say there is a very large SQL database – hundreds of tables, thousands of fields, millions of records. This database is in Dutch. I would like to translate all the values of certain fields for test purposes in English. It doesn’t have to be completely correct, it has to be readable for the testers.

I know that most of the texts are stored in fields, named “name” and “description” throughout the database. Or basically all fields with type NVARCHAR(any length) in all tables would be the candidates for translation. Enumerating all the tables and fields is really too much work, and I would like to avoid it, so translating only these fields would be enough.

Is there a way to walk through all the tables and for all the records retrieve the values from the specific fields and replace them with their English translations? Can this be done with SQL only?

The db server doesn’t matter – I can mount the database on MSSQL, Oracle or any server of a choice. Translating the texts using google or some other automatic tool is good enough for the purpose. Of course this tool must have an API in order to be used automatically.

Does anybody have an experience with similar operations?

  • 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-18T22:19:18+00:00Added an answer on May 18, 2026 at 10:19 pm

    In Pseudocode, here is what I would do, using Oracle :

    Query AllFieldsQuery = new Query(connection,"Select table_name, column_name 
    from user_tab_columns where column_name='name' OR column_name='description'");
    
    AllFieldsQuery.ExecuteReader();
    

    It gives you something like this :

    TABLE_NAME | COLUMN_NAME

    Table1 | Name

    Table2 | Name

    Table2 | Description

    ……….. | ………..

    Foreach TableColumnLine
    
    Query FieldQuery = new Query("Select DISTINCT "+COLUMN_NAME+" AS ToTranslate 
    from +"TABLE_NAME);
    
    Create a new parametrized query :
    MyParamQuery = new ParamQuery(connection, UPDATE TABLE_NAME SET COLUMN_NAME =
    @Translated WHERE COLUMN_NAME = @ToTranslate);
    
    Foreach ToTranslateLine
    
    @Translated = GetTranslationFromGoogle(@ToTranslate);
    
    MyParamQuery.Execute(ToTranslate = @ToTranslate, Translated = @Translated);
    
    End Foreach ToTranslateLine
    
    End Foreach TableColumnLine
    

    The AllFieldsQuery gives you all the fields in all the tables you need to update.

    The FieldQuery gives you all the texts you need to translate.

    The MyParamQuery updates each one of these texts.

    This may be a very long process, it depends also on the time you spend to get the translation. What I would recommend is to do at least a commit by table, and print a report to tell you for each table if everything went ok, because you could in your API have an exclude function that excludes fiels and/or tables from the first query because they were already translated before.

    .

    Enhancement : Writing a File and executing it at the end of the translation instead of executing sql updates.

    If it’s too long, and it will possibly be too long, instead of executing the sql UPDATES directly, you’d rather write a file with all your updates, and after you foreach, go get the file and use it in SQL.

    .

    Enhancement : Multi Threaded Version

    A multi threaded version of your API could let you win some translation time, you put all your results to translate in a synchronized queue, and you use a pool of threads to translate the queue, and put all the translated messages in another synchronized Queue, which is used to write the SQL output file or launching the updates.

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

Sidebar

Related Questions

Let's say you have a class called Customer, which contains the following fields: UserName
Let's say you create a wizard in an HTML form. One button goes back,
Let's say I'm building a data access layer for an application. Typically I have
Let's say we have a simple function defined in a pseudo language. List<Numbers> SortNumbers(List<Numbers>
Let's say I have a drive such as C:\ , and I want to
Let's say I'm writing a PHP (>= 5.0) class that's meant to be a
Let's aggregate a list of free quality web site design templates. There are a
Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12,
Let say I have the following desire, to simplify the IConvertible's to allow me
Let me try to explain what I need. I have a server that is

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.