lyh101074750(提问者)SELECT
*
FROM
Runtime.dbo.V_History
> Msg 7320, Level 16, State 2, Server HIS, Procedure , Line 0
Cannot execute the query \"SELECT Tbl1001.DateTime Col1004,Tbl1001.TagName Col1005,Tbl1001.Value Col1006,Tbl1001.vValue Col1007,Tbl1001.Quality Col1008,Tbl1001.QualityDetail Col1009,Tbl1001.OPCQuality Col1010,Tbl1001.wwTagKey Col1011,Tbl1001.wwRowCount Col1012,Tbl1001.wwResolution Col1013,Tbl1001.wwEdgeDetection Col1014,Tbl1001.wwRetrievalMode Col1015,Tbl1001.wwTimeDeadband Col1016,Tbl1001.wwValueDeadband Col1017,Tbl1001.wwTimeZone Col1018,Tbl1001.wwVersion Col1019,Tbl1001.wwCycleCount Col1020,Tbl1001.wwTimeStampRule Col1021,Tbl1001.wwInterpolationType Col1022,Tbl1001.wwQualityRule Col1023,Tbl1001.wwStateCalc Col1024,Tbl1001.StateTime Col1025,Tbl1001.PercentGood Col1026,Tbl1001.wwParameters Col1027,Tbl1001.StartDateTime Col1028,Tbl1001.SourceTag Col1029,Tbl1001.SourceServer Col1030,Tbl1001.wwFilter Col1031,Tbl1001.wwValueSelector Col1032,Tbl1001.wwMaxStates Col1003 FROM Runtime.dbo.History Tbl1001\" against OLE DB provider \"INSQL\" for linked server \"INSQL\".
> OLE DB provider \"INSQL\" for linked server \"INSQL\" returned message \"History queries must contain at least one valid tagname\".
> [42000] [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot execute the query \"SELECT Tbl1001.DateTime Col1004,Tbl1001.TagName Col1005,Tbl1001.Value Col1006,Tbl1001.vValue Col1007,Tbl1001.Quality Col1008,Tbl1001.QualityDetail Col1009,Tbl1001.OPCQuality Col1010,Tbl1001.wwTagKey Col1011,Tbl1001.wwRowCount Col1012,Tbl1001.wwResolution Col1013,Tbl1001.wwEdgeDetection Col1014,Tbl1001.wwRetrievalMode Col1015,Tbl1001.wwTimeDeadband Col1016,Tbl1001.wwValueDeadband Col1017,Tbl1001.wwTimeZone Col1018,Tbl1001.wwVersion Col1019,Tbl1001.wwCycleCount Col1020,Tbl1001.wwTimeStampRule Col1021,Tbl1001.wwInterpolationType Col1022,Tbl1001.wwQualityRule Col1023,Tbl1001.wwStateCalc Col1024,Tbl1001.StateTime Col1025,Tbl1001.PercentGood Col1026,Tbl1001.wwParameters Col1027,Tbl1001.StartDateTime Col1028,Tbl1001.SourceTag Col1029,Tbl1001.SourceServer Col1030,Tbl1001.wwFilter Col1031,Tbl1001.wwValueSelector Col1032,Tbl1001.wwMaxStates Col1003 FROM Runtime.dbo.History Tbl1001\" against OLE DB provider \"INSQL\" for linked server \"INSQL\". (7320)
[01000] [Microsoft][SQL Server Native Client 11.0][SQL Server]OLE DB provider \"INSQL\" for linked server \"INSQL\" returned message \"History queries must contain at least one valid tagname\". (7412)