Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 convert

Author  Topic 

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2005-07-05 : 04:35:05
How do you convert the Source field to varchar or string since my destination field is varchar(10)
Thanks

//**********************************************************************
// Java Transformation Script
//************************************************************************

// Copy each source column to the destination column
function Main()
{
DTSDestination("ManagerID") = DTSSource("managerID");
return(DTSTransformStat_OK);
}

Kristen
Test

22859 Posts

Posted - 2005-07-05 : 05:53:03
Append a blank string?

Kristen
Go to Top of Page

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2005-07-05 : 05:56:16
Could you please modify this as required?
Thanks
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-07-05 : 06:11:03
I think Kristen meant

DTSDestination("ManagerID") = '' & DTSSource("managerID");


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -