Substring Findstring in SSIS

Hi, I need to extract 552.04 from "552.04 (02:07)" in SSIS Derived Column Transformation Editor, each field has this format "0.00 (0:00)". Am I in the right path using Substring Findstring?

Thanks a lot!
more ▼

asked Sep 20 '10 at 09:47 PM in Default

ybreg gravatar image

1 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Sure are, try this

SUBSTRING(stringValue,1,FINDSTRING(stringValue," ",1) - 1)
more ▼

answered Sep 20 '10 at 10:01 PM

Daniel Ross gravatar image

Daniel Ross
2.9k 10 12 13

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Sep 20 '10 at 09:47 PM

Seen: 2620 times

Last Updated: Sep 20 '10 at 09:47 PM