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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:54:44+00:00 2026-06-18T08:54:44+00:00

I have to import a csv file to excel or directly to SQL Server

  • 0

I have to import a csv file to excel or directly to SQL Server database.

Here is the data format

  1. columns are separated by comma (,).
  2. Strings are enclosed between ~ and ~ which may contain comma (,)
  3. When I try to import into excel by using delimiter Comma(,) it creates extra columns where ModelName contain comma in it.

Here is CSV file some lines, check the last item “~Express, Commercial Cutaway~” it contains comma in it.

~ChromeStyleID~,~Country~,~Year~,~DivisionName~,~SubdivisionName~,~ModelName~
349645,~US~,2013,~GMC~,~GMC Pickups~,~Sierra 2500HD~

349646,~US~,2013,~GMC~,~GMC Pickups~,~Sierra 2500HD~

349649,~US~,2013,~Chevrolet~,~Chevy Specialty Vehicles~,~Express, Commercial Cutaway~

So how to import it into sql or excel.

  • 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-18T08:54:45+00:00Added an answer on June 18, 2026 at 8:54 am

    Importing into SQL Server could go like this.

    On your Import/Export screen, make sure that you specify “~” as the text qualifier. Check the box that says “Column names in the first data row”.

    Unfortunately your column names will still contain the tilde, but this you can edit by hand.

    As for Excel, you are better off replacing your text qualifier to double quotes or something more standard like a single quote. In fact Excel only allows you these two options, perhaps there is a way of changing that, but I don’t know how.

    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here

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

Sidebar

Related Questions

I have a csv format file, which I want to import to sql server
I have to import data from an Excel file to database and to do
Usually CSV and excel file format will be used to import data as it
In my application i can import csv file but i have data in excel
I have 3 million rows customers.csv file. When I import it in SQL 2008,
I have requirement to import Excel file in MySQL database using Java. I Googled
I am using VS2005 C# and SQL Server 2005. I have an Excel file
How to read and import .csv file in groovy on grails. I have .csv
I have an excel file with duplicate values..In SQL table the fields are Primary
I have to parse a file so that I can import it to excel.

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.