Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
| Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 9th, 2006, 09:35 PM
Registered User
Join Date: Jan 2006
Location: Vashon, WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to sort a text file?


I have a DTS package that extracts five different tables from a database into flat files. A VBScript combines the files into one, and places a sort key in front of each record, so that the final output file can be sorted.

How can I sort a text file? VBScript doesn't have a sort function (that I know of -- I'm a VBScript novice). Thanks for any suggestions.
Old February 12th, 2006, 06:45 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

I would select all rows that I want into a table(or temp table) and the sort that. Then send to your text file.


Old July 25th, 2007, 03:20 AM
Registered User
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I've faced a similar problem. In my case 20 different tables are dumped into one flat file. Can anyone tell me how do I separate the tables using SSIS or any other programming suit? Eventually I've to use SSIS to load them into database tables.


Old November 28th, 2007, 06:20 PM
Friend of Wrox
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc

Use the scripting guys at Microsoft


Jaime E. Maccou

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort xml file victorcorey XSLT 5 December 4th, 2007 01:40 PM
Dynamic sort order or sort datatype kapy_kal XSLT 2 September 18th, 2007 02:10 PM
how to sort cross tab.sort based on row total joxa83 Crystal Reports 7 March 2nd, 2006 09:12 AM
Unable to sort using xsl sort command sly_jimmy_boy XSLT 3 June 17th, 2005 05:15 AM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.