dbTalk Databases Forums  

Re: Help with MSADOMD in VJ++

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Re: Help with MSADOMD in VJ++ in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Help with MSADOMD in VJ++ - 10-14-2003 , 05:36 PM






"Nathan Vu" <n_vu (AT) hotmail (DOT) com> wrote

Quote:
Hello all,

We have a web application that is a few years old that was developed with
Visual J++, Olap 2K and SQL Server 2K. It's using msadomd java package to
query/retrieve OLAP cube data.

We run into this bizarre problem that on certain Windows 2K Advanced
Server
(SP2) machines, the following method (particularly line #4):

1 static String getCellFormattedValue(msadomd.Cell cell)
2 {
3 try {
4 return cell.getFormattedValue();
5 } catch (ComFailException e) {
6 return "Error!!";
7 }
8 }

would return English-US formatted values (i.e., currency symbols, number
and
date formats, etc) even though the Control Panel->Regional Options is set
to
some locale _other than_ English-US. This call would work on other servers
with similar SP's, and the returned values are correctly formatted
correspondingly to the specified locale.
I suspect that this problem has nothing to do with VJ++. Can you please run
your query from MDX Sample and see how formatted value is formatted ?

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #2  
Old   
Nathan Vu
 
Posts: n/a

Default Re: Help with MSADOMD in VJ++ - 10-14-2003 , 06:02 PM






We tried that with MDX Sample App, the data was returned correctly on all
servers.

- nv

"Mosha Pasumansky [MS]" <moshap (AT) microsoft (DOT) com> wrote

Quote:
"Nathan Vu" <n_vu (AT) hotmail (DOT) com> wrote in message
news:bmhtik$317v$1 (AT) news (DOT) mainstreet.net...
Hello all,

We have a web application that is a few years old that was developed
with
Visual J++, Olap 2K and SQL Server 2K. It's using msadomd java package
to
query/retrieve OLAP cube data.

We run into this bizarre problem that on certain Windows 2K Advanced
Server
(SP2) machines, the following method (particularly line #4):

1 static String getCellFormattedValue(msadomd.Cell cell)
2 {
3 try {
4 return cell.getFormattedValue();
5 } catch (ComFailException e) {
6 return "Error!!";
7 }
8 }

would return English-US formatted values (i.e., currency symbols, number
and
date formats, etc) even though the Control Panel->Regional Options is
set
to
some locale _other than_ English-US. This call would work on other
servers
with similar SP's, and the returned values are correctly formatted
correspondingly to the specified locale.

I suspect that this problem has nothing to do with VJ++. Can you please
run
your query from MDX Sample and see how formatted value is formatted ?

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================





Reply With Quote
  #3  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Help with MSADOMD in VJ++ - 10-14-2003 , 06:44 PM



Quote:
We tried that with MDX Sample App, the data was returned correctly on all
servers.
Can you try to set locale explicitly in the connection string ?

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #4  
Old   
Nathan Vu
 
Posts: n/a

Default Re: Help with MSADOMD in VJ++ - 10-15-2003 , 05:34 PM



Thanks for all the suggestions. The problem lies with IIS's Directory
Security-> Anonymous access and authentication control->Anonymous User edit.
The Anonymous User must be the same as the NT userid you use to log in and
change the Regional Options.

- nv

"Mosha Pasumansky [MS]" <moshap (AT) microsoft (DOT) com> wrote

Quote:
We tried that with MDX Sample App, the data was returned correctly on
all
servers.

Can you try to set locale explicitly in the connection string ?

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.