dbTalk Databases Forums  

ColdFusion

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


Discuss ColdFusion in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ennovations
 
Posts: n/a

Default ColdFusion - 07-06-2004 , 02:58 AM






Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien

Reply With Quote
  #2  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: ColdFusion - 07-06-2004 , 04:35 AM






If you want to connect to Analysis services from a client you have to use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO. I think
it is part of MDAC 2.7 and above, which means that it should be installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote

Quote:
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien



Reply With Quote
  #3  
Old   
ennovations
 
Posts: n/a

Default Re: ColdFusion - 07-07-2004 , 07:38 PM



Hi Jacco,

Thanks for replying

I've managed to connect to the database using your method.

However, I got stuck again when trying to access the result.

I'm having "Invalid number of parameters" error when accessing
adocst.axes.item[0] (it's in ColdFusion syntax).

Do you know why the error is showing? I thought item only takes in an
int.

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid> wrote

Quote:
If you want to connect to Analysis services from a client you have to use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO. I think
it is part of MDAC 2.7 and above, which means that it should be installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407052358.20fd1409 (AT) posting (DOT) google.com...
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien

Reply With Quote
  #4  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: ColdFusion - 07-08-2004 , 04:44 AM



Can you post your complete statement?

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote

Quote:
Hi Jacco,

Thanks for replying

I've managed to connect to the database using your method.

However, I got stuck again when trying to access the result.

I'm having "Invalid number of parameters" error when accessing
adocst.axes.item[0] (it's in ColdFusion syntax).

Do you know why the error is showing? I thought item only takes in an
int.

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote in message news:<#YPlTyzYEHA.3156 (AT) TK2MSFTNGP12 (DOT) phx.gbl>...
If you want to connect to Analysis services from a client you have to
use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO. I
think
it is part of MDAC 2.7 and above, which means that it should be
installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407052358.20fd1409 (AT) posting (DOT) google.com...
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien



Reply With Quote
  #5  
Old   
ennovations
 
Posts: n/a

Default Re: ColdFusion - 07-09-2004 , 12:38 AM



Hi Jacco,

My code is below:

<CFOBJECT ACTION="CREATE" TYPE="COM" class="ADOMD.Cellset"
NAME="adocst">

<CFSET AdoCst.ActiveConnection = "Provider=MSOLAP;Data
Source=localhost;Initial Catalog=FoodMart;">

<CFSET AdoCst.source = "SELECT TopCount({[Product].[Product
Name].Members}, 1,
Measures.[Unit Sales]) ON COLUMNS FROM [Sales]">

<cfset AdoCst.open()>

<cfset iColDim = AdoCst.axes.item[0].dimensioncount>

The last statement is where I got the error.

Thanks

Regards,
Yee Tien



"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid> wrote

Quote:
Can you post your complete statement?

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407071638.53484753 (AT) posting (DOT) google.com...
Hi Jacco,

Thanks for replying

I've managed to connect to the database using your method.

However, I got stuck again when trying to access the result.

I'm having "Invalid number of parameters" error when accessing
adocst.axes.item[0] (it's in ColdFusion syntax).

Do you know why the error is showing? I thought item only takes in an
int.

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote

If you want to connect to Analysis services from a client you have to
use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO. I
think
it is part of MDAC 2.7 and above, which means that it should be
installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407052358.20fd1409 (AT) posting (DOT) google.com...
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien

Reply With Quote
  #6  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: ColdFusion - 07-09-2004 , 05:57 AM



Try items(0) instead of items[0].

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote

Quote:
Hi Jacco,

My code is below:

CFOBJECT ACTION="CREATE" TYPE="COM" class="ADOMD.Cellset"
NAME="adocst"

CFSET AdoCst.ActiveConnection = "Provider=MSOLAP;Data
Source=localhost;Initial Catalog=FoodMart;"

CFSET AdoCst.source = "SELECT TopCount({[Product].[Product
Name].Members}, 1,
Measures.[Unit Sales]) ON COLUMNS FROM [Sales]"

cfset AdoCst.open()

cfset iColDim = AdoCst.axes.item[0].dimensioncount

The last statement is where I got the error.

Thanks

Regards,
Yee Tien



"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote in message news:<O4SGiANZEHA.644 (AT) tk2msftngp13 (DOT) phx.gbl>...
Can you post your complete statement?

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407071638.53484753 (AT) posting (DOT) google.com...
Hi Jacco,

Thanks for replying

I've managed to connect to the database using your method.

However, I got stuck again when trying to access the result.

I'm having "Invalid number of parameters" error when accessing
adocst.axes.item[0] (it's in ColdFusion syntax).

Do you know why the error is showing? I thought item only takes in an
int.

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote

If you want to connect to Analysis services from a client you have
to
use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO.
I
think
it is part of MDAC 2.7 and above, which means that it should be
installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407052358.20fd1409 (AT) posting (DOT) google.com...
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting
the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien



Reply With Quote
  #7  
Old   
ennovations
 
Posts: n/a

Default Re: ColdFusion - 07-11-2004 , 08:30 PM



Hi Jacco,

Thanks for your reply again

I tried with () and got the following error:
Item cannot be found in the collection corresponding to the requested
name or ordinal. in 'ADOMD.Axes'.

I think ColdFusion index with []. I got the idea from the thread
below:
http://groups.google.com/groups?hl=e...macromedia.com

But the method still not working for me...

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid> wrote

Quote:
Try items(0) instead of items[0].

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407082138.48794645 (AT) posting (DOT) google.com...
Hi Jacco,

My code is below:

CFOBJECT ACTION="CREATE" TYPE="COM" class="ADOMD.Cellset"
NAME="adocst"

CFSET AdoCst.ActiveConnection = "Provider=MSOLAP;Data
Source=localhost;Initial Catalog=FoodMart;"

CFSET AdoCst.source = "SELECT TopCount({[Product].[Product
Name].Members}, 1,
Measures.[Unit Sales]) ON COLUMNS FROM [Sales]"

cfset AdoCst.open()

cfset iColDim = AdoCst.axes.item[0].dimensioncount

The last statement is where I got the error.

Thanks

Regards,
Yee Tien



"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote

Can you post your complete statement?

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407071638.53484753 (AT) posting (DOT) google.com...
Hi Jacco,

Thanks for replying

I've managed to connect to the database using your method.

However, I got stuck again when trying to access the result.

I'm having "Invalid number of parameters" error when accessing
adocst.axes.item[0] (it's in ColdFusion syntax).

Do you know why the error is showing? I thought item only takes in an
int.

Regards,
Yee Tien


"Jacco Schalkwijk" <jacco.please.reply (AT) to (DOT) newsgroups.mvps.org.invalid
wrote

If you want to connect to Analysis services from a client you have
to
use
the ADO for Multidimensional Objects (ADOMD) driver instead of ADO.
I
think
it is part of MDAC 2.7 and above, which means that it should be
installed on
your machine if you are up-to-date with the Windows Service Packs.

--
Jacco Schalkwijk
SQL Server MVP


"ennovations" <yeetien (AT) ennovations (DOT) com.sg> wrote in message
news:c8bee24e.0407052358.20fd1409 (AT) posting (DOT) google.com...
Hi all,

I would like to know how to get OLAP to work in ColdFusion.

I've tried adding the datasource under SQL Server but am getting
the
following error:
"Cannot open database requested in login 'FoodMart'. Login fails."

Anyone knows how to make it work?

Thank you

Regards,
Yee Tien

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.