I am new to SQL.
I have an excel file that is saved in a location C:\F2008\daily.xls.
How can I automate a process to upload this into a table in SQL.
The SQL database is on a server named SBS2K3, the SQL instance is named HOME database name is DailyReports table name is DATA.
I am new to SQL so if somebody could help with step by step instructions would be great.
You'll want to setup an SSIS package to handle the import from the Excel sheet into the database.
answered Oct 11 '09 at 05:36 PM
or use this script and schedule it run regularly http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926
answered Oct 12 '09 at 03:14 AM
Try creating a scheduled SSIS package through the wizard. There are some difficulties with the wizard but if you data is pretty straightforward it should get you started.
Continue through the wizard picking the appropriate options. If you run it and get a truncation error, you'll need to go back a few steps in the wizard and click on Advanced to define the length of the destination column. Typically this happens if you have a description field or the like. Let me know if you need additional instructions for creating or scheduling the import package.
answered Oct 12 '09 at 07:56 PM