Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Automatic Update from Excel to SQL Expand / Collapse
Author
Message
Posted Thursday, September 16, 2010 10:09 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, March 24, 2014 4:48 PM
Points: 69, Visits: 291
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

Post #987402
Posted Thursday, September 16, 2010 10:15 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, March 15, 2014 4:31 AM
Points: 2,808, Visits: 7,173
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
Post #987404
Posted Thursday, September 16, 2010 10:22 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, March 24, 2014 4:48 PM
Points: 69, Visits: 291
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
Post #987416
Posted Thursday, September 16, 2010 10:25 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, March 24, 2014 4:48 PM
Points: 69, Visits: 291
Is there any way to do this apart from scheduling it to check often.

YOUR RESPONSE IS HELPFUL.

Swetha K
Post #987420
Posted Thursday, September 16, 2010 10:26 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, March 15, 2014 4:31 AM
Points: 2,808, Visits: 7,173
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
Post #987423
Posted Tuesday, April 16, 2013 5:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, August 13, 2013 3:10 AM
Points: 6, Visits: 45
r u gort the solution of it, if yes then plz help me i have same needfull
Post #1442692
Posted Wednesday, April 17, 2013 9:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 08, 2013 10:56 AM
Points: 2, Visits: 28
You might want to try setting up the excel file as a linked server.
Post #1443336
Posted Thursday, April 18, 2013 1:33 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 12:24 AM
Points: 203, Visits: 1,304
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.


Post #1443635
Posted Sunday, April 21, 2013 11:40 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, August 13, 2013 3:10 AM
Points: 6, Visits: 45
Hi,

Thanks for reply...

how i can link excel sheet to sql server databse table

Post #1444857
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse