dbTalk Databases Forums  

SQL export .CSV to a designated location

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


Discuss SQL export .CSV to a designated location in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM






Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #12  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM






Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #13  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM



Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #14  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM



Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #15  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM



Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #16  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM



Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


Reply With Quote
  #17  
Old   
Frank Xia
 
Posts: n/a

Default Re: SQL export .CSV to a designated location - 06-19-2008 , 11:20 AM



Thank you so much! That is the guideline I am looking for!
Very helpful.

"matteus" wrote:

Quote:
On Jun 19, 12:35 am, Frank Xia <Frank... (AT) discussions (DOT) microsoft.com
wrote:
I need to schedule a SQL Script to process and then EXPORT to .CSV
file.....and then....either EMAIL out the file...OR.... FTP it to a clients
site....?

Can I get some guidance on the best approach to accomplishing this..??

Thanks a lot!

Hi frank, I would build a dts package, and
- create a connection for your source (i suppose you use sqlserver
2000 then an oledb connection should be the best)
- create a connection for the target (the excel file)
- use the Trasform Data task and link the two connections.
then if your clients are inside your lan i would rather create the
file directly on the clients.

Email could be better but, for SQL2000 i think (not completely sure)
that you must have outlook installed on your dbserver on which the
sqlserver services (agent) run in order to use the Send Mail task.
Alternatively you could use some free command line mailing programs
(try blat.exe) but your mailserver must allow relaying...

Once you have built the package you can schedule it in a job with
SqlServer agent.
Bye,
M.


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.