0

我正在使用 olap4j 库并尝试连接到 SSAS Cube。我知道一般语法是,

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

但是,如果 Cube 需要用户名和密码来连接它。我需要遵循什么代码语法来连接?

4

1 回答 1

1

找到了这个问题的答案。

Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
Connection conn = DriverManager
            .getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/", username, password);
于 2015-06-30T11:42:30.493 回答