Solved

Automated Import of csv into SQL Server 2008 Express

Posted on 2009-04-06
2
1,038 Views
Last Modified: 2012-06-27
I have SQL Server 2008 installed. I generate a csv file everyday and I want this file to be imported into the a specific table in this database. I need for the data in the table to be overwritten by this import.

Any way to do this?
0
Comment
Question by:ralphcarter2008
2 Comments
 
LVL 18

Expert Comment

by:jmoss111
ID: 24082799
Is the SQL table in the same format as the .csv? You can use a TRUNCATE TABLE and a BULK INSERT to push the file.
0
 
LVL 25

Accepted Solution

by:
reb73 earned 500 total points
ID: 24082819
You can use BCP or the OPENDATASOURCE/OPENROWSET TSQL commands (using the Microsoft Jet 4.0 text driver to read this as a set based table) if the csv fles are available in a location that is accessible by the SQL Server Service..

See EE PAQ link below -

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_24098776.html?sfQueryTermInfo=1+10+csv+file+opendatasourc

 
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now