Focal Point
View with Linked Servers

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3561058331

May 03, 2005, 06:30 PM
Ginny
View 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
Boogarweed
Are 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
Ginny
You 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
Boogarweed
I'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
Kerry
Hi all,

FYI, the following online document may be of interest for this issue:

SQLCODE 8501 : trying to report from MSSQL view

Hope this helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.