无论如何我可以在SQL服务器中获取数据吗?

时间:2017-04-09 21:57:57

标签: sql neo4j cypher

我正在研究neo4j和SQL服务器。我在neo4j中遇到PROFILE关键字,您可以在其中看到基于数据库数据命中的执行计划。我试图找到SQL服务器中的等价物,但到目前为止我找不到它。我在SQL服务器中输入包含实际执行计划,在那里我可以看到给定查询的成本。有谁知道如何在SQL Server中获取数据?

1 个答案:

答案 0 :(得分:1)

In the distant past I used Microsoft Query Analyzer (QA) to perform the kind of query performance analysis. The QA came included with SQL Server up until Microsoft SQL Server 2000.

According to https://stackoverflow.com/a/24820408 starting from 2005 you need to install Microsoft SQL Server Management Studio (SSMS) to get an equivalent tool:

The Query Analyzer (QA) was the query tool provided with SQL Server up until SQL Server 2000. In SQL Server 2005 and above it was superseded by SQL Server Management Studio (SSMS). If you would like to detect any performance problems in some of your queries you can use the execution plan to determine what is the culprit.

How to analyze a query : http://technet.microsoft.com/en-us/library/ms191227(v=sql.105).aspx Briefing of how to analyze an execution plan : https://www.simple-talk.com/sql/performance/execution-plan-basics/

The current release of SSMS is free to download, install and use. See https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms to install a suitable version.