Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
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 March 2nd, 2005, 12:17 PM
Authorized User
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transformation Question

I have a table that allows duplicate part numbers to be inserted because each part can have multiple locations example:

part_no locale
123abc London
123abc Paris
123abc Madrid

I need the DTS package to import from the source the duplicate part number with the assigned unique location name. In my VBscript I seem to be only able to add one unique row at a time. Here is the script:

Function Main()
    DTSDestination("part_no") = DTSSource("ItemNumber")
    DTSDestination("locale") = "CA PUBLIC"

End Function

I have thought of creating a DDQ but seems way too involved for what I need to do.

Any ideas?
How do I do this?

Old March 3rd, 2005, 10:22 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc


How is the your "destination" column define?

Is itemNumber a primary key?

Jaime E. Maccou

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transformation error rajashekhara XSLT 8 July 31st, 2008 05:00 AM
Conditional transformation vvenk XSLT 3 July 10th, 2008 09:09 AM
related to look up transformation. pravasis SQL Server 2005 1 July 9th, 2007 11:06 PM
using transformation KieshaJ310 ASP.NET 2.0 Basics 2 June 6th, 2007 05:56 AM

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