首页 > 代码库 > sql server anaylsis service 连接字符串的两种方式

sql server anaylsis service 连接字符串的两种方式

本地连接:

string strConnect = "Provider=MSOLAP; Data Source=localhost;Initial Catalog=Analysis Services Tutorial;Integrated Security=SSPI;";

 

网络连接方式:

string strConnect = "Provider=MSOLAP;Initial Catalog=Analysis Services Tutorial;Data Source=http://192.168.1.109/olap/msmdpump.dll";

 

sql server anaylsis service 连接字符串的两种方式