all groups > sql server programming > october 2004 >
You're in the

sql server programming

group:

Newbie problem: Saving a view from a linked server won't work



Re: Newbie problem: Saving a view from a linked server won't work John Bell
10/23/2004 12:57:48 PM
sql server programming: Hi

Have you checked
http://support.microsoft.com/default.aspx?scid=kb;EN-US;280106

John
[quoted text, click to view]

Re: Newbie problem: Saving a view from a linked server won't work John Bell
10/23/2004 12:58:38 PM
Hi

Have you checked
http://support.microsoft.com/default.aspx?scid=kb;EN-US;280106

John
[quoted text, click to view]

Newbie problem: Saving a view from a linked server won't work <arch>
10/23/2004 7:51:00 PM
Hi. I've created a linked server to Oracle 8i. I want to save a view as
follows:

SELECT *
FROM ORACLE8I..SCOTT.EMP EMP_1

From SQL Query Analyser, this returns a nice set or records. Running this
from the view designer also returns a nice result. However, if I try to to
save the view, I get the following error message:

ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server] The operation
could not be performed because the OLE DB provider 'MSDAORA' was unable to
begin a distributed transaction.

[Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB
Provider 'MSDAORA' ITransactionJoiJoin Transaction returned 0x8004d01b].



Anyone know what I'm doing wrong?

Re: Newbie problem: Saving a view from a linked server won't work John Bell
10/23/2004 9:23:24 PM
Hi

This one seems to imply MSDTC is not running:
http://tinyurl.com/4wghd

John

[quoted text, click to view]

Re: Newbie problem: Saving a view from a linked server won't work Erland Sommarskog
10/23/2004 10:17:53 PM
(arch) writes:
[quoted text, click to view]

I assume that with "view designer" you mean what's in Enterprise Manager.

I used the Profiler, to see what Enterprise Manager passes to SQL Server,
and I found that it starts a transaction before it creates a view, no matter
if the view refers to local tables only or remote tables as well.

Apparently you have not set things so you can run distributed transactions
against your Oracle box. I have no expierence with Oracle servers, so I
cannot help there. But checking that MSDTC is running on the local SQL
Server machine as John suggested is a simple thing.

But if you don't need distrubuted transactions against your Oracle server,
there is a very simple workaround: create the view from Query Analyzer
instead.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
Re: Newbie problem: Saving a view from a linked server won't work <arch>
10/24/2004 12:36:55 AM
None of the stuff in that article seems to help. Same error message occurs.


[quoted text, click to view]

Re: Newbie problem: Saving a view from a linked server won't work <arch>
10/24/2004 9:17:46 AM
Thanks John and Erland. That seems to have solved it. DTC is certainly
running. Simply avoiding the use of the View Designer in Enterprise Manager
seems to prevent the error from occurring. Damn, I wish I'd thought of
that!


[quoted text, click to view]

Re: Newbie problem: Saving a view from a linked server won't work Wayne Snyder
10/25/2004 8:09:51 AM
Linked server connections only allow select insert update and delete... and
( unless you do tricks) you may not change the DDL on the Linked server...

--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)

I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org

[quoted text, click to view]

AddThis Social Bookmark Button