sql - Excel doesn't save SQL query changes
问题描述
I'm having trouble with Excel saving changes I made in an embedded SQL query to connect it with a MS SQL Server. The connection is DSN-less.
When I delete a WHERE-statement, save the workbook, then close it and open it again and go to connections window to check my connections, my changes to the SQL query are not there anymore.
But now comes the strange part: When I execute the SQL query it is executed as if my changes are still in it.
I hope someone can help me
Thanks in advance! :)
解决方案
在数据库上创建一个查询视图。关注数据 -> 其他来源 -> 来自 excel 选项卡菜单上的 sql server。选择视图后 db 的用户名和密码。连接是数据选项卡上的连接。
如果要刷新,请使用数据选项卡上的刷新按钮。
推荐阅读
- wordpress - 禁用插件加载的钩子/函数
- python - AttributeError:“float”对象没有属性“strip”
- angular - 角度路由器动画未触发
- asp.net-core - Grpc.Net vs Grpc.Core:服务器端有什么区别?
- python - 在两个单独的标签之间创建关系——Python / BeautifulSoup
- ios - 检查启动时的值,如果缺少值,则显示视图控制器
- java - 根据计算的概率选择“获胜者”
- java - 带表名的 PreparedStatement
- r-markdown - 如何在 xaringan 自包含幻灯片中嵌入 html 图像
- javascript - 开玩笑未通过异步测试