Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 partitioned views

Author  Topic 

rolandsantos
Starting Member

24 Posts

Posted - 2008-02-29 : 05:29:22
hi, your help is deeply appreciated. here is my problem..

i created a view in server1 and server2:

create view vwtest
as
select srv, cnt from server1.test.dbo.test770
union all
select srv, cnt from server2.test.dbo.test771


i have no problem whe i issue a SELECT statement both on server1 and server 2

select * from vwtest
will result

srv cnt
--- ---
770 1
770 2
771 1
771 3

however when i execute a

update vwtest
set cnt = 5
where cnt = 1

returns an error:
Server: Msg 4451, Level 16, State 19, Line 1
Views referencing tables on multiple servers are not updatable on this SKU of SQL Server.

what is this error?

also, i tried it to other servers knowing that my problem is SQL version related, but i also got this error:

Server: Msg 7391, Level 16, State 1, Line 1
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].

BOL does'nt offer any solutions, i followed all the rules in distributed views but to no avail.. help pls....


Lumbago
Norsk Yak Master

3271 Posts

Posted - 2008-02-29 : 06:32:23
What is your version of SQL-server? From BOL under "Creating a Partitioned View":
quote:
Data Modification Rules
In addition to the rules defined for updatable partitioned views, data modification statements referencing the view must adhere to the rules defined for INSERT, UPDATE and DELETE statements.

Note: You can modify data through a partitioned view only if you install Microsoft SQL Server 2000 Enterprise Edition or Microsoft. SQL Server 2000 Developer Edition.


--
Lumbago
"SELECT Rum, Coke, Lime, Ice FROM bar WHERE ClosingTime = 'Late' AND FemaleMaleRatio > 4"
Go to Top of Page

rolandsantos
Starting Member

24 Posts

Posted - 2008-02-29 : 06:57:26
FYI, i tried this on two windows version thats why i have two different errors

print @@version returns this version:

from the 1st error, server1 and server2 (Windows 2000 Server machines):
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003 Microsoft Corporation
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)

error is:
Server: Msg 4451, Level 16, State 19, Line 1
Views referencing tables on multiple servers are not updatable on this SKU of SQL Server.



from 2nd error, both server1 and server2 (Windows XP machines):
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)

error is:
Server: Msg 7391, Level 16, State 1, Line 1
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].





Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2008-02-29 : 07:07:52
I never encountered this problem myself but google returned a bunch of results, this might work for you...? ->

http://www.howtogeek.com/howto/windows/fix-new-transaction-cannot-enlist-in-the-specified-transaction-coordinator-on-server-2003-sp2/

or google

http://www.google.no/search?source=ig&hl=no&rlz=1G1GGLQ_NONO252&q=New+transaction+cannot+enlist+in+the+specified+transaction+coordinator&meta=

--
Lumbago
"SELECT Rum, Coke, Lime, Ice FROM bar WHERE ClosingTime = 'Late' AND FemaleMaleRatio > 4"
Go to Top of Page

rolandsantos
Starting Member

24 Posts

Posted - 2008-02-29 : 07:09:37
thanks a lot, ill check those sites...
Go to Top of Page

rolandsantos
Starting Member

24 Posts

Posted - 2008-03-03 : 21:12:27
I tried all the solutions suggested on those sites but it still fails. FYI, i am testing this on SQL 2000 Developer Edition running on Windows XP SP2 machines. Is there any issue with that? What is the best practice in partitioned views?
thanks...
Go to Top of Page
   

- Advertisement -