dbTalk Databases Forums  

change Data-Transfer ActiveX Template?

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


Discuss change Data-Transfer ActiveX Template? in the microsoft.public.sqlserver.dts forum.



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

Default change Data-Transfer ActiveX Template? - 06-27-2005 , 09:36 AM






Hello,

i would like to change the DTS-AtiveX template:
If i create a new Data-Tranform with ActiveX, so i get ever this template:
'************************************************* *********************
' Visual Basic Transformation Script
'************************************************* ***********************

' Copy each source column to the destination column
Function Main()
DTSDestination("Name") = DTSSource("Name")
Main = DTSTransformStat_OK
End Function

Can i change this? How can i change it?

THX
Michael



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

Default Re: change Data-Transfer ActiveX Template? - 06-27-2005 , 12:50 PM






Not sure what you mean but the text you have posted is an Active Script
transform and you can change this in the DTS Designer (Transforms tab for
the DataPump). Where are you seeing this? To what would you like to change
it?



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Michael Kruss" <michael.kruss (AT) spider-lcm (DOT) de> wrote

Quote:
Hello,

i would like to change the DTS-AtiveX template:
If i create a new Data-Tranform with ActiveX, so i get ever this template:
'************************************************* *********************
' Visual Basic Transformation Script
'************************************************* ***********************

' Copy each source column to the destination column
Function Main()
DTSDestination("Name") = DTSSource("Name")
Main = DTSTransformStat_OK
End Function

Can i change this? How can i change it?

THX
Michael




Reply With Quote
  #3  
Old   
Michael Kruss
 
Posts: n/a

Default Re: change Data-Transfer ActiveX Template? - 06-28-2005 , 04:55 AM



I've got 10 rpt-files, i would like to transfer it to my SQL Server. So i
must change every ActiveX with the same. So i must open every Data-Tranform
and copy end paste this (or like this)

Function Main()
myv = TRIM(DTSSource("Name"))
IF LEN(myv)=0 OR lcase(myv) = "null" THEN
myv = NULL
END IF
DTSDestination("Name") = myv
Main = DTSTransformStat_OK
End Function

every rtp-file has 20-30 Datafields. With an other ActiveX Template, i could
customise my Data-Transform faster ....

THX 4 help
Michael



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Not sure what you mean but the text you have posted is an Active Script
transform and you can change this in the DTS Designer (Transforms tab for
the DataPump). Where are you seeing this? To what would you like to
change it?



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Michael Kruss" <michael.kruss (AT) spider-lcm (DOT) de> wrote in message
news:u0srmWyeFHA.1044 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

i would like to change the DTS-AtiveX template:
If i create a new Data-Tranform with ActiveX, so i get ever this
template:
'************************************************* *********************
' Visual Basic Transformation Script
'************************************************* ***********************

' Copy each source column to the destination column
Function Main()
DTSDestination("Name") = DTSSource("Name")
Main = DTSTransformStat_OK
End Function

Can i change this? How can i change it?

THX
Michael






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

Default Re: change Data-Transfer ActiveX Template? - 06-28-2005 , 12:50 PM



OK then that is possible but you must ensure that the SourceColumns and the
DestinationColumns are available in each "version"
These will not magically change just because you change the ActiveScript
transform

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Michael Kruss" <michael.kruss (AT) spider-lcm (DOT) de> wrote

Quote:
I've got 10 rpt-files, i would like to transfer it to my SQL Server. So i
must change every ActiveX with the same. So i must open every
Data-Tranform and copy end paste this (or like this)

Function Main()
myv = TRIM(DTSSource("Name"))
IF LEN(myv)=0 OR lcase(myv) = "null" THEN
myv = NULL
END IF
DTSDestination("Name") = myv
Main = DTSTransformStat_OK
End Function

every rtp-file has 20-30 Datafields. With an other ActiveX Template, i
could customise my Data-Transform faster ....

THX 4 help
Michael



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:upCFnC0eFHA.256 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Not sure what you mean but the text you have posted is an Active Script
transform and you can change this in the DTS Designer (Transforms tab for
the DataPump). Where are you seeing this? To what would you like to
change it?



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Michael Kruss" <michael.kruss (AT) spider-lcm (DOT) de> wrote in message
news:u0srmWyeFHA.1044 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

i would like to change the DTS-AtiveX template:
If i create a new Data-Tranform with ActiveX, so i get ever this
template:
'************************************************* *********************
' Visual Basic Transformation Script
'************************************************* ***********************

' Copy each source column to the destination column
Function Main()
DTSDestination("Name") = DTSSource("Name")
Main = DTSTransformStat_OK
End Function

Can i change this? How can i change it?

THX
Michael








Reply With Quote
  #5  
Old   
Michael Kruss
 
Posts: n/a

Default Re: change Data-Transfer ActiveX Template? - 06-29-2005 , 04:02 AM




Quote:
OK then that is possible but you must ensure that the SourceColumns and
the
DestinationColumns are available in each "version"
These will not magically change just because you change the ActiveScript
transform
How? You write it is possible, but how can i change the ActiveX Template?

plz help
Michael




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

Default Re: change Data-Transfer ActiveX Template? - 06-29-2005 , 12:55 PM



And as stated it will not be a simple case of simply changing this
"template". The task will fail if you do not have the columns referenced by
the script in your datapump available.

The property you are looking for is on the Transformation Object

Have a look here in BOL

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\dtsprog.chm::/dtspproptz_26pm.htm

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Michael Kruss" <michael.kruss (AT) spider-lcm (DOT) de> wrote

Quote:
OK then that is possible but you must ensure that the SourceColumns and
the
DestinationColumns are available in each "version"
These will not magically change just because you change the ActiveScript
transform

How? You write it is possible, but how can i change the ActiveX Template?

plz help
Michael




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.