Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an excel spreadsheet form sql data

Status
Not open for further replies.

mlynch199

IS-IT--Management
Dec 3, 2005
3
GB
Is it poosible to write the data from an sql table directly into an excel spreadsheet that already has been creted and contains a macro?

Thanks!
Maurice
 
i think you can create a DTS package that does this...select the source as the sql server db and the destination as the microsoft excel file...and do the field mappings...

-DNG
 
Hello,

maybe search for OPENDATASOURCE in Booms on-line

Regards,

Atomic Wedgie
 
Just as an fyi from Excel you can go to Data > Get External Date > Create New Query and run the query from there (There are additional steps required to point at the right data base). This will plug the query output directly into Excel along with column headings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top