Kus*_*kar 6 oledb oledbconnection oledbexception
谁能告诉我OleDB连接字符串只是exclusively用于读取其他用户打开的Excel文件?
我试过跟随连接字符串,这对我不起作用: -
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Mode=Read;Extended Properties=\"Excel 8.0;HDR=YES;ReadOnly=true;\"";
Run Code Online (Sandbox Code Playgroud)
当其他用户打开时,此连接字符串抛出以下异常: -
The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data.
Run Code Online (Sandbox Code Playgroud)
笔记:
| 归档时间: |
|
| 查看次数: |
2209 次 |
| 最近记录: |