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
 Script Library
 Exporting Sql Server Table Details to Ms-Excel
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

retheesh4u
Starting Member

2 Posts

Posted - 12/06/2006 :  02:19:03  Show Profile  Reply with Quote
I want to export the datas of a table into a excel file using an Sql Query.

When I execute that query the Excel file should be created automatically in the given path with all the datas in that table.

Can anybody give me a solution for this problem?

SwePeso
Patron Saint of Lost Yaks

Sweden
29910 Posts

Posted - 12/06/2006 :  02:27:28  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Use DTS, SSIS or OPENQUERY to do this.
But my friend, this forum is FOR WORKING SCRIPTS ONLY.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

retheesh4u
Starting Member

2 Posts

Posted - 12/06/2006 :  02:33:37  Show Profile  Reply with Quote
Can u give me the syntax of SQL Query to Export

quote:
Originally posted by Peso

Use DTS, SSIS or OPENQUERY to do this.
But my friend, this forum is FOR WORKING SCRIPTS ONLY.


Peter Larsson
Helsingborg, Sweden

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
29910 Posts

Posted - 12/06/2006 :  02:56:54  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Read all about them in Books Online.
Also read this topic http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22713 Posts

Posted - 12/06/2006 :  10:50:46  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
<<
But my friend, this forum is FOR WORKING SCRIPTS ONLY.
>>

This forum is to POST WORKING SCRIPTS ONLY.



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