Boolean Situations when Querying SSAS DMVs

Date:


Boolean Comparison in SSAS DMVs, Error: A Boolean expression is not allowed in the context

In case you are querying SSAS DMVs it’s possible you’ll need to add some circumstances within the question.

One thing like getting all energetic relationships, maybe like beneath:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place IsActive="true"

Working the above question on an occasion of SSAS Tabular provides you the next error message:

Error: A Boolean expression isn’t allowed within the context …

Fixing that is fairly straightforward, run the beneath question to get energetic relationships:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place IsActive

Boolean Comparison in SSAS DMVs

And to get inactive relationships run this one:

choose * from $SYSTEM.TMSCHEMA_RELATIONSHIPS the place not IsActive

Boolean Comparison in SSAS DMVs

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Share post:

Subscribe

spot_imgspot_img

Popular

More like this
Related

7 Bizarre Details About Black Holes

Black holes are maybe probably the most...

Deal with and Optimize Massive Product Catalogs in Magento

Dealing with and optimizing giant product catalogs in...

Assembly Minutes Matter — My Suggestions and Methods for Be aware-Taking

I've taken my justifiable share of notes as...