Question

I need to insert the data from a csv file which is look something like this listing_id date available price 0 241032 1 85 1 241032 1 85 2 241032 0 3 241032 0 4 241032 0 5 241032 0 241032 0 7 241032 0 8 . into the SQL table which that I've already created Calendar listing_id - integer, not null date date, not null available boolean, not null price decimal (10,2). How can i do it?

0 0
Add a comment Improve this question Transcribed image text
Answer #1


You can do this using import function of sql server:
the steps to do that are: First create the table in the database
1-Login to database using sql server management studio
2-right click on the database, select tasks and then import data
3-after clicking next, select the flat file source, and import your csv file using browse, configure the data import and then click next
4-For destination select correct database provider, input server name, click on the checkbox use SQL server authentication, input username, password and the database, then click next
5-In select source tables we can edit the mapping then click next
6-Click on the checkbox Run immediately and then click next
Click finish
your data will be uploaded to the table that you created.

Or if you wish to enter the data manually you can use Insert into command in sql query and insert each record in SQL manually.

if you like the answer please provide a thumbs up.

Add a comment
Know the answer?
Add Answer to:
I need to insert the data from a csv file which is look something like this...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Use the csv file on spotify from any date Code from lab2 import java.io.File; import java.io.FileNotFoundException;...

    Use the csv file on spotify from any date Code from lab2 import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class SongsReport {    public static void main(String[] args) {               //loading name of file        File file = new File("songs.csv"); //reading data from this file        //scanner to read java file        Scanner reader;        //line to get current line from the file        String line="";       ...

  • Python with Pandas dataframe I have a csv file that contains a large number of columns...

    Python with Pandas dataframe I have a csv file that contains a large number of columns and rows. I need to write a script that concatenates some elements of the first row with some elements of the 2 row. Something like # if data[1][0] starts with ch then concatenate the element right below it. I have attached a picture of just a sample of my data. The booleans have to stay on there as is. But I must drop the...

  • Pandas DataFrame in Python : I have csv file which has date column with object data...

    Pandas DataFrame in Python : I have csv file which has date column with object data type which ranges from 1908 to 2018: (Original) Date                 (My result) Date                  (I Need) Date                       17-Sep-08                                  2008-09-17                 1908-09-17 7-Sep-09                                    2009-09-07                  1909-09-07 .    (more years)                         .   (more years)               .     .                                                 .                                      . 8-Nov-07                                       2007-11-07                 2007-11-07 23-Sep-08                                     2008-09-23                 2008-09-23 29-Dec-18                                     2018-12-29                 2018-12-29 When I am converting it to datetime64[ns] or/and adding column as year after extracting just year values from date...

  • Write a C++ program that will input data from a Comma-separated values (.csv) file and output som...

    Write a C++ program that will input data from a Comma-separated values (.csv) file and output some information about it. This program uses a csv file from Yahoo Finance (.csv) filename : SBUX.csv 1. Output the name of the ticker to the console screen (without the “.csv”) 2. Output the start date and end date that was found in the file 3. Output how many trading day(s) existed in the file 4. Prompt the use to input a number of...

  • 1. Create a table that will hold the data in avgprice kwh state.csv. This .csv file...

    1. Create a table that will hold the data in avgprice kwh state.csv. This .csv file contains the annual data from 1990-2012 on the average energy price per kilowatt hour (KwH) by state and provider type. Implement the following queries: • Print each row that has Tennessee as state, order the result by year in descending order. • Print the average residential, commercial, industrial, and transportation price for the state of Texas from the year 1990-2012. 2. Create the tables...

  • I have a Graph.java which I need to complete four methods in the java file: completeGraph(),...

    I have a Graph.java which I need to complete four methods in the java file: completeGraph(), valence(int vid), DFS(int start), and findPathBFS(int start, int end). I also have a JUnit test file GraphTest.java for you to check your code. Here is Graph.java: import java.util.ArrayList; import java.util.LinkedList; import java.util.Queue; import java.util.Stack; /* Generic vertex class */ class Vertex<T> { public T data; public boolean visited; public Vertex() { data = null; visited = false; } public Vertex(T _data) { data =...

  • I am creating a program to sort a list of names from a given text file...

    I am creating a program to sort a list of names from a given text file using linked listed. The text file would look something like this: 3 John Johnson 1 Tim Boring 1 Jason Mendoza 1 Bobert Reed 2 Tim Boring 4 5 Essentially I would like to associate each numerical value with an action: 1 = add a person, 2 = remove person, 3 = check if that name is in the list, 4 = print list, 5...

  • Help In Database: Next comes the data entry: Make up data for your database, or find...

    Help In Database: Next comes the data entry: Make up data for your database, or find real data. You can enter the data with INSERT statements, but it is much easier to use PhpAdmin. It has a form where you can type the data directly. Alternatively, you can use PhpAdmin to import CSV data (comma-separated values), which you can export from Excel. Include at least 3 rows in each of the entity relations, and as many rows as you need...

  • I only need the r code. the dataset we have is a .csv file. 3. (10...

    I only need the r code. the dataset we have is a .csv file. 3. (10 points) The data below are called ttable.csv on Bb. Read the data into R as a data frame "tmat" with names as shown. This data shows critical points for the Student t-distribution for degrees of freedom (by rows) 2, 3....10. Print the data frame to the screen as below. Then construct a graph as similar to the one shown below as you can Provide...

  • I'm having trouble working with a .csv file in C Programming. I know that I need...

    I'm having trouble working with a .csv file in C Programming. I know that I need to use parallel arrays to search through the data but I am a little lost. How would I go through the data in a file, for example I created one and attached it. To find the information between two dates. So Ask the user for two dates then search the .csv file for that and give an output similar to: "Select the starting and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT