Automatic Update from Excel to SQL

  • I need to load the data from excel to a table in SQL Server 2008 and automate the updates.ie., If there is a new record or and update to the existing record in the source excel it should be automatically update the SQL Table.

    Is it possible, if yes how ??

    Any ideas or suggestions would be helpful.

    Please help.

    Swetha

  • you could write something with VSA to update the database as a new row is entered.

    or you could create a ssis package that read the file after it has been saved and loads the updates into the table.

    it depends on how 'automatic' you need

  • The word automatic I mean here is "As the excel file is updated or inserted, the changes need to be reflected in the table with no time lag".

    Swetha

  • Is there any way to do this apart from scheduling it to check often.

    YOUR RESPONSE IS HELPFUL.

    Swetha K

  • then the easiest way woud be to create an application is VSA to do this, this would mean that your spreadsheet is behaving like a front-end application

  • r u gort the solution of it, if yes then plz help me i have same needfull

  • You might want to try setting up the excel file as a linked server.

  • If you know VBA in Excel write the code to open the database and insert the data from Excel in a table. Use Google to find examples.

    I never use SSIS to import data from a native Excel file.

    Make a macro in Excel which opens the file and save the sheet with the data

    as a TAB separated textfile. Then use SSIS or bulkinsert to import the textfile

    in a staging table to compare with existing data.

  • Hi,

    Thanks for reply...

    how i can link excel sheet to sql server databse table

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply