简体   繁体   English

Wonderware Historian SQL 服务器 INSQL

[英]Wonderware Historian SQL Server INSQL

I am trying to get the definition of a view which contains historical values of different tags in Wonderware Historian.我正在尝试获取包含 Wonderware Historian 中不同标签历史值的视图的定义。 The target is to identify the source tables and enable CDC on those, in order to enable data streaming to a remote server.目标是识别源表并在这些表上启用 CDC,以便将数据流式传输到远程服务器。 But when I look at view definition it shows something like但是当我查看视图定义时,它会显示类似

Select * 
From [INSQL].Runtime.dbo.History 

But History is the view itself.History就是观点本身。 Attached the image from DBeaver for this:为此附上了来自 DBeaver 的图像:

在此处输入图像描述

Any hints?有什么提示吗? Looks like it has something to do with this [INSQL]看起来它与这个[INSQL]有关

To find the tables referenced by a view a few options are available, probably the easiest is to use sql_expression_dependencies要查找视图引用的表,有几个选项可用,可能最简单的方法是使用sql_expression_dependencies

select referenced_entity_name
from sys.sql_expression_dependencies 
where referencing_id=Object_Id('View name')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM