sql SQL:SMP托管与非托管计数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql SQL:SMP托管与非托管计数相关的知识,希望对你有一定的参考价值。

SELECT
	[Workstations Total] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND NOT [OS Name] LIKE '%server%')
	, [Workstations Managed] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND NOT [OS Name] LIKE '%server%' AND [IsManaged] = 1)
	, [Workstations Unmanaged] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND NOT [OS Name] LIKE '%server%') - (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND NOT [OS Name] LIKE '%server%' AND [IsManaged] = 1)

	, [Servers Total] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND [OS Name] LIKE '%server%')
	, [Servers Managed] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND [OS Name] LIKE '%server%' AND [IsManaged] = 1)
	, [Servers Unmanaged] = (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND [OS Name] LIKE '%server%') - (SELECT COUNT(1) FROM [vComputer] WHERE 1=1 AND [OS Name] LIKE '%server%' AND [IsManaged] = 1)

以上是关于sql SQL:SMP托管与非托管计数的主要内容,如果未能解决你的问题,请参考以下文章

C# DllImport“调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配 ”

[转]托管代码与非托管代码

c# 托管与非托管

JPA 混淆(托管与非托管实体)

托管资源与非托管资源的定义

Net Framework 中托管代码与非托管代码的区别