我有加入视图 我从来源得到不同的整理:
FROM dbo.vw_AD_PCs AS P
LEFT OUTER JOIN dbo.c_AD_Host_User AS U
ON U.Host = P.name collate Hungarian_CI_AS
LEFT OUTER JOIN dbo.c_AD_Host_Site AS S
ON S.Host = P.name collate Hungarian_CI_AS
LEFT OUTER JOIN dbo.c_AD_User_Site AS Us
ON Us.Name = ISNULL(U.Name, P.ManagedBy)
但是当我单击图表窗格时,它会删除排序规则部分。
也许我可以使用字段整理进行子查询,并且可以加入结果行集
(Select Name collate Hungarian_CI_AS, ...
From dbo.vw_AD_PCs) P
如果我使用
ALTER VIEW
,那么它不会删除COLLATE
部分。