Showing posts with label regarding. Show all posts
Showing posts with label regarding. Show all posts

Wednesday, March 21, 2012

Qury regarding SQl Reporting services 2005(Authentication Problem)

Hi experts,
I have some questions on Sql server reporting services 2005.
First one is that on my report server there are some reports for which
i want to remove authentication
i.e. Any body can run those reports without giving any user name and
password, How i can do this please tell me.
Second thing is
For multiple selection, how to implement it because previously i was
working on SSRS 2000
I can show now multipple selection check list boxes now but in quert
how i can implement that
in query i wrote like this
Select * from Table where
City like @.Dataset2
But when i select multiple parameters for city it is giving error
if i select one parameter then it is running fine
So please tell me how to do these.
Thanks & Regards
DineshOn Mar 18, 2:51 pm, "Dinesh" <dinesh...@.gmail.com> wrote:
> Hi experts,
> I have some questions on Sql server reporting services 2005.
> First one is that on my report server there are some reports for which
> i want to remove authentication
> i.e. Any body can run those reports without giving any user name and
> password, How i can do this please tell me.
> Second thing is
> For multiple selection, how to implement it because previously i was
> working on SSRS 2000
> I can show now multipple selection check list boxes now but in quert
> how i can implement that
> in query i wrote like this
> Select * from Table where
> City like @.Dataset2
> But when i select multiple parameters for city it is giving error
> if i select one parameter then it is running fine
> So please tell me how to do these.
> Thanks & Regards
> Dinesh
To remove report authentication (on a report-by-report basis), select
a report in the Report Manager, then select the Properties tab and
select the very bottom radio button that says 'Credentials are not
required' and then 'Apply.'
Something like the below query should work for the multi-select
parameter:
--CREATE PROC SomeProc
DECLARE
@.CityList VARCHAR(MAX)
--AS
DECLARE @.CityListBuffer VARCHAR(MAX),
@.END_POSITION INT;
--TEST DATA--
SET @.CityList = 'Chicago, New York, Miami, San Diego, Los Angeles,
Nashville';
--TEST DATA--
CREATE TABLE #CityList (City INT);
SET @.CityListBuffer = @.CityList;
WHILE (LEN(@.CityListBuffer) > 0)
BEGIN
IF (CHARINDEX(',', @.CityListBuffer) > 0)
BEGIN
SET @.END_POSITION = CHARINDEX(',', @.CityListBuffer);
INSERT INTO #CityList VALUES (SUBSTRING(@.CityListBuffer, 1,
(@.END_POSITION - 1)));
END
IF (CHARINDEX(',', @.CityListBuffer) = 0)
BEGIN
SET @.END_POSITION = LEN(@.CityListBuffer);
INSERT INTO #CityList VALUES (SUBSTRING(@.CityListBuffer, 1,
(@.END_POSITION + 1)));
END
SET @.CityListBuffer = RIGHT(@.CityListBuffer, (LEN(@.CityListBuffer)
- @.END_POSITION));
END
SELECT * FROM TABLE WHERE CITY IN (SELECT City FROM #CityList)
DROP TABLE #CityList;
You may have to change the charindexes above for a different delimiter
(i.e., ''',''' for strings, etc); but it should work.
Regards,
Enrique Martinez
Sr. SQL Server Developer|||On Mar 19, 4:25 pm, "EMartinez" <emartinez...@.gmail.com> wrote:
> On Mar 18, 2:51 pm, "Dinesh" <dinesh...@.gmail.com> wrote:
>
>
> > Hi experts,
> > I have some questions on Sql server reporting services 2005.
> > First one is that on my report server there are some reports for which
> > i want to remove authentication
> > i.e. Any body can run those reports without giving any user name and
> > password, How i can do this please tell me.
> > Second thing is
> > For multiple selection, how to implement it because previously i was
> > working on SSRS 2000
> > I can show now multipple selection check list boxes now but in quert
> > how i can implement that
> > in query i wrote like this
> > Select * from Table where
> > City like @.Dataset2
> > But when i select multiple parameters for city it is giving error
> > if i select one parameter then it is running fine
> > So please tell me how to do these.
> > Thanks & Regards
> > Dinesh
> To remove report authentication (on a report-by-report basis), select
> a report in the Report Manager, then select the Properties tab and
> select the very bottom radio button that says 'Credentials are not
> required' and then 'Apply.'
> Something like the below query should work for the multi-select
> parameter:
> --CREATE PROC SomeProc
> DECLARE
> @.CityList VARCHAR(MAX)
> --AS
> DECLARE @.CityListBuffer VARCHAR(MAX),
> @.END_POSITION INT;
> --TEST DATA--
> SET @.CityList = 'Chicago, New York, Miami, San Diego, Los Angeles,
> Nashville';
> --TEST DATA--
> CREATE TABLE #CityList (City INT);
> SET @.CityListBuffer = @.CityList;
> WHILE (LEN(@.CityListBuffer) > 0)
> BEGIN
> IF (CHARINDEX(',', @.CityListBuffer) > 0)
> BEGIN
> SET @.END_POSITION = CHARINDEX(',', @.CityListBuffer);
> INSERT INTO #CityList VALUES (SUBSTRING(@.CityListBuffer, 1,
> (@.END_POSITION - 1)));
> END
> IF (CHARINDEX(',', @.CityListBuffer) = 0)
> BEGIN
> SET @.END_POSITION = LEN(@.CityListBuffer);
> INSERT INTO #CityList VALUES (SUBSTRING(@.CityListBuffer, 1,
> (@.END_POSITION + 1)));
> END
> SET @.CityListBuffer = RIGHT(@.CityListBuffer, (LEN(@.CityListBuffer)
> - @.END_POSITION));
> END
> SELECT * FROM TABLE WHERE CITY IN (SELECT City FROM #CityList)
> DROP TABLE #CityList;
> You may have to change the charindexes above for a different delimiter
> (i.e., ''',''' for strings, etc); but it should work.
> Regards,
> Enrique Martinez
> Sr. SQL Server Developer- Hide quoted text -
> - Show quoted text -
Hi Enrique,
I have tried what you suggested for removing the authentication but
after doing like that report is not rendring it is showng error that
credential is not set.
So please tell what to do... This i done for a single report only
suppoese if i want to remove authentication from my report server it
self then what to do, how i can implement that.
Regards
Dinesh

Friday, March 9, 2012

Quick Question regarding number of instances...

I am developing an application for a client who already has a liscensed SQL server running. They have a software package that requires an instance using "Windows Only" for the authentication mode. I need an instance to use "SQL Server and Windows" for my application to be able to speak with the server from other computers on their network (or at least I believe I do...).

My question is, "is there any restrictions on the 'number' of instances an institution can run on a computer that is liscensed to run the software"?

Alternately, if there is a limit, I need to figure out if it is possible to set up the application (VB6, btw) to connect to the server from outside the host computer if it is using "Windows Only" Authentication. The application will be installed on several computers in the client's network and I'm not familiar with how to dynamicly poll the 'current Windows Login' information.

It would be much simpler for the application to create a new instance with the desired authentication method, but is there a security issue in doing this? Would the data be any more at risk to outside corruption using the SQL server authentication mode?Number of named instances if default instance is already present is 15. Total number of instances including default instance cannot exceed 16.

Windows authentication is safer simply because there is no need to provide user ID and password in clear text. If you use OLE DB Provider then "Intgrated Security=SSPI'and for DSN-less connections, - "Trusted_Connection=Yes"

Quick question regarding Foreign Keys

Im using SQL Server 2000 and am trying to establish a foreign key in
a table that already exists. So I tried executing:
Alter Table Book
Foreign Key (PublisherCode) References Publisher
It gives me the error:
"Incorrect syntax near the keyword Foreign "
Any idea why this is happening?
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/Programming...77.ht
ml
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz
.com/eform.php?p=844431Here's an example and the correct syntax:
ALTER TABLE b ADD CONSTRAINT X FOREIGN KEY (j) REFERENCES a(i)
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"Xee" <UseLinkToEmail@.dbForumz.com> wrote in message
news:4_844431_0c41147eef0173be529f08af89
751d60@.dbforumz.com...
> I'm using SQL Server 2000 and am trying to establish a foreign key in
> a table that already exists. So I tried executing:
> Alter Table Book
> Foreign Key (PublisherCode) References Publisher
> It gives me the error:
> "Incorrect syntax near the keyword 'Foreign' "
> Any idea why this is happening?
> --
> Posted using the http://www.dbforumz.com interface, at author's request
> Articles individually checked for conformance to usenet standards
> Topic URL:
> http://www.dbforumz.com/Programming...pict243077.html
> Visit Topic URL to contact author (reg. req'd). Report abuse:
> http://www.dbforumz.com/eform.php?p=844431|||Your statement is legal if you just insert the ADD keyword:
ALTER TABLE Book ADD
FOREIGN KEY (PublisherCode) REFERENCES Publisher
However, this will create a foreign key constraint with a default name,
something like: "FK__Book__publisherc__7A6A5B6E" and it will be different
each time you run the code. Default names are difficult to work with and
will cause you problems later. To avoid default names, always specify a name
explicitly ("fk_book_publisher" in this example):
ALTER TABLE Book ADD CONSTRAINT fk_book_publisher
FOREIGN KEY (PublisherCode) REFERENCES Publisher
David Portas
SQL Server MVP
--|||On 26 Jul 2005 18:35:48 -0400, Xee wrote:

>Im using SQL Server 2000 and am trying to establish a foreign key in
>a table that already exists. So I tried executing:
>Alter Table Book
>Foreign Key (PublisherCode) References Publisher
>It gives me the error:
>"Incorrect syntax near the keyword Foreign "
>Any idea why this is happening?
Hi Xee,
Try adding the keyword "Add":
Alter Table Book
Add Foreign Key (PublisherCode) References Publisher
Or, even better, provide a name for your constraint as well, to
facilitate future reference:
Alter Table Book
Add Constraint FK_Book_Publisher
Foreign Key (PublisherCode) References Publisher
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)

Quick question regarding association rules...

Hello,

I'm new to analysis services and hopefully this is a quick & easy question. I have a couple of quite large (163,000 tuple) tables with columns essentially representing a bit vector. I would like to mine for association rules but the number of '1' values are very, very sparse and they are the only objects of interest. How can I get more control over the algorithmthat is, how can I stipulate that the state of the column must be '1' to be considered? Any help or direction to the proper documentation would be great.

When creating the Data Source View, before building your mining model, you could use a View or a named query which would enable you only to consider columns with your required value. See the following link for information on how to add a named query: http://msdn2.microsoft.com/en-us/library/ms175683.aspx

Wednesday, March 7, 2012

Quick Q: regarding static dataAccess class and concurrency

Im new to SQL and DB in general.
Ive been experimenting and right now I have a 1 static dataAccess class that handles every query to the DB.

Q: Do Static classes such as a static dataAccess class need to be threadsafe as there is only one instance of these within the entire application.See the second bullet here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconThreadingDesignGuidelines.asp

Monday, February 20, 2012

questions regarding udp port 1434

As I said in a previous post, I am in the process of securizing a
group of sqlservers.
After finishing a SQLServer installation, I noticed that UDP port 1434
was listening on the machine. I did some researches about that port
and it seems it is used to map TCP ports to instance names. This port
would then act similarely to the RCP Portmapper.
I dont want this port to be openened since my unique db client is an
asp server and that this asp server always "know" the tcp port (the
port is hardcoded within the asp code).
So my questions are:
1. Did I correctly understand the usage of UPD 1434?
2. How can I shut it down?
3. If it cannot be shut down (that would not surprised me), how can I
change it?
thank you
BTG"Before The Gods" <before.the.gods@.gmail.com> wrote in message
news:c1e81694.0408240459.3d4cf54d@.posting.google.com...
> As I said in a previous post, I am in the process of securizing a
> group of sqlservers.
> After finishing a SQLServer installation, I noticed that UDP port 1434
> was listening on the machine. I did some researches about that port
> and it seems it is used to map TCP ports to instance names. This port
> would then act similarely to the RCP Portmapper.
> I dont want this port to be openened since my unique db client is an
> asp server and that this asp server always "know" the tcp port (the
> port is hardcoded within the asp code).
> So my questions are:
> 1. Did I correctly understand the usage of UPD 1434?
> 2. How can I shut it down?
> 3. If it cannot be shut down (that would not surprised me), how can I
> change it?
I believe the following article addresses your questions and explains how to
change the default setting:
How to use static and dynamic port allocation in SQL Server 2000
http://support.microsoft.com/defaul...kb;en-us;823938
Steve

Questions regarding Reporting Service SOAP

Hi,
I using reporting service SOAP in my application. I would like to know..

- what is the method for delete a report
- there is list children method for listing reports from certain folder but how to get list of catalog or list of folders from reporting service, but method to use.

Thanks and best regards!

Delete a report: DeleteItem( itempath )

List folders: Call ListChildren(parentpath) and filter the resulting CatalogItem collection for folders. There is no way to only return folders from ListChildren.

List catalog: This is not meaningful because any given Report Server has one and only one catalog.

Questions on translation and naming attribute

Hello I have a few questions regarding the translations.

1. Is it possible to create this neat auto-generated date dimension in any other languages than english?

2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures?

3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later?

Thanks

// Richard

Hi Richard,

1. Yes, at the bottom of the wizard you can pick the language for the dimension.

2. I don't understand the question.

3. If I understand you correctly, You want show the name instead of the value for the code. To do this you have to choose the NameColumn property for the code hierarchy to be the Name field in the dimension table. Its kinda hard to find, be sure to click the plus sign to specify the type

Hope this helps

David Botzenhart.

|||

When I choose the Currentcy format string for a measure SSAS makes the results like so: "$1,xxx,xxx". Since I'm creating a swedish solution

I need the answers to be "1,xxx,xxx Kr" instead. Where do I set this? If I make a calculated member it works, but not on the auto-generated members.

As for the date-dimension, there's no swedish language in the drop-down-list. Can it be added?

Thanks

// Richard

|||

Here is a blog which explains exactly how to do it: http://sqljunkies.com/WebLog/mosha/archive/2005/10/13/mdx_format_currency.aspx

HTH,

Mosha (http://www.mosha.com/msolap)

|||

2. In BIDS choose the "Cube Structure" tab. Place yourself on the cube and choose properties. In here, you can select at language for the cube. Set it to Swedish and you should be good to go.

3. Is this an issue with your client application? Do you want the name attribute to be used by default when you select the dimension? In that case, what app. are you using?

|||

Thank you both, your posts helped me understand how it works. But unfortunatley, the documentation inclined by your post where I can find the language codes doesn't seem to contain them? Atleast not my Visual Studio documentation, which are you referring to?

Michael, I have the language set to Swedish for the cube. That's part of the problem, it doesn't work.

Mosha, if I find the language code, can I then set it as a calculation for the entire cube in the calculations tab? Something like having the line

Language(CURRENT CUBE) = 'some code' ?

Thanks

|||

You can get the list of LCID codes here: http://msdn2.microsoft.com/en-us/library/ms903928.aspx (although they are listed in HEX, you will need to translate to decimal)

Once you find your code, simply add

LANGUAGE(this) = code;

at the end of your MDX Script. It will apply to the whole cube.

|||

Thanks, but it doesn't work. I still get $'s in my Currency format :(, any ideas?

|||Well - what's the locale of the user connecting to the cube?|||All regional settings in windows are Swedish|||What is the locale ID that you use in this expression ?|||

Hello Mosha. Can we get a list that is not listed in HEX but is translated?

I am from Sweden so I can confirm that SSAS2005 currency format will not change depending on your local regional settings for the O/S. In Excel, or other Office applications and SQL Server 2005, it will but not in SSAS2005.

Your recommendation, on your BLOG, to script this will work, but I have not found the link to the codes until you published it.

A better and translated list of these codes will be much appreciated.

Regards

Thomas Ivarsson

|||

Sweden's locale ID is 1053. The following quick test confirms that Language=1053 does shows currency as Krones, not as dollars

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [Adventure Works]

HTH,

Mosha.

|||

I ran this query against my cube now exactly like this:

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [BIDM]

and the result was: $100.00

which confirms that the language parameter has no effect on my system then?

|||

Hello again Mosha. Running the same query as you I first get the result $100 instead of SEK.

Changing the currency format, for regional settings, in the control panel, from USD to SEK, do help. New result of your query is 100 SEK.

The problem seems to be that Swedish Currency settings (SEK) is ignored if I have USD in my regional settings.

If I change your language setting, in the query, to 1052 I will get 100 Lek with USD in the regional settings for the O/S.

The only way your example will work with SEK is if we change the O/S regional settings for currency to SEK.

This can be a problem if we have several currencies in a cube.

If regional O/S currency settings is not SEK, SEK will not show up.

This must be a bug?

I am running SP2 CTP2 (November).

Kind regards

Thomas Ivarsson

Questions on translation and naming attribute

Hello I have a few questions regarding the translations.

1. Is it possible to create this neat auto-generated date dimension in any other languages than english?

2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures?

3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later?

Thanks

// Richard

Hi Richard,

1. Yes, at the bottom of the wizard you can pick the language for the dimension.

2. I don't understand the question.

3. If I understand you correctly, You want show the name instead of the value for the code. To do this you have to choose the NameColumn property for the code hierarchy to be the Name field in the dimension table. Its kinda hard to find, be sure to click the plus sign to specify the type

Hope this helps

David Botzenhart.

|||

When I choose the Currentcy format string for a measure SSAS makes the results like so: "$1,xxx,xxx". Since I'm creating a swedish solution

I need the answers to be "1,xxx,xxx Kr" instead. Where do I set this? If I make a calculated member it works, but not on the auto-generated members.

As for the date-dimension, there's no swedish language in the drop-down-list. Can it be added?

Thanks

// Richard

|||

Here is a blog which explains exactly how to do it: http://sqljunkies.com/WebLog/mosha/archive/2005/10/13/mdx_format_currency.aspx

HTH,

Mosha (http://www.mosha.com/msolap)

|||

2. In BIDS choose the "Cube Structure" tab. Place yourself on the cube and choose properties. In here, you can select at language for the cube. Set it to Swedish and you should be good to go.

3. Is this an issue with your client application? Do you want the name attribute to be used by default when you select the dimension? In that case, what app. are you using?

|||

Thank you both, your posts helped me understand how it works. But unfortunatley, the documentation inclined by your post where I can find the language codes doesn't seem to contain them? Atleast not my Visual Studio documentation, which are you referring to?

Michael, I have the language set to Swedish for the cube. That's part of the problem, it doesn't work.

Mosha, if I find the language code, can I then set it as a calculation for the entire cube in the calculations tab? Something like having the line

Language(CURRENT CUBE) = 'some code' ?

Thanks

|||

You can get the list of LCID codes here: http://msdn2.microsoft.com/en-us/library/ms903928.aspx (although they are listed in HEX, you will need to translate to decimal)

Once you find your code, simply add

LANGUAGE(this) = code;

at the end of your MDX Script. It will apply to the whole cube.

|||

Thanks, but it doesn't work. I still get $'s in my Currency format :(, any ideas?

|||Well - what's the locale of the user connecting to the cube?|||All regional settings in windows are Swedish|||What is the locale ID that you use in this expression ?|||

Hello Mosha. Can we get a list that is not listed in HEX but is translated?

I am from Sweden so I can confirm that SSAS2005 currency format will not change depending on your local regional settings for the O/S. In Excel, or other Office applications and SQL Server 2005, it will but not in SSAS2005.

Your recommendation, on your BLOG, to script this will work, but I have not found the link to the codes until you published it.

A better and translated list of these codes will be much appreciated.

Regards

Thomas Ivarsson

|||

Sweden's locale ID is 1053. The following quick test confirms that Language=1053 does shows currency as Krones, not as dollars

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [Adventure Works]

HTH,

Mosha.

|||

I ran this query against my cube now exactly like this:

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [BIDM]

and the result was: $100.00

which confirms that the language parameter has no effect on my system then?

|||

Hello again Mosha. Running the same query as you I first get the result $100 instead of SEK.

Changing the currency format, for regional settings, in the control panel, from USD to SEK, do help. New result of your query is 100 SEK.

The problem seems to be that Swedish Currency settings (SEK) is ignored if I have USD in my regional settings.

If I change your language setting, in the query, to 1052 I will get 100 Lek with USD in the regional settings for the O/S.

The only way your example will work with SEK is if we change the O/S regional settings for currency to SEK.

This can be a problem if we have several currencies in a cube.

If regional O/S currency settings is not SEK, SEK will not show up.

This must be a bug?

I am running SP2 CTP2 (November).

Kind regards

Thomas Ivarsson

Questions on translation and naming attribute

Hello I have a few questions regarding the translations.

1. Is it possible to create this neat auto-generated date dimension in any other languages than english?

2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures?

3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later?

Thanks

// Richard

Hi Richard,

1. Yes, at the bottom of the wizard you can pick the language for the dimension.

2. I don't understand the question.

3. If I understand you correctly, You want show the name instead of the value for the code. To do this you have to choose the NameColumn property for the code hierarchy to be the Name field in the dimension table. Its kinda hard to find, be sure to click the plus sign to specify the type

Hope this helps

David Botzenhart.

|||

When I choose the Currentcy format string for a measure SSAS makes the results like so: "$1,xxx,xxx". Since I'm creating a swedish solution

I need the answers to be "1,xxx,xxx Kr" instead. Where do I set this? If I make a calculated member it works, but not on the auto-generated members.

As for the date-dimension, there's no swedish language in the drop-down-list. Can it be added?

Thanks

// Richard

|||

Here is a blog which explains exactly how to do it: http://sqljunkies.com/WebLog/mosha/archive/2005/10/13/mdx_format_currency.aspx

HTH,

Mosha (http://www.mosha.com/msolap)

|||

2. In BIDS choose the "Cube Structure" tab. Place yourself on the cube and choose properties. In here, you can select at language for the cube. Set it to Swedish and you should be good to go.

3. Is this an issue with your client application? Do you want the name attribute to be used by default when you select the dimension? In that case, what app. are you using?

|||

Thank you both, your posts helped me understand how it works. But unfortunatley, the documentation inclined by your post where I can find the language codes doesn't seem to contain them? Atleast not my Visual Studio documentation, which are you referring to?

Michael, I have the language set to Swedish for the cube. That's part of the problem, it doesn't work.

Mosha, if I find the language code, can I then set it as a calculation for the entire cube in the calculations tab? Something like having the line

Language(CURRENT CUBE) = 'some code' ?

Thanks

|||

You can get the list of LCID codes here: http://msdn2.microsoft.com/en-us/library/ms903928.aspx (although they are listed in HEX, you will need to translate to decimal)

Once you find your code, simply add

LANGUAGE(this) = code;

at the end of your MDX Script. It will apply to the whole cube.

|||

Thanks, but it doesn't work. I still get $'s in my Currency format :(, any ideas?

|||Well - what's the locale of the user connecting to the cube?|||All regional settings in windows are Swedish|||What is the locale ID that you use in this expression ?|||

Hello Mosha. Can we get a list that is not listed in HEX but is translated?

I am from Sweden so I can confirm that SSAS2005 currency format will not change depending on your local regional settings for the O/S. In Excel, or other Office applications and SQL Server 2005, it will but not in SSAS2005.

Your recommendation, on your BLOG, to script this will work, but I have not found the link to the codes until you published it.

A better and translated list of these codes will be much appreciated.

Regards

Thomas Ivarsson

|||

Sweden's locale ID is 1053. The following quick test confirms that Language=1053 does shows currency as Krones, not as dollars

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [Adventure Works]

HTH,

Mosha.

|||

I ran this query against my cube now exactly like this:

WITH MEMBER Measures.x as 100, format_string='currency', language=1053

SELECT x ON 0 FROM [BIDM]

and the result was: $100.00

which confirms that the language parameter has no effect on my system then?

|||

Hello again Mosha. Running the same query as you I first get the result $100 instead of SEK.

Changing the currency format, for regional settings, in the control panel, from USD to SEK, do help. New result of your query is 100 SEK.

The problem seems to be that Swedish Currency settings (SEK) is ignored if I have USD in my regional settings.

If I change your language setting, in the query, to 1052 I will get 100 Lek with USD in the regional settings for the O/S.

The only way your example will work with SEK is if we change the O/S regional settings for currency to SEK.

This can be a problem if we have several currencies in a cube.

If regional O/S currency settings is not SEK, SEK will not show up.

This must be a bug?

I am running SP2 CTP2 (November).

Kind regards

Thomas Ivarsson