Question:

Create SQL Table on the Fly?

by Guest34264  |  earlier

0 LIKES UnLike

I'm trying to create a SQL table on the fly from a csv file. How do I do this in T-SQL?

 Tags:

   Report

2 ANSWERS


  1. Read about BULK INSERT command in BOL.


  2. You can use SQL Server 2005's Integration services to create and schedule a package which executes periodically (in case that's what's required).

    When the package executes, it reads from the CSV file and dumps its content in a table of your choice.

    Here is an example of how to do it:

    http://www.programminghelp.com/database/...

    Hope this helps.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.