![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
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 |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |