Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 6th, 2002, 01:33 PM
daddygweedo daddygweedo is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 1 daddygweedo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Complex DTS

I am attempting to pull out selected information from and Access database and output it as a CSV file. The issue arises when I need to replace all commas in the Customer field with some string, in this case #dlm#. If I remove the REPLACE function the DTS works fine, I add it and I can no longer populate the source fields for the transformation. Has anyone had any problems like this? I've used IIF function and it worked fine, so I don't understand where the REPLACE function has problems. If you have any other methods of accomplishing the same task please let me know.

Thanks,

Brad.

SQL statement:

SELECT [case details].Customer_UID AS src_cntct_id, "1" AS cntct_status, "" AS prod_build, [Customer_UID] & [Site] AS person_site_id, [case details].Customer_UID AS person_src_code, "" AS person_first_nm, "" AS person_last_nm,

REPLACE([case details].Customer,',','#dlm#') AS person_full_nm,

"" AS person_phone_1, "" AS person_phone_2, "" AS person_email_addr
FROM [case details];

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Complex DTS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT