【问题标题】:Issue with SQL Azure connection string in ExcelExcel 中的 SQL Azure 连接字符串问题
【发布时间】:2016-09-13 17:45:40
【问题描述】:

我正在尝试创建一个连接字符串,其中包含用于 Excel 的 SQL 登录信息

我一直使用的连接字符串是:

Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=vw-AdventureWorks;Extended Properties=""

效果很好,但是在添加用户/密码字段时,像这样

Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=vw-AdventureWorks;User ID=[Id]@[server];Password=[password];Extended Properties=""

它抛出一个错误,说明数据库初始化失败,但验证数据库已启动并且字符串连接完美,没有用户/密码字段

【问题讨论】:

    标签: sql database excel database-connection connection-string


    【解决方案1】:

    我使用以下连接字符串解决了我的问题。还是不知道为什么原来的连接不上。

    Server=tcp:[server].database.windows.net,1433;Data Source=[databasename];Initial Catalog=[database name];User ID=[Username];Password=[Password];
    

    【讨论】:

      猜你喜欢
      • 2011-04-11
      • 1970-01-01
      • 2021-11-04
      • 1970-01-01
      • 2021-10-02
      • 1970-01-01
      相关资源
      最近更新 更多