Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2004, 06:39 AM
Registered User
 
Join Date: Mar 2004
Location: Sevilla, , Spain.
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.



  #2 (permalink)  
Old April 5th, 2004, 05:18 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:02 PM.


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