MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 9th, 2004, 08:35 AM
cahorsley cahorsley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 6 cahorsley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Export queries to individual Excel files

I set up a DTS package using the export wizard to perform a multi table query that I am then exporting to Excel. The query is being sorted by the EmployeeID. . I would like to find a way to replace the reference to a specific EmployeeID (inside of the query) with a global variable and automatically export using the EmployeeID(global variable) as the name of the Excel file.

I set up a global variable named gEID and am populating the global variable with a query that extracts just the EmployeeIDs from the employees table. Can someone please suggest a way to loop through each EmployeeID as each query is run and Excel filed is exported?

Have seen several articles concerning looping but they usually applied to importing data not exporting to individual files.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Export queries to individual Excel files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway