Explore Dataveer : Your Partner in Digital Transformation

SQL to import data from CSV

by | Sep 18, 2017 | blog, Database

How to import a CSV file into a database using SQL Server Management Studio

While bulk copy and other bulk import options are not available on the SQL servers, you can import a CSV formatted file into your database using SQL Server Management Studio.

First, create a table in your database into which you will import the CSV file. After the table is created:

  • Log in to your database using SQL Server Management Studio.
  • Right click the database and select Tasks -> Import Data…
  • Click the Next > button.
  • For Data Source, select Flat File Source. Then use the Browse button to select the CSV file.  Spend some time configuring the data import before clicking the Next > button.
  • For Destination, select the correct database provider (e.g. for SQL Server 2012, you can use SQL Server Native Client 11.0).  Enter the Server name; check Use SQL Server Authentication, enter the User namePassword, and Database before clicking the Next >button.
  • In the Select Source Tables and Views window, you can Edit Mappings before clicking the Next > button.
  • Check Run immediately and click the Next > button.
  • Click the Finish button to run the package.

Written By Satya

undefined

Explore More Insights

Import CSV file into Oracle table tips

Question: What is best way to import a CSV file into an Oracle table? I have a comma delimited CSV file, and I want to rub SQL queries against the file. What are my options for loading my CSV? Answer: There are several ways to query a CSV file with SQL, by loading it...

read more

schedule for bigdata

Curriculum For This Course Introduction Getting Started Overview of Big Data sandboxes or virtual machine images Pre-requisites Choosing Virtualization Software (very important) Installing VMWare Fusion on Mac Installing Oracle VirtualBox on Mac Cloudera Quickstart VM...

read more

Bigdata class 2 for Beginners

  How to setup  Big Data Development Environment? Requirements Need to have modern laptop with 64 bit OS and at least 16 GB RAM  (for support of all softwares and speed respectively). Description Big Data is open source and there are many technologies one need to...

read more

0 Comments