Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 olap4j 库并尝试连接到 SSAS Cube。我知道一般语法是,
Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver"); Connection conn = DriverManager .getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/");
但是,如果 Cube 需要用户名和密码来连接它。我需要遵循什么代码语法来连接?
找到了这个问题的答案。
Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver"); Connection conn = DriverManager .getConnection("jdbc:xmla:Server=http://10.239.0.1/OLAP/", username, password);