dbTalk Databases Forums  

Basics on looping through text file.

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


Discuss Basics on looping through text file. in the microsoft.public.sqlserver.dts forum.



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

Default Basics on looping through text file. - 04-13-2004 , 03:42 PM






Hi,

I have server names in a txt file. like so

Server1
Server 2
Etc...

I want to be able to import the server names from the text file and update a
connection in a dts package. I checked the SQL DTS articles but most are not
good for starting point.

Any ideas?

Ron Sissons, DBA
Information Technology Services
Riverside County Office of Education
3939 Thirteenth Street, Riverside, CA 92502-0868
Telephone: (909) 826-6471; FAX: [909] 826-6451


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Basics on looping through text file. - 04-14-2004 , 02:01 AM






Why not use a Dynamic Properties Task to read the file into a global
variable. You could also do this in ActiveX Script using the File System
Object. Then within ActiveX Script you can manipulate the file info, perhaps
split it into an array based on Cr+Lf, and use this for a loop driver.


--
Darren Green
http://www.sqldts.com

"Ron Sissons" <RSISSONS (AT) rcoe (DOT) k12.ca.us> wrote

Quote:
Hi,

I have server names in a txt file. like so

Server1
Server 2
Etc...

I want to be able to import the server names from the text file and update
a
connection in a dts package. I checked the SQL DTS articles but most are
not
good for starting point.

Any ideas?

Ron Sissons, DBA
Information Technology Services
Riverside County Office of Education
3939 Thirteenth Street, Riverside, CA 92502-0868
Telephone: (909) 826-6471; FAX: [909] 826-6451




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.