You want, as far as I can tell, to take a DB and export all tables to text
files right?
How about this then?
How to export all tables in a database
(http://www.sqldts.com/default.aspx?299)
--
--
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Tim Barbour" <tgbarboour (AT) comcast (DOT) net> wrote
Quote:
Thank you for your feedback. I'm a newbie to SQL Server (about 4 month).
I have the Developers Edition and use SQL Server Enterprise Manager
|
extensively. I have used DTS for import and export. I run SQL queries to
produce 1,000's of small DB tables (each with few thousand records)
extracted (via sql scripts run using SQL Query Analyzer) from a large
source data table. I'd like to export these many small tables as text
files (using DTS | Export | Text functionality. The process is simple
(column mapping, transformations, etc.). I save the DTS Package to make
re-running easier. I can save the DTS package as SQL Server, Structured
Storage File, or Visual Basic file.
Quote:
The DTS Designer is easy to understand and use. However, my goal is to
use DTS Export to create 1000s of small text files from a large SQL DB. To
|
do this with the Designer would require graphically constructing 1000s of
connections (text file destinations) from the one SQL Server DB (OLE data
provider). Although this is do-able, to create the many flat files I need,
it's probably not the most efficient way of accomplishing my task.
Quote:
So, I'm wondering if I can build a small DTS package (using the Designer),
then save the Package as a Visual Basic file, and then modify the .BAS file
|
by introducing additional code (mostly via cut and paste and minor code
revisions) to add the many additional flat file connections I'd like as a
part of the DTS Package. Does a saved Structured Storage File help me?
Quote:
I'm looking for a means of using the DTS export funtionality to accomplish
the above, but with code (if possible) not with the Designer, since the
|
Designer construction would be tedios to construct given my one big SQL
database table to many small text destination files.
Quote:
Can I use the DTS VB file? Can I use SQL Query Analyzer to construct SQL
scripts to accomplish the DTS export process? Can I use Visual Studio .NET
|
to create and run a DTS export program (.BAS or otherwise)?
Quote:
Thanks for your time reviewing this. I'd like to use the DTS Designer as
you suggest, but it seems a bit impractical when 1000s of connections are
|
involved? Can I somehow cut and paste Designer connections to build a small
construct into a large one quickly?
Quote:
I hope I've explained myself well enough. I may be missing something that
may be obvious.
Tim Barbour
tgbarbour (AT) comcast (DOT) net |