sql-server - 检查SQL Server数据库上的托管程序集版本

标签 sql-server managed-code

我需要找出部署到SQL Server数据库的程序集的版本。
我需要通过脚本或其他编程方式来执行此操作,以了解是否需要重新部署程序集。

有任何想法吗?

谢谢。

最佳答案

这应该有所帮助。

Syntax
ASSEMBLYPROPERTY('assembly_name', 'property_name')
assembly_name Is the name of the assembly.

property_name Is the name of a property about which to retrieve information. property_name can be one of the following values.

Value
CultureInfo Locale of the assembly.
PublicKey Public key or public key token of the assembly.
MvID Complete, compiler-generated version identification number of the assembly.

VersionMajor Major component (first part) of the four-part version identification number of the assembly.

VersionMinor Minor component (second part) of the four-part version identification number of the assembly.

VersionBuild Build component (third part) of the four-part version identification number of the assembly.

VersionRevision Revision component (fourth part) of the four-part version identification number of the assembly.
SimpleName Simple name of the assembly.
Architecture Processor architecture of the assembly.
CLRName Canonical string that encodes the simple name, version number, culture, public key, and architecture of the assembly. This value uniquely identifies the assembly on the common language runtime (CLR) side.

关于sql-server - 检查SQL Server数据库上的托管程序集版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1565076/

相关文章:

sql-server - 更新日期时间变量中的年份

sql-server - 具有文化参数的 SQL Server FORMAT 不起作用

c# - 是否有 native .NET 方法或等效于 user32.dll 的 GetKeyboardState?

c# - .NET 代码编译或复杂化?

c# - 在 C# 项目中使用 C++ API

mysql - 如何从 MSSQL 中的行中没有特定值的表中选择数据

sql-server - 锁定整个数据库?

c# - 用 C++ 开发 Win32 应用程序比用 C# 开发 .NET 应用程序有什么优势?

sql-server - 在使用表达式 SSRS 使用两个数据集进行计算时需要帮助