Re: How to handle boolean field
- From: "Kevin Dente" <kevind@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2006 11:34:08 -0800
By "translate" I meant insert rows with the translated form of
Yes/No/True/False/Whatever into the BoolValues table.
"Henrik Skak Pedersen" <skak@xxxxxxxxxxxxxxxx> wrote in message
news:ubDTHv6QGHA.5908@xxxxxxxxxxxxxxxxxxxxxxx
Hi Kevin,
Thank you very much for your reply.
I think that I then have to go for option 2, because I have to run on 2000
too. Do you know how I translate values in a table?
Thanks
Henrik.
"Kevin Dente" <kevind@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%237kOYf6QGHA.5500@xxxxxxxxxxxxxxxxxxxxxxx
I posted almost the identical question a little while back (though I never
really got a workable suggestion). Here's what I came up with on my own.
1) If your database is SQL Server 2005 and you use the SQL Native client
as the provider, SSAS will automatically display bit fields as True and
False. Note that if you use the managed SqlClient provider, this doesn't
work (I've reported this as a bug). Of course, if you want Yes/No rather
than True/False, then this doesn't help.
2) The approach I ended up taking was to snowflake in a BoolValues table.
The table had columns BoolValue_key and BoolValueName - (0, No), and (1,
Yes). Then I joined the dimension table to the BoolValues table, and
defined an attribute with NameValue set to BoolValueName. Note that I
ended up converting the bit column to an int column (although that might
not have been necessary). Localizing the result just requires translating
the BoolValueNames for the two rows in the BoolValues table.
"Henrik Skak Pedersen" <skak@xxxxxxxxxxxxxxxx> wrote in message
news:OclPBV6QGHA.4952@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have a boolean field in my table which is represented by a bit data
type. I would like to show 0=No and 1=false. I know that I can solve it
in my data source view. But I would like to translate the result into
different languages, so that is not the best solution.
I need to create an attribute based on the value.
Any ideas?
Thanks
Henrik.
.
- References:
- How to handle boolean field
- From: Henrik Skak Pedersen
- Re: How to handle boolean field
- From: Kevin Dente
- Re: How to handle boolean field
- From: Henrik Skak Pedersen
- How to handle boolean field
- Prev by Date: Re: OPENQUERY - Access denied
- Next by Date: Re: How to handle boolean field
- Previous by thread: Re: How to handle boolean field
- Next by thread: Re: processFull
- Index(es):
Relevant Pages
|