[英]Microsoft SQL Server-specific Parser and Script Generator for Visual Studio > 2010?
At MSDN, there is a documentation to Microsoft.Data.Schema.ScriptDom.Sql Namespace which contains useful engine for creation and parsing of the T-SQL syntax tree . 在MSDN上,有一个Microsoft.Data.Schema.ScriptDom.Sql Namespace的文档,其中包含用于创建和解析T-SQL语法树的有用引擎 。 However, this seems to be available only with Visual Studio 2008 and 2010.
但是,这似乎仅适用于Visual Studio 2008和2010。
Did Microsoft produce a successor of this library past the Visual Studio 2010? Microsoft是否通过Visual Studio 2010生成了此库的后续版本?
Or was the entire thing discontinued? 还是整个事情都停止了?
Microsoft.Data.Schema.ScriptDom
and Microsoft.Data.Schema.ScriptDom.Sql
was merged in to a single assembly and was moved out of visual studio and moved in to the Sql Server SDK starting with Server 2012. Microsoft.Data.Schema.ScriptDom
和Microsoft.Data.Schema.ScriptDom.Sql
合并到一个程序集中,并从Visual Studio移出并从Server 2012开始移入Sql Server SDK。
It can now be found under the Microsoft.SqlServer.TransactSql.ScriptDom
namespace and can be found at C:\\Program Files (x86)\\Microsoft SQL Server\\###\\SDK\\Assemblies
where ###
is 110
or higher and you have the SDK installed. 它现在可以在
Microsoft.SqlServer.TransactSql.ScriptDom
命名空间下找到,可以在C:\\Program Files (x86)\\Microsoft SQL Server\\###\\SDK\\Assemblies
,其中###
是110
或更高并且你已安装SDK。
When you install the SDK it should register the dll with the GAC so if you just search for ScriptDom
in the "Add Reference" all installed versions should show up. 当您安装SDK时,它应该使用GAC注册dll,因此如果您只是在“添加引用”中搜索
ScriptDom
,则应显示所有已安装的版本。
In the above image I have Visual Studio 2010 (version 10), Sql Server 2012 (version 11), and Sql Server 2014 (version 12) installed on my machine. 在上面的图像中,我在我的机器上安装了Visual Studio 2010(版本10),Sql Server 2012(版本11)和Sql Server 2014(版本12)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.