SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 link excel to sql server and update value from xl
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

learning_grsql
Posting Yak Master

230 Posts

Posted - 08/24/2012 :  07:26:35  Show Profile  Reply with Quote
Hi,

I would like to know is it possible to link excel file sheet as a sql server table and update values from excel.

User should be able to update value from excel into the sql server table.

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 08/24/2012 :  10:01:11  Show Profile  Reply with Quote
yep.you can .My preffered method is OPENROWSET though there are several other ways too
see below for options


http://support.microsoft.com/kb/321686



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

learning_grsql
Posting Yak Master

230 Posts

Posted - 08/25/2012 :  03:37:31  Show Profile  Reply with Quote
Thanks visakh16...but in all these cases it seems we need to manually import data into sql server table. I was looking for something if user updates value in excel file, it should automatically reflect in sql server table as in the case of access-excel linked tables...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 08/25/2012 :  13:13:58  Show Profile  Reply with Quote
for that you need to have a macro inside excel which looks for action (may be when user clicks a button) and then update a table using OPENROWSET

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

learning_grsql
Posting Yak Master

230 Posts

Posted - 10/13/2012 :  08:03:06  Show Profile  Reply with Quote
Thanks @visakh16

Now I want to import .xlsx(excel 2007) in sql server 2005 using openrowset method? As far as I learned from the above link, it seems in sql server 2005, we can only import .xls.

Do you think it's possible?

Edited by - learning_grsql on 10/13/2012 08:04:32
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000