May 03, 2005, 06:30 PM
GinnyView with Linked Servers
We have a view set up on Server A that pulls data from Server B. The view works fine through sql server and we can select info from it etc. We set up metadata to point to the view on Server A and tried write a proceedure to just pull the data just like a simple select statement. We're getting this error
(FOC1400) SQLCODE IS 8501 (HEX: 00002135) XOPEN: 42000
: Microsoft OLE DB Provider for SQL Server: [42000] MSDTC on server 'SERVER B' is unavailable. [01000] OLE DB error trace [OLE/DB Provider 'SQLOLE
: DB' ITransactionJoin::JoinTransaction returned 0x8004d01c]. [42000] The
: operation could not be performed because the OLE DB provider 'SQLOLEDB'
: was unable to begin a distributed transaction. [] Deferred prepare could
: not be completed.
L (FOC1406) SQL OPEN CURSOR ERROR. : VIEWREQHOURS
Is there something special we need to do with setting up the metadata when its pulling from a linked server?
May 04, 2005, 12:40 PM
BoogarweedAre you saying that the view you created on server A is a MS SQL Server view of the base table on server B, and then you created a synonym (MFD) for this view?
May 04, 2005, 08:51 PM
GinnyYou are almost correct.
I am saying that the view I created on server A is a MS SQL Server view of the base table on server A AND another table on Server B. and then I created a synonym (MFD) for this view.
May 06, 2005, 03:38 PM
BoogarweedI'm sorry, I can't think of anything and I have exhausted all my other resources. That is assuming that this view works outside of WebFOCUS. I tried googling something about it and didn't find anything either...
May 03, 2007, 10:47 AM
KerryHi all,
FYI, the following online document may be of interest for this issue:
SQLCODE 8501 : trying to report from MSSQL viewHope this helps.
Cheers,
Kerry