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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:09:00+00:00 2026-06-14T08:09:00+00:00

Below is a table store in database: ID Age SectionID 111 29 NULL 100

  • 0

Below is a table store in database:

 ID     Age     SectionID
 111    29       NULL
 100    30       NULL

To update Column Age with with a text file(see below for sample data)

 ID     Age     SectionID
 111    29       231
 100    30       456

The text file comes without the column names.
I tired using the import wizard but seems its adding all the columns to the table again. I only need to add the SectionID column to the table. Can anyone tell me how to select the settings to make that happen? Thanks!!!!!!

  • 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-06-14T08:09:01+00:00Added an answer on June 14, 2026 at 8:09 am

    You can use a BULK INSERT to insert the data into a temporary table, do an UPDATE and delete the temporary table.

    Example:

    CREATE TABLE #TEMP (
      ID INT,
      Age INT,
      SectionID INT)
    GO
    
    BULK INSERT #TEMP
    FROM 'HereGoesYourFileName'
    WITH
     (
        FIELDTERMINATOR =' ',
        ROWTERMINATOR = '\n'
      )    
    GO
    
    UPDATE ot
    SET ot.SectionID = t.SectionID
    FROM OriginalTable ot JOIN #TEMP t ON ot.ID = t.ID
    GO
    
    DROP TABLE #TEMP
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a VARCHAR2 type column in my database table for store invoice_number .
need help in error in database pivot. i have table tamed table_score like below:
I have the below table. I am trying to get tbody column bgcolors matching
See the below table: col1 col2 ---- ---- 1 | a 2 | b
I have a mysql database with a table structure like below : Table Name
My table structure is below: CREATE TABLE [ACC].[Document]( [DocumentID] [int] IDENTITY(1,1) NOT NULL, [Date]
I query my mySql database table and retrieve text strings that look like this:
I'm trying to store user input in to my sql table as seen below,
I have a legacy SQL database that has a linked table to store specifications
Working with MySQL database. I have a store table. The store table has at

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.