Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Exporting Sql Server Table Details to Ms-Excel

Author  Topic 

retheesh4u
Starting Member

2 Posts

Posted - 2006-12-06 : 02:19:03
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

30421 Posts

Posted - 2006-12-06 : 02:27:28
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 - 2006-12-06 : 02:33:37
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

30421 Posts

Posted - 2006-12-06 : 02:56:54
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

22864 Posts

Posted - 2006-12-06 : 10:50:46
<<
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
   

- Advertisement -