dbTalk Databases Forums  

Export Data to Excel

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Export Data to Excel in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gualberto
 
Posts: n/a

Default Export Data to Excel - 02-16-2005 , 01:47 PM






Hi,
Thank for your help.
I need to export data from a sql table to a excel file but in the query I
want to use parameters (start date and finish date) and this values I need
change. (prompt me to type)

I try to use global variables but this do not accept in the query (Execute
Sql task)

Regards.




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Export Data to Excel - 02-16-2005 , 02:03 PM






Which version of DTS are you using?

You do not want the ExecuteSQL task you want the Transform Data Task.

Your Source Query will look something like

SELECT <col list> FROM <Table> WHERE <col> BETWEEN ? AND ?

You then click the parameters button and map the ? to Global Variables



"Gualberto" <gfranco (AT) info-arch (DOT) com> wrote

Quote:
Hi,
Thank for your help.
I need to export data from a sql table to a excel file but in the query
I
want to use parameters (start date and finish date) and this values I
need
change. (prompt me to type)

I try to use global variables but this do not accept in the query
(Execute
Sql task)

Regards.


Reply With Quote
  #3  
Old   
Gualberto
 
Posts: n/a

Default Re: Export Data to Excel - 02-16-2005 , 02:04 PM



Thank you.
I am new in this.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Which version of DTS are you using?

You do not want the ExecuteSQL task you want the Transform Data Task.

Your Source Query will look something like

SELECT <col list> FROM <Table> WHERE <col> BETWEEN ? AND ?

You then click the parameters button and map the ? to Global Variables



"Gualberto" <gfranco (AT) info-arch (DOT) com> wrote in message
news:gfranco (AT) info-arch (DOT) com:
Hi,
Thank for your help.
I need to export data from a sql table to a excel file but in the query
I
want to use parameters (start date and finish date) and this values I
need
change. (prompt me to type)

I try to use global variables but this do not accept in the query
(Execute
Sql task)

Regards.




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.