I have setup a view in an Oracle database that runs the code:
select *
from Availabilities
This returns the results
Roster | StartDate | EndDate
Avail | 18/5/16 | 18/5/16
Train | 19/5/16 | 19/5/16
Avail | 20/5/16 | 30/5/16
these results are correct and are as expected, however...
I have linked the server that this view is on to an SQL server. From there I run an OpenQuery directly to the view that produced that results set on the linked server through the code:
select *
from OpenQuery(LinkedServer,'SELECT *
FROM REPORT_USR.AvailabilitiesView')
The results it returns have combined the first and the third results:
Roster | StartDate | EndDate
Train | 18/5/16 | 30/5/16
Avail | 19/5/16 | 19/5/16
Why would it do this? Is there a way to stop it doing this?
Thanks
尝试在两端断开连接并重新连接-确保其中一个连接未返回未提交的数据。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.