Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > BI Monkey
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

SSIS Expression Language basics

This is a discussion on SSIS Expression Language basics within the BI Monkey forums, part of the CORTEX Blogs category; I’ve seen a fair bit of traffic for my post on the Conditional Split, and I’m betting that a fair amount of problems people are having relate to getting the ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 6th August 2009, 09:15 PM   #1
Guru
 
Join Date: Jun 2009
Posts: 122
James Beresford is on a distinguished road
Thumbs up SSIS Expression Language basics

I’ve seen a fair bit of traffic for my post on the Conditional Split, and I’m betting that a fair amount of problems people are having relate to getting the syntax for the SSIS Expression language right. The official documentation is here on MSDN, but below I’ll spell out some basic concepts to get people going:

Format of variables:

Variables need to be in the format:
@[Namespace::Variablename]

Note that both and are case sensitive, so if you type @[NameSpace::VariableName], it will error stating it is unable to find your variables. Namespace is optional – if you aren’t using it this is not a problem – and by default every variable is in the “User” namespace.

Basic comparisom operators:

Equals: Two equals signs (==)
@[Namespace::Variablename] == 1

Not Equal: Exclamation mark and an equals sign (!=)
@[Namespace::Variablename] != 1

Less than: Less than symbol (= 1

And: Two ampersands (&&)
@[Namespace::Variablename] == 1 && @[Namespace::Variablename2] == 1

Or: Two pipes (||)
@[Namespace::Variablename] == 1 || @[Namespace::Variablename2] == 1

If statement: Boolean statement, quotation mark, result if true, colon, result if false (Boolean ? True : False)
@[Namespace::Variablename] == 1 ? “True” : “False”

I hope this helps get you started. For more information, try these articles / videos:

Get More from the original blog...
James Beresford is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Speaking the Language of the CEO Infohrm Infohrm 0 6th August 2009 01:14 PM
SSIS Loops that do not fail James Beresford BI Monkey 0 3rd August 2009 07:05 PM
Do? While / Until Loops in SSIS James Beresford BI Monkey 0 23rd July 2009 10:30 PM
Risk management basics spelled out to small deposit-takers Latest News Headlines 2009 Q3 News Headlines 0 14th July 2009 11:07 AM
What is the easiest/best first functional language to learn ? Leigh Kennedy I SQL 0 8th July 2009 03:36 PM


All times are GMT +11. The time now is 02:01 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO