Excel工作表的外部数据源中,终于不再有连接用户的密码,困扰了好久的Excel Service 的安全问题终于解决了,后面有时间会有详细的说明。
<odc:Connection odc:Type="OLEDB">
   <odc:ConnectionString>
    Provider=SQLOLEDB.1;
    Integrated Security=SSPI;
    Persist Security Info=True;
    User ID=dataaccesser;
    Initial Catalog=AdventureWorks;
    Data Source=aerbin-sql2005\portal;
    Use Procedure for Prepare=1;
    Auto Translate=True;
    Packet Size=4096;
    Workstation ID=AERBIN-MOSS;
    Use Encryption for Data=False;
    Tag with column collation when possible=False
   </odc:ConnectionString>
   <odc:CommandType>Table</odc:CommandType>
   <odc:CommandText>&quot;AdventureWorks&quot;.&quot;Sales&quot;.&quot;vSalesPersonSalesByFiscalYears&quot;</odc:CommandText>
   <odc:CredentialsMethod>None</odc:CredentialsMethod>
  </odc:Connection>
 </odc:OfficeDataConnection>

相关文章:

  • 2021-05-17
  • 2021-11-24
  • 2022-12-23
  • 2021-04-20
  • 2021-10-08
  • 2021-12-03
  • 2021-12-14
猜你喜欢
  • 2021-12-13
  • 2021-07-26
  • 2021-09-28
  • 2021-10-28
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案