SQL Server Management Studio 查询实际在哪里执行?
如果我在本地计算机上使用 SQL Server Management Studio 来执行操作一台或多台远程服务器上的数据的查询,则实际计算在哪里进行?它使用我的本地资源还是远程服务器的资源?
If I am using SQL Server Management Studio on my local machine to execute a query which is manipulating data on one or more remote servers, where does the actual computing take place? Is it using my local resources or that of the remote server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
它应该在您当前连接的服务器上,如果您链接其他服务器并查询它们,它将在具有链接连接的服务器上处理。
It should be on the server you are currently connected to, if you are linking other servers and quering them, it will be processed on the server that has the linked connections.
如果在 SQL Server Management Studio 中执行查询,“实际执行”始终发生在远程服务器上。
If you execute a query in SQL Server Management Studio, the "real execution" always takes place on the remote server.
我在远程数据库上执行,SSMS 所做的就是将查询发送到服务器,在那里它将被解析,如果存在计划,则计划将被重新执行,否则将创建并执行新计划(简化视图),
但是也就是说,如果您的本地和远程链接服务器之间存在联接,在某些情况下,sql server 会将行拉入本地服务器以进一步处理结果集
I executes on the remote database, all SSMS does is send the query to the server there it will be parsed and if a plan exists the plan will be resued otherwise a new plan will be created and executed (simplified view)
however that said, if you have joins between your local and remote linked server in some case sql server will pull in rows to the local server to further process the result set
远程服务器。
SQL Server Management Studio 没有内置任何查询执行引擎。它只是将您的查询发送到您连接的服务器并获取结果(以及使用的查询计划,如果您请求的话)。
在跨链接服务器查询数据的情况下,服务器将使用链接服务器配置将查询发送到链接服务器并检索相关结果。
The remote server.
SQL Server Management Studio doesn't have any Query Execution Engine built in to it. It simply sends your query to the server that you are connect to and gets the results (and the query plan used, if you request it).
In the case of querying data across linked servers, the server will used the linked server configuration to send the query to the linked server and retrieve the relevant results.