RE: SSIS Expression Builder Replace function



Charles,

I get a syntax error on the last line '"','') AS ErrorMessage". It thinks
there is an unclosed apostrophe.
--
RMoore


"Charles Wang[MSFT]" wrote:

Hi RMoore,
I understand that you would like to know how to replace " to nothing in the
error description.
If I have misunderstood, please let me know.

Please try the following:
--------------------------------------------------------------------------
"SELECT 'TASKNAME="+@[System::SourceName]
+" ErrorStepID="+@[System::SourceID]
+" ErrorCode="+(DT_STR,15,1252)@[System::ErrorCode]
+" ErrorDescription=' + REPLACE('" +@[System::ErrorDescription] + "',
'"','') AS ErrorMessage"
--------------------------------------------------------------------------

Hope this helps. If you have any other questions or concerns, please feel
free to let me know. Have a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================


.



Relevant Pages

  • Re: multithreaded tcp/ip server large page file
    ... As a result of seeing the Memory usage climb I've started calling .dispose for all objects I use that implement it. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Best way to process data, async IO and completion ports
    ... A thread pool is an efficient mechanism for dispatching work to worker ... A good rule of thumb is to try to keep all CPUs busy by ... Microsoft Online Community Support ... initial response from the community or a Microsoft Support Engineer ...
    (microsoft.public.win32.programmer.kernel)
  • RE: LNK1105 when CPP module is referenced
    ... So to test I need to remove the reference in my test program (in the same ... I am only suspecting a windows update, as far as I can remember this started ... Microsoft Online Community Support ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.vc.ide_general)
  • Re: Intermittent work in UI thread
    ... Thank you again Joseph, that is exactly what I was trying to do. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.vc.mfc)
  • Re: Access 2007 Ribbon & toolbars
    ... that works for the commandbars. ... DoCmd.ShowToolbar "ribbon", acToolbarNo does hide the ribbon, office ... Microsoft Online Community Support ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.access.forms)

Loading