dbTalk Databases Forums  

DTS New line

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


Discuss DTS New line in the microsoft.public.sqlserver.dts forum.



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

Default DTS New line - 01-09-2004 , 11:26 AM






Hi,

I have a DTS that I am writing in SQL Server 8.0.

This is what I have: I am writing an Active X Script
Transformation. I want to create from my source table,
two columns in my destination table. I want to be able to
have the DTS run through the first part of my code, and
then tell it to create a new line in my destination table
to start with. And then have it continue with the rest of
my code on the second line. So when the DTS Active X
Script was done, there were two lines in the destination
table for each line in my source table.

Can anyone help me?

Thanks in advance,
Megan

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS New line - 01-09-2004 , 12:49 PM






You are probably going to best served by implementing this routine in an
Active Script task and opening the file up there. You can then read your
data source and loop through the recordset. At each iteration you insert
your own line.

That said you could use the Multi Phase Datapump in DTS to implement this

Multiphase Data Pump (Field Notes)
(http://www.sqldts.com/default.aspx?282)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Megan" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a DTS that I am writing in SQL Server 8.0.

This is what I have: I am writing an Active X Script
Transformation. I want to create from my source table,
two columns in my destination table. I want to be able to
have the DTS run through the first part of my code, and
then tell it to create a new line in my destination table
to start with. And then have it continue with the rest of
my code on the second line. So when the DTS Active X
Script was done, there were two lines in the destination
table for each line in my source table.

Can anyone help me?

Thanks in advance,
Megan



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.