Chris's profileChris Webb's BI BlogBlogLists Tools Help
    11/2/2006

    Imposing Query Timeouts

    I'm currently having an interesting email conversation about the lack of a query governor in Analysis Services and how useful it would be, and Darren Gosbell mentioned a new connection string property I wasn't aware of: timeout, which allows you to specify a timeout in seconds for your queries. To test this you'll need to open a tool which supports AS connection string properties (SQLMS doesn't) like MDX Sample app, and simply put
    timeout=1
    in the connection string. This means that any query which takes longer than one second to execute will fail in one second. How could I not know about something as useful as this?
     
    UPDATE: I've just heard from Mosha that apparently all XMLA command properties can be used in the connection string.

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Moshawrote:
    Just to clarify - Timeout is not the new connection string property. It existed since AS2000 SP4. Also, since AS2005 uses XMLA as underlying protocol, _ALL_ XMLA command properties are available as connection string properties both in OLEDB and ADOMD.NET.
     
    Nov. 2
    OMG! That IS useful! However, like the XMLA "Cancel" command, I think it will suffer from the fact that apparently not all sub-routines in AS are built to handle the cancelling of a query - hence it will not always terminate immediately on the server. It's still a great tip, though. :-)
    Nov. 2

    Trackbacks

    The trackback URL for this entry is:
    http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!932.trak
    Weblogs that reference this entry
    • None