Working on a tool that queries an SQL Server Express LocalDB implementation, and I've tested the code to see that it works, but when I move the connection string from a hard coded string to one in an xml config file that I wrote, it gives the error below:
For reference, here is a shot of the code, I used prevously for the function call:
and this is what I currently have in the XML Configuration File:
If I change "Server" to "Data Provider" it also says that Data Provider is an unsupported keyword.
Looking through other questions, this is more than likely related to string formatting, or how I'm reading it in, but it does this regardless of single or double quotes.
将服务器更改回数据源,并从XML文件中删除引号。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.