Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/courses/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ ID,VendorID,PickupDate,DropoffDate,PassengerCount
1709,1,1/1/17 7:00 AM,1/1/17 7:11 AM,2
```

> #### info::Note
> Your file should be utf8 encoded.

Do the same with a SQL script named `script.sql` in charge of seeding the database:

```sql
CREATE DATABASE tripdata;
GO
USE tripdata;
GO
CREATE TABLE YellowTripData (ID INT, VendorID INT, PickupDate DATETIME2, DropoffDate DATETIME2, PassengerCount INT);
GO
BULK INSERT YellowTripData FROM '/home/repl/data.csv' WITH(FIELDTERMINATOR =',', ROWTERMINATOR = '\n', FIRSTROW = 2);
GO
```
Expand Down