O'Reilly logo

Practical Business Intelligence by Ahmed Sherif

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Uploading data frames to Microsoft SQL Server

We now have two different data frames saved as comma separated value (CSV) files from GitHub and we wish to upload them to our database in Microsoft SQL Server.

Importing DiscountCodebyWeek

The two files are:

  • DiscountCodebyWeek.csv
  • CountryRegionBikes.csv

The first step is to log in to SQL Server using Management Studio and right-click on the AdventureWorks2014 database. The next step is to click on Tasks and then on Import Data.

Set your data source to be a Flat File Source and browse to select the source DiscountCodebyWeek.csv.

When choosing your data source, select the Advanced tab and rename the first column to Index, as seen in the following screenshot:

Additionally, we can rename both "WeekinYear"

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required