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
 Take and feed data in excel sheet using SqlServer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

arorarahul.0688
Posting Yak Master

India
125 Posts

Posted - 05/26/2009 :  05:46:00  Show Profile  Reply with Quote
Hi Eevryone,

Can anyone please tell me, is there exists any process in sql server using which i can take data from one Excel sheet (Source) in a Table format in sql server, do some manipulations and then again feed the resultant data in a destination excel sheet in a specific format.

means

Sheet1 (Specific Format data) -> in Form of TABLE in SqlServer---
|
Updated resultant data in Excel Sheet2 (Specific Format data)<--|


thanks,
Rahul

bklr
Flowing Fount of Yak Knowledge

India
1693 Posts

Posted - 05/26/2009 :  05:51:11  Show Profile  Reply with Quote
go to query--> result to --> result to file (ctrl+shift+f)
then execute the query then u can save the file in excel sheet
Go to Top of Page

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 05/26/2009 :  05:51:43  Show Profile  Visit nr's Homepage  Reply with Quote
openrowset and ssis are two common ways to do this.

You could also control it from the spreadsheet using VB.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22744 Posts

Posted - 05/26/2009 :  06:49:40  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
See if this helps
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926



Madhivanan

Failing to plan is Planning to fail
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.06 seconds. Powered By: Snitz Forums 2000