【发布时间】: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