我正在使用 olap4j 库并尝试连接到 SSAS 多维数据集。 我知道一般语法是,
Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
Connection conn = DriverManager
.getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/");
但是,如果多维数据集需要用户名和密码才能连接到它。连接时需要遵循的代码语法是什么?
最佳答案
找到了这个问题的答案。
Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
Connection conn = DriverManager
.getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/", username, password);
关于java - OLAP4J:如何使用用户名和密码连接到多维数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31134696/