all groups > sql server programming > may 2007 >
You're in the

sql server programming

group:

DTS program


DTS program John
5/23/2007 11:58:02 PM
sql server programming: May I get a sample DTS program to do the following task?

Read the records from a table X and export the data part by part into excel
files untill all records are exported.

Eg. Export 100 records in each file. The file name should be like
Samplefile_RecNo_1_to_100.xls, Samplefile_RecNo_101_to_200 etc.

Appreciate your valuable answers.

Thanks,
Re: DTS program Uri Dimant
5/24/2007 12:00:00 AM
John

You can query table for SELECT * FROM tbl WHERE ids BETWEEN 1 AND 100 to
export it to Excel. Also you can use dynamic variable to specify for the
query. Lots of info along with examples you can read on www.sqldts.com




[quoted text, click to view]

Re: DTS program vt
5/24/2007 12:00:00 AM
John

see the following link
http://weblogs.sqlteam.com/mladenp/archive/2006/07/25/10771.aspx

Regards
VT
Knowledge is power, share it....
http://oneplace4sql.blogspot.com/


[quoted text, click to view]

Re: DTS program vt
5/24/2007 12:00:00 AM
Hi,

If you want to learn more on DTS then check this site www.sqldts.com
but i am sure dynamic sql + excel export sp could be enough to do this job

Regards
VT
Knowledge is power, share it....
http://oneplace4sql.blogspot.com/
[quoted text, click to view]

Re: DTS program John
5/24/2007 3:15:01 AM
Thanks very much for your reply.....

But Im looking for a DTS application, i have a similar complex requirement
to do using DTS package. I would like to know, how to use those various
sqltasks, sqldriventaks etc in DTS.

Please help !!!

Thanks again !!
John

[quoted text, click to view]
Re: DTS program John
5/24/2007 6:44:01 AM
Thanks very much VT !!!

[quoted text, click to view]
AddThis Social Bookmark Button