0

I am using olap4j libraries and trying to connect to a SSAS Cube. I understand that the general syntax is,

Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
Connection conn = DriverManager
            .getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/");

But, if the Cube expects an username and password to connect to it. What is the code syntax that I need to follow to connect?

Harish
  • 181
  • 1
  • 3
  • 11

1 Answers1

1

Found the answer to this.

Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
Connection conn = DriverManager
            .getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/", username, password);
Harish
  • 181
  • 1
  • 3
  • 11