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 31st, 2004, 06:39 AM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to riuryK
Default Transforming data and same labels in source table

Hello, I have a problem when transforming (copying) data into a new table. Although the column names are different, I have some columns with the same label, i.e:

data1 DECIMAL(13,2) LABEL "Label 1",
data2 DECIMAL(13,2) LABEL "Label 1"

So, when I click on the "Transformations" tab, data1 is supposed to be copied into the new destination field, i.e., "newdata1" but data2 is not copied into "newdata2". Instead of that, also data1 is copied into "newdata2". This happens because SQL Server seems to be taking not the field name but the label name. I mean, because of both of the two source field have a label named "Label 1", SQL Server always takes the first one (data1) and with this field it fills in the two destination fields, loosing the content of data2 this way.

Is there a way to tell SQL Server not to map the source columns by label but by column name?

Thanks a lot.

PD: I know this information may be confused. If you have any questions or doubts, please, post it. I'll be glad to answer in order to get a solution.

PD: There's no way to change the label names because these tables are already working in a complex enterprise and any change in the structure of any table may be catastrophical.



 
Old April 5th, 2004, 05:18 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
Default

take each step separately.
first transform your data1 data to NewData1, on success
transform your data2 data to newdata2 or create a new table destination table.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Transforming data in required XML Format pvasudevan XSLT 6 September 6th, 2006 02:34 AM
Transforming XML data in an ASP file using XSLT hussainm Classic ASP XML 0 May 31st, 2006 03:21 PM
transforming data to Excel x_ray SQL Server DTS 1 December 30th, 2005 01:07 AM
Using Temp Table as Source Error S_Pete SQL Server DTS 4 July 15th, 2004 03:17 PM
Data Labels on Graphs NotOnUrNelly Excel VBA 2 November 3rd, 2003 02:09 PM





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