Like we have If Not Exists in T-SQL, Is there any alternative in MDX

Hi All,
I am a newbie in MDX. I am trying to execute MDX query through SSIS Execute SQL Task. I have set Single Row as a result set. Every thing is fine, But the problem arise when the query does not return any result.
Because , this is the property of Execute SQL Task that it fails , If result set is SET and query does not return any value.
This occurance is handle in T-SQL by used of If Not Exits/If Exists , Do we have something over here i.e. MDX ?
If not then what might be the alternative for this.

Hi Shadab,
Try writing iif() (if and only if) to handle this situation.
Check this for syntax and examples:
http://msdn.microsoft.com/en-IN/library/ms145994(v=sql.105).aspx
If you have any issues please let me know.
Please vote as helpful or mark as answer, if it helps Regards, Anand

Similar Messages

  • Location.href not working in firefox. Is there any alternative script for that?

    window. location.href not working when i try to submit an ajax form.
    I am a programmer. This code works on all browser except firefox.
    Any solution for this? or any alternative code for location.href?

    A good place to ask advice about web development is at the mozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the mozillaZine forum site in order to post at that forum.

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Having you stop pestering me about openness. Have you not heard of identity theft. There is not enough security for "openness!"

    Having you stop pestering me about openness. Have you not heard of identity theft. There is not enough security for "openness!" Asking questions should be easier. This is too much going thru 4 pages to ask you one question. Why does firefox crash so often?
    == This happened ==
    A few times a week
    == a year ago.

    The questions are asked to collect information to analyze the problems you are experiencing. Otherwise we would see a lot of "It doesn't work" or "What is wrong with my Firefox" with no other details. There is no personal information requested. You can choose to leave an e-mail address so that you receive a notification when someone responds to your question; otherwise, you must search for your post when you return. With the thousands of questions received each week, searching the forum for your post when you return can be tedious, and sometimes unfruitful. The e-mail address you leave for notification is not accessible by us; the notifications are automated.
    <u>'''We are all uncompensated volunteers here; users helping other users.'''</u>
    Most crashes are caused by Extensions or Plugins. Sometimes crashes can be caused by malware or by something wrong on your system.
    <u>'''Firefox Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • HT204053 I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account?

    I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my family and one for my work. I had all three on my iphone and then I deleted my work. I wanted to get my own person @me.com account. It wouldn't let me create it from my iphone, so I created it from my Macbook Pro. I am trying to add it to my iphone, but it keeps giving me that error. If there is a way I can deactivate my work one so I can use my @me.com personal account?

    Welcome to the Apple Community.
    Unfortunately once all the 3 iCloud accounts have been created on your mobile device, you cannot create any more regardless of what you do. You will need to re-use one of the accounts that you have already created or create your new account on another device or computer.
    You should however be able to add existing accounts to your device, are you sure you aren't trying to create on rather than simply use an existing one.

  • I have a 2007 13" Macbook White. Is there any way to upgrade my OS from 10.6.8 to anything above 10.7?

    I have a 2007 13" Macbook White. Is there any way to upgrade my OS from 10.6.8 to anything above 10.7? I keep getting an error message when I try to download 10.8.3 because Apple didn't make it compatible with my machine, but I really only need 10.7. So is there ANY possible way to do this with my current Macbook? Thanks for the help guys.

    I have a 2007 13" Macbook White. Is there any way to upgrade my OS from 10.6.8 to anything above 10.7
    According to these system requirements, no, there is no way to go higher than Lion (10.7), as Mountain Lion (10.8) will not be compatible.
    http://www.apple.com/osx/specs/
    Also note that both Lion and Mountain Lion are memory hogs and the realistic minimum RAM should be 4 GB; you can run it with 2 GB, but depending on how you use your machine, you may not be happy with its performance.

  • Hi I have recentrly bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash siles to open ?

    Hi,
    I have recently bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash sites to open ?

    iPad do not support Flash
    However Skyfire, Photon, iSwifter, Browse2Go and Puffin Web Browser will provide limited Flash capability

  • Since upgrading to 10.8 I've had alot of issues burning DVD's. I've had the drive replaced and now I can burn from a new user account but not the old one. Is there any way of making the old one work?

    Since upgrading to 10.8 I've had alot of issues burning DVD's. I've had the drive replaced and now I can burn from a new user account but not the old one. Is there any way of making the old one work?
    Just want to avoild spending hours migrating everything across....

    Yes, I can read but just can't write DVD's. I get:
    This disc can’t be verified and might be unreliable. Try again using a new blank disc (error code 0x80020063).
    Originally I thought it was the old Moutain Lion DVD drive issue (but have had the drive recently replaced by Apple), so I tried creating a new account, which worked.
    In the old account I have reset SMU, Pram... but no change.

  • I got an 11 inch macbook air for christmas and now i am regretting not getting the 13 inch is there any way i can upgrade to the 13 inch still ?

    i got an 11 inch macbook air for christmas and now i am regretting not getting the 13 inch is there any way i can upgrade to the 13 inch still ?

    okay well another question the track pad on my 11 inch mac got stuck and wouldnt work and i took it to the apple store and had a tech look at it and he said it was working and i got home and it still wouldnt work so i took it back again to another tech and he said the guy before didnt fix it right and he said it was broken and that i needed a new track pad and he said he would replace it but they didnt have any trackpads in the store at the time but he fixed it enough that it barely works but he said i needed to come back to get a new trackpad because he fixed it enough that it would only work for a short period of time, so i went back the other day to another tech and told him and he said that since it still works they wouldnt do anything about it. but it barely works and barely clicks down should they fix it since the one tech told me it will only work for a short time and that if i came back they would replace my trackpad ? i have apple care and i am still under the 1 year warranty.

  • HT1311 Just wondering why my comments on Facebook do not show via iOS. Is there any setting I need to make on my iPhone 5,I love this phone. Thanks

    Just wondering why my comments on Facebook do not show via iOS. Is there any setting I need to make on my iPhone 5,I love this phone. Thanks

    Someone else may have a workaround, but, as far as I know, if you cannot interact with the screen on the iPhone, there is no way to unlock it so you can get to your contacts.
    Were you saving them to iCloud by chance? If so, you can restore them to your new phone.
    ~Lyssa

  • HT4528 I have accidentally restored my phone back to factory settings and lost my contacts, photos, and apps.  I have retrieved my apps via itunes but is there any way to reverse this to get my contacts and photos back?

    I have accidentally retored my phone back to factory settings and lost my contact list, photos and all.  I have retrieved my apps via itunes but is there any way to reverse this so I can get my photos and contact list back?

    Some accident with all the steps and warning messages provided.
    All contacts on your iPhone should be available on your computer. Not a good idea to depend on an iPhone or any cell phone alone for such important data. Photos/videos in the Camera Roll should be imported by your computer as with any other digital camera.
    Contacts and photos/videos in the Camera Roll should be included with your iPhone's backup which should have been created or updated by iTunes as the first step during the restore process - unless you declined the option.
    If you declined the option, the data is gone. If not, restore your iPhone again from the backup that was created or updated before the previous restore.

  • HT4910 i accidently deleted a note from my iphone 5 is there any way to recover it from an icloud backup?

    I accidently deleted a note from my iphone 5 is there any way to recover it from icloud?

    You have to start by erasing the phone so if there's any newer data on it that is not contained in your last backup, you'll need to save that first.  Then go to Settings>General>Reset, tap Erase All Content and Settings, go through the setup screens on the phone and when given the option, choose Restore from iCloud Backup.  Then sign into your iCloud account and choose your backup to restore from.
    Be sure you phone is connected to wifi and your charger as this may take a while to finish.

  • I have a ipod classic 5th gerneration. Is there any way I can get a new battery for it? Or does Apple only get new batteries for the 7th generations? Thanks

    I have a ipod classic 5th gerneration. Is there any way I can get a new battery for it? Or does Apple only get new batteries for the 7th generations? Thanks

    Yes you can still purchase replacement batteries your iPod from third party repair companies.  Apple does not offer replacement parts.
    Do a Google search for iPod battery replacement and you should get a plethora of results.  There are many good deals on Amazon and eBay.
    B-rock

  • I have an ipod touch 4g 8 gb is there any way i can have a 32gb hard drive put in it?

    I have an ipod touch 4g 8 gb is there any way i can have a 32gb hard drive put in it?

    No. You would need to buy a 32GB model.

  • Have IPhone 4s, I deleted some pictures is there any way I can get them back in my phone?

    Have iPhone 4s, I deleted some pictures, is there any way I can get them back on my iPhone ? Thanks

    If the photos were from Camera Roll, then they are saved on your latest iPhone backup.  You could restore the backup from iTunes (or iCloud).

Maybe you are looking for

  • ITunes 10.4 will not boot on vista.

    iTunes was working fine then I got the message that 10.4 was ready for update. I preordered he iPhone 4s so I decided to finally update iTunes. After I updated it, it will not open. When I opened the update .exe it asked to uninstall or install and f

  • Voice calls

    I had a Motorola Razr and one feature I really enjoyed is the voice recognition phone calling. Can I set up voice dialing on my Iphone??

  • Problem with move tool? (Win 7)

    On Photoshop CS4 , everytime I select the move tool and decide to move an object among a layer , it moves the object off screen , making it difficult to bring it back to the canvas to move . I know it isn't jumping layers , because only the object in

  • Pixel Bender does not show in filters after installation but shows in extension mgr as plugin

    I installed pixel bender (64bit) into my CS5 extended group through the extension manager as administrator as per directions for win 7. All went well and I restarted both PS5 and the computer. I do not have any pixel bender option under filters or an

  • How to change value of auto reload

    Hi, I want to cahnge the amount charged to my credit card when I do a reload or make a payment.  It is currently set for $16 and I want to make it $8 or $10.  I can't figure out how to change the amount, how do I change the amount billed to my credit