Tuesday, March 27, 2012
Do Linked Servers REQUIRE SA rights
user. This user only has permission to select data from several tables.
When I attempt to query the remote server I receive following message:
Access to the remote server is denied because no log in-mapping exists.
However when I grant the user SA rights on the local server that user
is able to query the data.
Any thoughts ?Accessing a linked server doesn't necessarily require
someone to be a member of the sysadmins role. You need to
check the login mapping as the error suggests - look at the
security tab for the linked server.
-Sue
On 8 Jun 2005 12:41:48 -0700, "Rafet Ducic"
<rducic@.gmail.com> wrote:
>I am trying to set up a linked server, and one of the user is a SQL
>user. This user only has permission to select data from several tables.
>
>When I attempt to query the remote server I receive following message:
>Access to the remote server is denied because no log in-mapping exists.
>
>However when I grant the user SA rights on the local server that user
>is able to query the data.
>Any thoughts ?
Wednesday, March 21, 2012
Do a lot of linked tables cause block?
There are a lot of Access and Excel tables linked to my SQL Server (SQL2K SP3 on W2K). The end users update those likned tables. I am wondering if there is the block problem. If yes, how to prevent that? Thanks.
ZYTNo, It should not cause any problems. How did you bring it into sql2k
Monday, March 19, 2012
DML by Linked Servers
I have two SQL-Server 2000 servers - SERVERDB01 and SERVERDB02.
I made a linked server from SERVERDB01 to SERVERDB02.
This instruction is ok.
SELECT * FROM openquery (SERVERDB02,'select * from dbacdl.aux_data')
I need execute DML commands by Linked Servers.
i.e. -> truncate dbacdl.aux_data or delete dbacdl.aux_data
How can I do?
Thank you by attention.
Bye.how about issuing the truncate or delete using the four part nameing convention?
<Server Name>.<Database Name>.<Owner Name>.<Object Name>|||Paul Young,
thank you by the answer, but It did wrong.
I was in the SERVERDB01
TRUNCATE TABLE SERVERDB02.SICDB.DBACDL.AUX_DATA
This mensage appear:
The object name 'SERVERDB02.SICDB.DBACDL.' contains more than the maximum number of prefixes. The maximum is 2.
I did some mistake, maybe.
Bye.|||No, I answqered your question a little to fast. Truncate won't work but delete will, try again using delete rather than truncate.|||Paul Young ,
It's ok.
thank you very much.
Bye.
DML against remote tables (MSSQL to DB2)
I believe I need to send a clear string to DB2 that doesn't get compiled on the sql server side. Is there something like openquery that I can use for DML statements in SQL Server?Upon further review I found this site: http://support.microsoft.com/kb/270119/EN-US/
It shows how to use openquery to execute DML statements. nifty.
Wednesday, March 7, 2012
Distrubuted Transactions with AS400
I have created stored procs that update SQL and AS400 (Linked server)
tables. I want to wrap both updates in a transaction, however when I do, I
get the error
"The operation could not be performed because OLE DB provider "MSDASQL" for
linked server "LinkedServerName" was unable to begin a distributed
transaction".
We are using Client Access ODBC driver (V5R2, SI06631).
All of the documents that I have read talk about MTS and MS DTC.
MS DTC is running on the SQL Server.
Is there any way of using Distributed Transaction processing without
requiring MTS ?
Thanks in advance.not enough info on the error.
here:
http://support.microsoft.com/kb/306212
you may want to look at the full error when you talk to DB2. like so
DBCC TRACEON (3604, 7300)
then run your sp and seewhat it does.
did you try just issue
BEGIN DISTRIBUTED TRAN
and see if the 2 data sources you are working with can be accessed?
and you the same authentication your application is going to call your sp
with.
Thanks, Liliya
"Jane" wrote:
> Hi All
> I have created stored procs that update SQL and AS400 (Linked server)
> tables. I want to wrap both updates in a transaction, however when I do, I
> get the error
> "The operation could not be performed because OLE DB provider "MSDASQL" for
> linked server "LinkedServerName" was unable to begin a distributed
> transaction".
> We are using Client Access ODBC driver (V5R2, SI06631).
> All of the documents that I have read talk about MTS and MS DTC.
> MS DTC is running on the SQL Server.
> Is there any way of using Distributed Transaction processing without
> requiring MTS ?
> Thanks in advance.|||Thanks for the response.
Yes - used the same auth as the app will use (windows auth)
Yes - just used BEGIN DISTRIBUTED TRAN
Used DBCC TRACEON (3604, 7300) & SET XACT_ABORT ON as per the link in a
Query Window then ran the updates again.
Ran DBCC TRACESTATUS (3604,7300) to check that the flags for the session
were set.
Still failing & still no extra error information.
Under "Configuration Issues" the link states ;
"Start the Distributed Transaction Coordinator (DTC or MSDTC) on all servers
that are involved in the distributed transaction".
I am not sure what needs to running on the AS400 for this to work.
"l" wrote:
> not enough info on the error.
> here:
> http://support.microsoft.com/kb/306212
> you may want to look at the full error when you talk to DB2. like so
> DBCC TRACEON (3604, 7300)
> then run your sp and seewhat it does.
> did you try just issue
> BEGIN DISTRIBUTED TRAN
> and see if the 2 data sources you are working with can be accessed?
> and you the same authentication your application is going to call your sp
> with.
> Thanks, Liliya
>
> "Jane" wrote:
> > Hi All
> >
> > I have created stored procs that update SQL and AS400 (Linked server)
> > tables. I want to wrap both updates in a transaction, however when I do, I
> > get the error
> > "The operation could not be performed because OLE DB provider "MSDASQL" for
> > linked server "LinkedServerName" was unable to begin a distributed
> > transaction".
> > We are using Client Access ODBC driver (V5R2, SI06631).
> > All of the documents that I have read talk about MTS and MS DTC.
> > MS DTC is running on the SQL Server.
> >
> > Is there any way of using Distributed Transaction processing without
> > requiring MTS ?
> >
> > Thanks in advance.|||OLEDB Errors in SQL Profiler shows ;
<hresult>-2147168246</hresult>
<inputs>
<punkTransactionCoord>0x624A0060</punkTransactionCoord>
<isoLevel>4096</isoLevel>
<isoFlags>0</isoFlags>
<pOtherOptions>0x00000000</pOtherOptions>
</inputs>|||> I am not sure what needs to running on the AS400 for this to work.
depend on what are you running on AS400. DB2 version. Here. how to set up
mts (0you have mentioned this one earlier in this thread)
http://www-03.ibm.com/servers/enable/site/db2/mts/mts.pdf
as about ms sql server side, it does not hurt to test if your sql side is
ok. Easy enough as long as you have couple ms sql's on the same domain etc.
if not, can install one on your ws, configure it and see if you can issue
distributed transactions. After all, it will give you a 'lab rat' s well to
experiment if you in need of one.
Thanks, Liliya
Distrubuted query for inserting
table) in a SP frm the local server . The table has 2 fields, fld 1 is int
(identity), the second is nvarchar(20) as follows
When I try to insert a new line using the following syntax from the local
server, I get errors
INSERT INTO sql2k5.mytable.dbo.MarketingTable1 VALUES ('données depuis Srv1
').
The error I am getting is : "Insert Error: Column name or number of supplied
values does not match table definition."
When deleted the identity column, inserting from local server worked ok.
Any idea of why this is happening? is there restriction on data types when
using distributed queries?
ThanksSalamElias (eliassal@.online.nospam) writes:
> I established a linked server, managed to do select (quering the remote
> table) in a SP frm the local server . The table has 2 fields, fld 1 is int
> (identity), the second is nvarchar(20) as follows
> When I try to insert a new line using the following syntax from the
> local server, I get errors INSERT INTO
> sql2k5.mytable.dbo.MarketingTable1 VALUES ('donnes depuis Srv1'). The
> error I am getting is : "Insert Error: Column name or number of supplied
> values does not match table definition."
> When deleted the identity column, inserting from local server worked ok.
> Any idea of why this is happening? is there restriction on data types when
> using distributed queries?
I guess that what the local SQL Server see is a remote table with two
columns. Keep in mind that it does not know that this is an SQL Server
table - it could be Access, Oracle or Active Directory on the other
end of the line.
In any case, it is best practice to always list the columns of the table you
are inserting to. Today the table has two columns, tomorrow it has three,
and then your INSERT till blow up.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||Hi and thanks. Why do you say that "the local server doesn't know". The
localserver knows very well that the remte server is a sql server. I used th
e
following to create the linked server
sp_addlinkedserver 'sql2k5', N'SQL Server'
GO
Best regards
"Erland Sommarskog" wrote:
> SalamElias (eliassal@.online.nospam) writes:
> I guess that what the local SQL Server see is a remote table with two
> columns. Keep in mind that it does not know that this is an SQL Server
> table - it could be Access, Oracle or Active Directory on the other
> end of the line.
> In any case, it is best practice to always list the columns of the table y
ou
> are inserting to. Today the table has two columns, tomorrow it has three,
> and then your INSERT till blow up.
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pr...oads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodin...ions/books.mspx
>|||SalamElias (eliassal@.online.nospam) writes:
> Hi and thanks. Why do you say that "the local server doesn't know". The
> localserver knows very well that the remte server is a sql server. I
> used the following to create the linked server
> sp_addlinkedserver 'sql2k5', N'SQL Server'
When SQL Server talks with a linked server, it acts a client add accesses
the remote server through the OLE DB API, which exposes generic elements.
Of course, it could be conceivable, that there are separate code paths
in case the linked server is SQL Server, but I would expect this particular
piece of code to be agnostic what is at the other end as much as possible,
to keep down the complexity.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||Hi,
I understand that you encountered the error:
"Insert Error: Column name or number of supplied values does not match
table definition."
when you executed the insert statement on a remote table with IDENTITY key.
If I have misunderstood, please let me know.
This is an expected behavior since the scope of the @.@.IDENTITY function is
current session on the local server on which it is executed. This function
cannot be applied to remote or linked servers. You may refer to:
@.@.IDENTITY (Transact-SQL)
http://msdn2.microsoft.com/en-us/library/ms187342.aspx
I recommend that you create a stored procedure in the database of the
remote server, then perform INSERT operation via that SP. For example: EXEC
[mysqlserver-01].Test1.dbo.proc_insDict 'édepu','test'.
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============
Sunday, February 19, 2012
Distributed transactions: ITransactionJoin error on two 2003 Servers
transaction across a linked server. Both servers are Windows 2003 (pre
SP1) servers, and both are running SQL Server 2000 SP3a. I am getting
the following error message:
Server: Msg 7391, Level 16, State 1, Line 4
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].
I have checked loads of KB articles, and other newsgroup answers and
have come up with the following ideas, all of which I've done on both
machines:
1. Enabled network DTC access on both machines
2. Ensured network and XA transactions are checked in security
configuration
3. Ensured DTC is running on both machines
4. Set the port ranges to 5000-5020 in COM Internet Services Properites
(although firewall is off)
5. Ensured both machines can ping each other by Netbios names
6. Turned off RPC Security on both machines (setting in registry)
7. Set on RPC and RPC Out in Linked server settings
8. Rebooted (many times) both machines
If anyone has any other ideas I can try (apart from changing the code,
as we have to do things this way, it's not all our code) then let me
know as I am pretty much stuck.
Thanks for your help!
Aron Cox,
Hampshire, UK
I am working in the same problem. See KB839279. If you change
Transaction Manager Communication to "No Authentication Required" it
works but your not authenticating. I also read somewhere that changing
the account from Network Service to Local System, it may work.
*** Sent via Developersdex http://www.codecomments.com ***
Distributed transactions: ITransactionJoin error on two 2003 Servers
transaction across a linked server. Both servers are Windows 2003 (pre
SP1) servers, and both are running SQL Server 2000 SP3a. I am getting
the following error message:
Server: Msg 7391, Level 16, State 1, Line 4
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].
I have checked loads of KB articles, and other newsgroup answers and
have come up with the following ideas, all of which I've done on both
machines:
1. Enabled network DTC access on both machines
2. Ensured network and XA transactions are checked in security
configuration
3. Ensured DTC is running on both machines
4. Set the port ranges to 5000-5020 in COM Internet Services Properites
(although firewall is off)
5. Ensured both machines can ping each other by Netbios names
6. Turned off RPC Security on both machines (setting in registry)
7. Set on RPC and RPC Out in Linked server settings
8. Rebooted (many times) both machines
If anyone has any other ideas I can try (apart from changing the code,
as we have to do things this way, it's not all our code) then let me
know as I am pretty much stuck.
Thanks for your help!
Aron Cox,
Hampshire, UKI am working in the same problem. See KB839279. If you change
Transaction Manager Communication to "No Authentication Required" it
works but your not authenticating. I also read somewhere that changing
the account from Network Service to Local System, it may work.
*** Sent via Developersdex http://www.codecomments.com ***
Distributed transactions: ITransactionJoin error on two 2003 Servers
transaction across a linked server. Both servers are Windows 2003 (pre
SP1) servers, and both are running SQL Server 2000 SP3a. I am getting
the following error message:
Server: Msg 7391, Level 16, State 1, Line 4
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].
I have checked loads of KB articles, and other newsgroup answers and
have come up with the following ideas, all of which I've done on both
machines:
1. Enabled network DTC access on both machines
2. Ensured network and XA transactions are checked in security
configuration
3. Ensured DTC is running on both machines
4. Set the port ranges to 5000-5020 in COM Internet Services Properites
(although firewall is off)
5. Ensured both machines can ping each other by Netbios names
6. Turned off RPC Security on both machines (setting in registry)
7. Set on RPC and RPC Out in Linked server settings
8. Rebooted (many times) both machines
If anyone has any other ideas I can try (apart from changing the code,
as we have to do things this way, it's not all our code) then let me
know as I am pretty much stuck.
Thanks for your help!
Aron Cox,
Hampshire, UKI am working in the same problem. See KB839279. If you change
Transaction Manager Communication to "No Authentication Required" it
works but your not authenticating. I also read somewhere that changing
the account from Network Service to Local System, it may work.
*** Sent via Developersdex http://www.developersdex.com ***
Distributed Transactions with SQL Express, Server 2003, and XP SP2
Server 2003 machine. I added the Windows Server 2003 machine as a linked
server on the Windows XP SP2 machine.
I have checked and double checked that the DTC settings are correct on both
machines and that the DTC is running on both machines, but I am unable to
execute a distributed transaction. I have even tried playing around with many
different combinations of settings to try to get this to work. I have
followed the directions in many of the documents that can be found online on
this issue, but without success.
I am using SQL Server security and am able to execute queries if I do not
begin a transaction. But I cannot execute them if I begin a transaction.
When I execute them in a transaction, I get the following error:
OLE DB provider "SQLNCLI" for linked server "linkedserver" returned message
"No transaction is active.".
Msg 7391, Level 16, State 2, Procedure proc_procedure_name, Line 420
The operation could not be performed because OLE DB provider "SQLNCLI" for
linked server "linkedserver" was unable to begin a distributed transaction.
Does anyone have any ideas?
--
Corey YoungCan MSDTC get through the XP Firewall?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Young, Corey" <YoungCorey@.discussions.microsoft.com> wrote in message
news:E2E6FDA4-D185-4625-9BEB-D4995254EE70@.microsoft.com...
>I have SQL Express installed on a Windows XP SP2 machine and on a Windows
> Server 2003 machine. I added the Windows Server 2003 machine as a linked
> server on the Windows XP SP2 machine.
> I have checked and double checked that the DTC settings are correct on
> both
> machines and that the DTC is running on both machines, but I am unable to
> execute a distributed transaction. I have even tried playing around with
> many
> different combinations of settings to try to get this to work. I have
> followed the directions in many of the documents that can be found online
> on
> this issue, but without success.
> I am using SQL Server security and am able to execute queries if I do not
> begin a transaction. But I cannot execute them if I begin a transaction.
> When I execute them in a transaction, I get the following error:
> OLE DB provider "SQLNCLI" for linked server "linkedserver" returned
> message
> "No transaction is active.".
> Msg 7391, Level 16, State 2, Procedure proc_procedure_name, Line 420
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "linkedserver" was unable to begin a distributed
> transaction.
> Does anyone have any ideas?
> --
> Corey Young
>|||I turned the firewall off on both machines.
--
Corey Young
"Roger Wolter[MSFT]" wrote:
> Can MSDTC get through the XP Firewall?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Young, Corey" <YoungCorey@.discussions.microsoft.com> wrote in message
> news:E2E6FDA4-D185-4625-9BEB-D4995254EE70@.microsoft.com...
> >I have SQL Express installed on a Windows XP SP2 machine and on a Windows
> > Server 2003 machine. I added the Windows Server 2003 machine as a linked
> > server on the Windows XP SP2 machine.
> >
> > I have checked and double checked that the DTC settings are correct on
> > both
> > machines and that the DTC is running on both machines, but I am unable to
> > execute a distributed transaction. I have even tried playing around with
> > many
> > different combinations of settings to try to get this to work. I have
> > followed the directions in many of the documents that can be found online
> > on
> > this issue, but without success.
> >
> > I am using SQL Server security and am able to execute queries if I do not
> > begin a transaction. But I cannot execute them if I begin a transaction.
> >
> > When I execute them in a transaction, I get the following error:
> >
> > OLE DB provider "SQLNCLI" for linked server "linkedserver" returned
> > message
> > "No transaction is active.".
> >
> > Msg 7391, Level 16, State 2, Procedure proc_procedure_name, Line 420
> >
> > The operation could not be performed because OLE DB provider "SQLNCLI" for
> > linked server "linkedserver" was unable to begin a distributed
> > transaction.
> >
> > Does anyone have any ideas?
> >
> > --
> > Corey Young
> >
>
>
Distributed Transactions fail
to create the linked server and see the views and tables. The issue is that
after creating a SP the uses the 4 part naming convention all atempt to
actually save the querry have failed. In some cases I can run the SQL code
but I just cant save it as a SP
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].
Now before you say visit the MS knowledge base I have and this did not fix
the problem:
http://support.microsoft.com/defaul...kb;en-us;839279
DTC is turned on and the logon is set as a Network Service.What else could
be the issue. Is it user permission probs. Deprately need help. I cant even
save via QA or .NET designer
JP
.NET Software DevelperJP,
Is the DTC service running on both servers? Might look at the 'data access'
, 'rpc' and 'rpc out' settings...not sure if this has anything to do with
what you're experiencing but LSs can sometimes return some error messages
that may not directly point to the cause of an issue.
HTH
Jerry
"JP" <JP@.discussions.microsoft.com> wrote in message
news:8D2DF49D-0F5F-4470-8F26-C6D34209E6B3@.microsoft.com...
> We are trying to create SPs that are using linked servers. I have been
> able
> to create the linked server and see the views and tables. The issue is
> that
> after creating a SP the uses the 4 part naming convention all atempt to
> actually save the querry have failed. In some cases I can run the SQL code
> but I just cant save it as a SP
> 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].
> Now before you say visit the MS knowledge base I have and this did not fix
> the problem:
> http://support.microsoft.com/defaul...kb;en-us;839279
> DTC is turned on and the logon is set as a Network Service.What else could
> be the issue. Is it user permission probs. Deprately need help. I cant
> even
> save via QA or .NET designer
>
>
> --
> JP
> .NET Software Develper
Distributed transactions bet linked servers
I checked the DTC on both ends to be on but I am still getting this message
when running an insert
New transaction cannot enlist in the specified transaction coordinator.
Thanks,
--
bicDid you enable Network DTC Access? I did it under 2003 Server but had to do
it again after installing SP1.
http://support.microsoft.com/default.aspx?scid=kb;en-us;329332
"bic" wrote:
> hi anyone,
> I checked the DTC on both ends to be on but I am still getting this message
> when running an insert
> New transaction cannot enlist in the specified transaction coordinator.
> Thanks,
> --
> bic
Distributed transactions bet linked servers
I checked the DTC on both ends to be on but I am still getting this message
when running an insert
New transaction cannot enlist in the specified transaction coordinator.
Thanks,
bic
Did you enable Network DTC Access? I did it under 2003 Server but had to do
it again after installing SP1.
http://support.microsoft.com/default...b;en-us;329332
"bic" wrote:
> hi anyone,
> I checked the DTC on both ends to be on but I am still getting this message
> when running an insert
> New transaction cannot enlist in the specified transaction coordinator.
> Thanks,
> --
> bic
Distributed transactions bet linked servers
I checked the DTC on both ends to be on but I am still getting this message
when running an insert
New transaction cannot enlist in the specified transaction coordinator.
Thanks,
bicDid you enable Network DTC Access? I did it under 2003 Server but had to do
it again after installing SP1.
http://support.microsoft.com/defaul...kb;en-us;329332
"bic" wrote:
> hi anyone,
> I checked the DTC on both ends to be on but I am still getting this messag
e
> when running an insert
> New transaction cannot enlist in the specified transaction coordinator.
> Thanks,
> --
> bic
Friday, February 17, 2012
DISTRIBUTED TRANSACTION with OLE DB Jet
I set up an Access 2003 MDB file as a linked Server on SQL Server 2000.
I like to use it to sync entries between SQL Server and the MDB Database.
For this purpose I like to use a DISTRIBUTED TRANSACTION.
But this is the result I get when I use COMMIT TRANSACTION at the end.
<eb1>The current transaction could not be exported to the remote provider.
It has been rolled back.
State: 42000, Native: 8524, Source: Microsoft OLE DB Provider for SQL
Server</eb1>
Thanks for any help
Regards
Patrick
Please reply to group, rather than mail ad patrickwolf - netJET does not support distributed transactions, therefore this will always
fail.
GertD@.SQLDev.Net
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright SQLDev.Net 1991-2005 All rights reserved.
"Patrick Wolf" <pwolf@.SeeSig.Invalid> wrote in message
news:OIgjIYOZFHA.3852@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I set up an Access 2003 MDB file as a linked Server on SQL Server 2000.
> I like to use it to sync entries between SQL Server and the MDB Database.
> For this purpose I like to use a DISTRIBUTED TRANSACTION.
> But this is the result I get when I use COMMIT TRANSACTION at the end.
> <eb1>The current transaction could not be exported to the remote provider.
> It has been rolled back.
> State: 42000, Native: 8524, Source: Microsoft OLE DB Provider for SQL
> Server</eb1>
> Thanks for any help
> Regards
> Patrick
> --
> Please reply to group, rather than mail ad patrickwolf - net
>|||> JET does not support distributed transactions, therefore this will always
> fail.
Thank you Gert. Its a pity but its good to know :)
distributed transaction with loopback linked server
I am wondering if there is workaround for distributed transaction query in
loopback linked server.
ThanksNo, they are just not supported.
"JohnC" <JohnC@.discussions.microsoft.com> wrote in message
news:E68993B5-D1EA-4AA6-B6DF-BDCA4B3ADE9A@.microsoft.com...
> Folks,
> I am wondering if there is workaround for distributed transaction query in
> loopback linked server.
> Thanks
>
Distributed Transaction takes far too long
I would like to perform an
INSERT INTO LINKEDSVR.dbo.xyz.abc
SELECT ... FROM dbo.dfg
where LINKEDSVR is a linked server on another machine. Both servers are
running SQLServer 2000 and have the DTC running.
When I run this batch from QueryAnalyzer without explicitly using
transactions, it works well (takes about 5 sec) - however, when I
enclose it using
begin [distributed] tran/commit tran
the query runs forever.
I also tried to use the local server as linked server (loopback) but it
did not work either.
Any suggestions?
Thanks,
JoHi Jo
You don't really give much information to work on! I assume that running
forever means that it has not completed? Therefore you may want to profile
the query to see what is exactly happening. You may also want to try
OPENQUERY or OPENROWSET instead.
I would expect the loop back to fail as you can not use them in a
distributed transaction. From BOL:
Loopback linked servers cannot be used in a distributed transaction.
Attempting a distributed query against a loopback linked server from within
a distributed transaction causes an error:
Msg: 3910 Level: 16 State: 1
[Microsoft][ODBC SQL Server Driver][SQL Server]Transaction context in use by
another session.John
"Jo Siffert" <jo.siffert@.gmx.net> wrote in message
news:cpm67p$t4d$1@.zeppelin.rz.uni-potsdam.de...
> Hi all,
> I would like to perform an
> INSERT INTO LINKEDSVR.dbo.xyz.abc
> SELECT ... FROM dbo.dfg
> where LINKEDSVR is a linked server on another machine. Both servers are
> running SQLServer 2000 and have the DTC running.
> When I run this batch from QueryAnalyzer without explicitly using
> transactions, it works well (takes about 5 sec) - however, when I
> enclose it using
> begin [distributed] tran/commit tran
> the query runs forever.
> I also tried to use the local server as linked server (loopback) but it
> did not work either.
> Any suggestions?
> Thanks,
> Jo|||Jo Siffert (jo.siffert@.gmx.net) writes:
> I would like to perform an
> INSERT INTO LINKEDSVR.dbo.xyz.abc
> SELECT ... FROM dbo.dfg
> where LINKEDSVR is a linked server on another machine. Both servers are
> running SQLServer 2000 and have the DTC running.
> When I run this batch from QueryAnalyzer without explicitly using
> transactions, it works well (takes about 5 sec) - however, when I
> enclose it using
> begin [distributed] tran/commit tran
> the query runs forever.
Have you checked for blocking? I have a recollection that distributed
transactions are by default seriliazable, which have more concurrency
problems.
Use sp_who (on both servers) and keep an eye on the Blk column. A non-
zero value in that column means that this spid is blocking the spid
on this row. And if this spid is your distributed transaction, you bave
the reason.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp
DISTRIBUTED TRANSACTION PROBLEM
I linked one to another with
EXEC sp_addlinkedserver
@.server='AV1',
@.srvproduct='Av1',
@.provider='SQLOLEDB',
@.datasrc='88.247.124.178\ALISVERISSAATI'
My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
as AV2)
on av2 i have a sp which executes some sp's and data manipulation on Av1
I want to perform distributed tranactions on av2.
I did all
RESOLUTION
To resolve this problem, follow these steps: 1. Click Start, point to All
Programs, point to Administrative Tools, and then click Component Services.
2. In the Component Services Wizard, expand Component Services, and
then double-click Computers.
3. Right-click My Computer, and then click Properties.
4. Click the MS DTC tab, and then click Security Configuration.
5. In the Security Configuration dialog box, click to select the
Network DTC Access check box.
6. Under Network DTC Access, click Network Transactions.
Note If you installed Service Pack 1 for Windows Server 2003, you can
click Allow Inbound and Allow Outbound.
7. Make sure that DTC Logon Account is set to NT
Authority\NetworkService.
8. Click OK.
9. In the message box, click Yes to continue.
10. In the DTC Console Message dialog box, click OK.
11. In the System Properties dialog box, click OK.
Reboot the computer for these changes to take effect.
2.Enable MSDTC to allow the network transaction. To do this, follow
these steps: a. Click Start, and then click Run.
b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
c. In the Component Services window, expand Component Services,
expand Computers, and then expand My Computer.
d. Right-click My Computer, and then click Properties.
e. In the My Computer Properties dialog box, click Security
Configuration on the MSDTC tab.
f. In the Security Configuration dialog box, click to select
the Network DTC Access check box.
g. To allow the distributed transaction to run on this computer
from a remote computer, click to select the Allow Inbound check box.
h. To allow the distributed transaction to run on a remote
computer from this computer, click to select the Allow Outbound check box.
i. Under the Transaction Manager Communication group, click to
select the No Authentication Required option.
j. In the Security Configuration dialog box, click OK.
k. In the My Computer Properties dialog box, click OK.
3. Configure Windows Firewall to include the MSDTC program and to
include port 135 as an exception. To do this, follow these steps: a. Click
Start, and then click Run.
b. In the Run dialog box, type Firewall.cpl, and then click OK
c. In Control Panel, double-click Windows Firewall.
d. In the Windows Firewall dialog box, click Add Program on the
Exceptions tab.
e. In the Add a Program dialog box, click the Browse button,
and then locate the Msdtc.exe file. By default, the file is stored in the
<Installation drive>:\Windows\System32 folder.
f. In the Add a Program dialog box, click OK.
g. In the Windows Firewall dialog box, click to select the
msdtc option in the Programs and Services list.
h. Click Add Port on the Exceptions tab.
i. In the Add a Port dialog box, type 135 in the Port number
text box, and then click to select the TCP option.
j. In the Add a Port dialog box, type a name for the exception
in the Name text box, and then click OK.
k. In the Windows Firewall dialog box, select the name that you
used for the exception in step j in the Programs and Services list, and then
click OK.
I successfull used dtcping utility and get Invoking RPC method on av1
RPC test is successful message on av2.
but when i try
SET xact_abort ON
GO
BEGIN DISTRIBUTED TRANSACTION
SELECT * FROM [Av1].deneme.dbo.urunler
COMMIT TRAN
GO
it returns
OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
transaction is active.".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for
linked server "Av1" was unable to begin a distributed transaction.
any help will be much appreciated.
Hi
Have you checked things like the firewall
http://support.microsoft.com/kb/306843/ or used DTCPing or DTCtester to make
a connection? you may also want to check out http://tinyurl.com/2tdbtf
John
"in da club" wrote:
> I have 2 SQL server on 2 different servers. (both sql server 2005)
> I linked one to another with
> EXEC sp_addlinkedserver
> @.server='AV1',
> @.srvproduct='Av1',
> @.provider='SQLOLEDB',
> @.datasrc='88.247.124.178\ALISVERISSAATI'
> My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
> as AV2)
> on av2 i have a sp which executes some sp's and data manipulation on Av1
> I want to perform distributed tranactions on av2.
> I did all
> RESOLUTION
> To resolve this problem, follow these steps: 1. Click Start, point to All
> Programs, point to Administrative Tools, and then click Component Services.
> 2. In the Component Services Wizard, expand Component Services, and
> then double-click Computers.
> 3. Right-click My Computer, and then click Properties.
> 4. Click the MS DTC tab, and then click Security Configuration.
> 5. In the Security Configuration dialog box, click to select the
> Network DTC Access check box.
> 6. Under Network DTC Access, click Network Transactions.
> Note If you installed Service Pack 1 for Windows Server 2003, you can
> click Allow Inbound and Allow Outbound.
> 7. Make sure that DTC Logon Account is set to NT
> Authority\NetworkService.
> 8. Click OK.
> 9. In the message box, click Yes to continue.
> 10. In the DTC Console Message dialog box, click OK.
> 11. In the System Properties dialog box, click OK.
> Reboot the computer for these changes to take effect.
>
> 2.Enable MSDTC to allow the network transaction. To do this, follow
> these steps: a. Click Start, and then click Run.
> b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
> c. In the Component Services window, expand Component Services,
> expand Computers, and then expand My Computer.
> d. Right-click My Computer, and then click Properties.
> e. In the My Computer Properties dialog box, click Security
> Configuration on the MSDTC tab.
> f. In the Security Configuration dialog box, click to select
> the Network DTC Access check box.
> g. To allow the distributed transaction to run on this computer
> from a remote computer, click to select the Allow Inbound check box.
> h. To allow the distributed transaction to run on a remote
> computer from this computer, click to select the Allow Outbound check box.
> i. Under the Transaction Manager Communication group, click to
> select the No Authentication Required option.
> j. In the Security Configuration dialog box, click OK.
> k. In the My Computer Properties dialog box, click OK.
> 3. Configure Windows Firewall to include the MSDTC program and to
> include port 135 as an exception. To do this, follow these steps: a. Click
> Start, and then click Run.
> b. In the Run dialog box, type Firewall.cpl, and then click OK
> c. In Control Panel, double-click Windows Firewall.
> d. In the Windows Firewall dialog box, click Add Program on the
> Exceptions tab.
> e. In the Add a Program dialog box, click the Browse button,
> and then locate the Msdtc.exe file. By default, the file is stored in the
> <Installation drive>:\Windows\System32 folder.
> f. In the Add a Program dialog box, click OK.
> g. In the Windows Firewall dialog box, click to select the
> msdtc option in the Programs and Services list.
> h. Click Add Port on the Exceptions tab.
> i. In the Add a Port dialog box, type 135 in the Port number
> text box, and then click to select the TCP option.
> j. In the Add a Port dialog box, type a name for the exception
> in the Name text box, and then click OK.
> k. In the Windows Firewall dialog box, select the name that you
> used for the exception in step j in the Programs and Services list, and then
> click OK.
>
>
> I successfull used dtcping utility and get Invoking RPC method on av1
> RPC test is successful message on av2.
>
> but when i try
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [Av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
>
>
> it returns
>
> OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "Av1" was unable to begin a distributed transaction.
>
> any help will be much appreciated.
>
>
>
|||i used dtcping on av2 for av 1 and get
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
Please start PING from av1 to complete the test
by the wat i read something a webpage and executed msdtc - uninstall
and msdtc - install on av1
when i run a query on av2 i get
Msg 8501, Level 16, State 2, Line 1
MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
for av1
i opened port 135 on both server and succeeded telnet av1 135
and telnet av2 135 for both server. dtcping util suceeds too . what am i
doing wrong ?
|||Hi
Your original post covered what is needed for windows 2003 to allow DTC
http://support.microsoft.com/kb/817064/
I assume this is not a virtual server! http://support.microsoft.com/kb/889706/
asnd you have checked the RPC ports http://support.microsoft.com/kb/250367
Also check remote connections are enabled in the services and connection
section of the Surface Area Configuration Tool.
John
"in da club" wrote:
> i used dtcping on av2 for av 1 and get
> RPC test is successful
> ++++++++++++RPC test completed+++++++++++++++
> Please start PING from av1 to complete the test
> by the wat i read something a webpage and executed msdtc - uninstall
> and msdtc - install on av1
> when i run a query on av2 i get
> Msg 8501, Level 16, State 2, Line 1
> MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
>
> for av1
>
> i opened port 135 on both server and succeeded telnet av1 135
> and telnet av2 135 for both server. dtcping util suceeds too . what am i
> doing wrong ?
>
>
>
>
>
|||Hi
I assume that just issuing a BEGIN DISTRIBUTED TRANSACTION will give the
error? Can you confirm DTC is running on AV1 and DTCPing works when
connecting to it?
If these check out I am not sure what is wrong! You may want to remove and
re-install DTC
http://support.microsoft.com/kb/306212
http://support.microsoft.com/kb/873160
http://support.microsoft.com/kb/839279
John
<in da club> wrote in message
news:u%23sYGX5VIHA.5596@.TK2MSFTNGP05.phx.gbl...
>I checked http://support.microsoft.com/kb/817064/ and there is no problem
>with that issue. it is ok.
> You are right . it is not a virtual server.
> What about rpc ports . I opened 135 ports on both firewalls . isnt dtc
> using 135 port By default?
> When i run
> SELECT * FROM [av1].deneme.dbo.urunler
> it runs correctly.My surface area configuration is ok.
>
> SET REMOTE_PROC_TRANSACTIONS ON
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
> returns
> OLE DB provider "SQLNCLI" for linked server "av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "av1" was unable to begin a distributed transaction.
>
>
>
> "John Bell" <jbellnewsposts@.hotmail.com>, haber iletisinde unlar
> yazd:4B5B98E8-710A-443F-A717-8783FD3E9BA2@.microsoft.com...
>
DISTRIBUTED TRANSACTION PROBLEM
I linked one to another with
EXEC sp_addlinkedserver
@.server='AV1',
@.srvproduct='Av1',
@.provider='SQLOLEDB',
@.datasrc='88.247.124.178\ALISVERISSAATI'
My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
as AV2)
on av2 i have a sp which executes some sp's and data manipulation on Av1
I want to perform distributed tranactions on av2.
I did all
RESOLUTION
To resolve this problem, follow these steps: 1. Click Start, point to All
Programs, point to Administrative Tools, and then click Component Services.
2. In the Component Services Wizard, expand Component Services, and
then double-click Computers.
3. Right-click My Computer, and then click Properties.
4. Click the MS DTC tab, and then click Security Configuration.
5. In the Security Configuration dialog box, click to select the
Network DTC Access check box.
6. Under Network DTC Access, click Network Transactions.
Note If you installed Service Pack 1 for Windows Server 2003, you can
click Allow Inbound and Allow Outbound.
7. Make sure that DTC Logon Account is set to NT
Authority\NetworkService.
8. Click OK.
9. In the message box, click Yes to continue.
10. In the DTC Console Message dialog box, click OK.
11. In the System Properties dialog box, click OK.
Reboot the computer for these changes to take effect.
2.Enable MSDTC to allow the network transaction. To do this, follow
these steps: a. Click Start, and then click Run.
b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
c. In the Component Services window, expand Component Services,
expand Computers, and then expand My Computer.
d. Right-click My Computer, and then click Properties.
e. In the My Computer Properties dialog box, click Security
Configuration on the MSDTC tab.
f. In the Security Configuration dialog box, click to select
the Network DTC Access check box.
g. To allow the distributed transaction to run on this computer
from a remote computer, click to select the Allow Inbound check box.
h. To allow the distributed transaction to run on a remote
computer from this computer, click to select the Allow Outbound check box.
i. Under the Transaction Manager Communication group, click to
select the No Authentication Required option.
j. In the Security Configuration dialog box, click OK.
k. In the My Computer Properties dialog box, click OK.
3. Configure Windows Firewall to include the MSDTC program and to
include port 135 as an exception. To do this, follow these steps: a. Click
Start, and then click Run.
b. In the Run dialog box, type Firewall.cpl, and then click OK
c. In Control Panel, double-click Windows Firewall.
d. In the Windows Firewall dialog box, click Add Program on the
Exceptions tab.
e. In the Add a Program dialog box, click the Browse button,
and then locate the Msdtc.exe file. By default, the file is stored in the
<Installation drive>:\Windows\System32 folder.
f. In the Add a Program dialog box, click OK.
g. In the Windows Firewall dialog box, click to select the
msdtc option in the Programs and Services list.
h. Click Add Port on the Exceptions tab.
i. In the Add a Port dialog box, type 135 in the Port number
text box, and then click to select the TCP option.
j. In the Add a Port dialog box, type a name for the exception
in the Name text box, and then click OK.
k. In the Windows Firewall dialog box, select the name that you
used for the exception in step j in the Programs and Services list, and then
click OK.
I successfull used dtcping utility and get Invoking RPC method on av1
RPC test is successful message on av2.
but when i try
SET xact_abort ON
GO
BEGIN DISTRIBUTED TRANSACTION
SELECT * FROM [Av1].deneme.dbo.urunler
COMMIT TRAN
GO
it returns
OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
transaction is active.".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for
linked server "Av1" was unable to begin a distributed transaction.
any help will be much appreciated.
Hi
Have you checked things like the firewall
http://support.microsoft.com/kb/306843/ or used DTCPing or DTCtester to make
a connection? you may also want to check out http://tinyurl.com/2tdbtf
John
"in da club" wrote:
> I have 2 SQL server on 2 different servers. (both sql server 2005)
> I linked one to another with
> EXEC sp_addlinkedserver
> @.server='AV1',
> @.srvproduct='Av1',
> @.provider='SQLOLEDB',
> @.datasrc='88.247.124.178\ALISVERISSAATI'
> My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
> as AV2)
> on av2 i have a sp which executes some sp's and data manipulation on Av1
> I want to perform distributed tranactions on av2.
> I did all
> RESOLUTION
> To resolve this problem, follow these steps: 1. Click Start, point to All
> Programs, point to Administrative Tools, and then click Component Services.
> 2. In the Component Services Wizard, expand Component Services, and
> then double-click Computers.
> 3. Right-click My Computer, and then click Properties.
> 4. Click the MS DTC tab, and then click Security Configuration.
> 5. In the Security Configuration dialog box, click to select the
> Network DTC Access check box.
> 6. Under Network DTC Access, click Network Transactions.
> Note If you installed Service Pack 1 for Windows Server 2003, you can
> click Allow Inbound and Allow Outbound.
> 7. Make sure that DTC Logon Account is set to NT
> Authority\NetworkService.
> 8. Click OK.
> 9. In the message box, click Yes to continue.
> 10. In the DTC Console Message dialog box, click OK.
> 11. In the System Properties dialog box, click OK.
> Reboot the computer for these changes to take effect.
>
> 2.Enable MSDTC to allow the network transaction. To do this, follow
> these steps: a. Click Start, and then click Run.
> b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
> c. In the Component Services window, expand Component Services,
> expand Computers, and then expand My Computer.
> d. Right-click My Computer, and then click Properties.
> e. In the My Computer Properties dialog box, click Security
> Configuration on the MSDTC tab.
> f. In the Security Configuration dialog box, click to select
> the Network DTC Access check box.
> g. To allow the distributed transaction to run on this computer
> from a remote computer, click to select the Allow Inbound check box.
> h. To allow the distributed transaction to run on a remote
> computer from this computer, click to select the Allow Outbound check box.
> i. Under the Transaction Manager Communication group, click to
> select the No Authentication Required option.
> j. In the Security Configuration dialog box, click OK.
> k. In the My Computer Properties dialog box, click OK.
> 3. Configure Windows Firewall to include the MSDTC program and to
> include port 135 as an exception. To do this, follow these steps: a. Click
> Start, and then click Run.
> b. In the Run dialog box, type Firewall.cpl, and then click OK
> c. In Control Panel, double-click Windows Firewall.
> d. In the Windows Firewall dialog box, click Add Program on the
> Exceptions tab.
> e. In the Add a Program dialog box, click the Browse button,
> and then locate the Msdtc.exe file. By default, the file is stored in the
> <Installation drive>:\Windows\System32 folder.
> f. In the Add a Program dialog box, click OK.
> g. In the Windows Firewall dialog box, click to select the
> msdtc option in the Programs and Services list.
> h. Click Add Port on the Exceptions tab.
> i. In the Add a Port dialog box, type 135 in the Port number
> text box, and then click to select the TCP option.
> j. In the Add a Port dialog box, type a name for the exception
> in the Name text box, and then click OK.
> k. In the Windows Firewall dialog box, select the name that you
> used for the exception in step j in the Programs and Services list, and then
> click OK.
>
>
> I successfull used dtcping utility and get Invoking RPC method on av1
> RPC test is successful message on av2.
>
> but when i try
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [Av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
>
>
> it returns
>
> OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "Av1" was unable to begin a distributed transaction.
>
> any help will be much appreciated.
>
>
>
|||i used dtcping on av2 for av 1 and get
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
Please start PING from av1 to complete the test
by the wat i read something a webpage and executed msdtc - uninstall
and msdtc - install on av1
when i run a query on av2 i get
Msg 8501, Level 16, State 2, Line 1
MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
for av1
i opened port 135 on both server and succeeded telnet av1 135
and telnet av2 135 for both server. dtcping util suceeds too . what am i
doing wrong ?
|||Hi
Your original post covered what is needed for windows 2003 to allow DTC
http://support.microsoft.com/kb/817064/
I assume this is not a virtual server! http://support.microsoft.com/kb/889706/
asnd you have checked the RPC ports http://support.microsoft.com/kb/250367
Also check remote connections are enabled in the services and connection
section of the Surface Area Configuration Tool.
John
"in da club" wrote:
> i used dtcping on av2 for av 1 and get
> RPC test is successful
> ++++++++++++RPC test completed+++++++++++++++
> Please start PING from av1 to complete the test
> by the wat i read something a webpage and executed msdtc - uninstall
> and msdtc - install on av1
> when i run a query on av2 i get
> Msg 8501, Level 16, State 2, Line 1
> MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
>
> for av1
>
> i opened port 135 on both server and succeeded telnet av1 135
> and telnet av2 135 for both server. dtcping util suceeds too . what am i
> doing wrong ?
>
>
>
>
>
|||Hi
I assume that just issuing a BEGIN DISTRIBUTED TRANSACTION will give the
error? Can you confirm DTC is running on AV1 and DTCPing works when
connecting to it?
If these check out I am not sure what is wrong! You may want to remove and
re-install DTC
http://support.microsoft.com/kb/306212
http://support.microsoft.com/kb/873160
http://support.microsoft.com/kb/839279
John
<in da club> wrote in message
news:u%23sYGX5VIHA.5596@.TK2MSFTNGP05.phx.gbl...
>I checked http://support.microsoft.com/kb/817064/ and there is no problem
>with that issue. it is ok.
> You are right . it is not a virtual server.
> What about rpc ports . I opened 135 ports on both firewalls . isnt dtc
> using 135 port By default?
> When i run
> SELECT * FROM [av1].deneme.dbo.urunler
> it runs correctly.My surface area configuration is ok.
>
> SET REMOTE_PROC_TRANSACTIONS ON
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
> returns
> OLE DB provider "SQLNCLI" for linked server "av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "av1" was unable to begin a distributed transaction.
>
>
>
> "John Bell" <jbellnewsposts@.hotmail.com>, haber iletisinde unlar
> yazd:4B5B98E8-710A-443F-A717-8783FD3E9BA2@.microsoft.com...
>
DISTRIBUTED TRANSACTION PROBLEM
I linked one to another with
EXEC sp_addlinkedserver
@.server='AV1',
@.srvproduct='Av1',
@.provider='SQLOLEDB',
@.datasrc='88.247.124.178\ALISVERISSAATI'
My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
as AV2)
on av2 i have a sp which executes some sp's and data manipulation on Av1
I want to perform distributed tranactions on av2.
I did all
RESOLUTION
To resolve this problem, follow these steps: 1. Click Start, point to All
Programs, point to Administrative Tools, and then click Component Services.
2. In the Component Services Wizard, expand Component Services, and
then double-click Computers.
3. Right-click My Computer, and then click Properties.
4. Click the MS DTC tab, and then click Security Configuration.
5. In the Security Configuration dialog box, click to select the
Network DTC Access check box.
6. Under Network DTC Access, click Network Transactions.
Note If you installed Service Pack 1 for Windows Server 2003, you can
click Allow Inbound and Allow Outbound.
7. Make sure that DTC Logon Account is set to NT
Authority\NetworkService.
8. Click OK.
9. In the message box, click Yes to continue.
10. In the DTC Console Message dialog box, click OK.
11. In the System Properties dialog box, click OK.
Reboot the computer for these changes to take effect.
2.Enable MSDTC to allow the network transaction. To do this, follow
these steps: a. Click Start, and then click Run.
b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
c. In the Component Services window, expand Component Services,
expand Computers, and then expand My Computer.
d. Right-click My Computer, and then click Properties.
e. In the My Computer Properties dialog box, click Security
Configuration on the MSDTC tab.
f. In the Security Configuration dialog box, click to select
the Network DTC Access check box.
g. To allow the distributed transaction to run on this computer
from a remote computer, click to select the Allow Inbound check box.
h. To allow the distributed transaction to run on a remote
computer from this computer, click to select the Allow Outbound check box.
i. Under the Transaction Manager Communication group, click to
select the No Authentication Required option.
j. In the Security Configuration dialog box, click OK.
k. In the My Computer Properties dialog box, click OK.
3. Configure Windows Firewall to include the MSDTC program and to
include port 135 as an exception. To do this, follow these steps: a. Click
Start, and then click Run.
b. In the Run dialog box, type Firewall.cpl, and then click OK
c. In Control Panel, double-click Windows Firewall.
d. In the Windows Firewall dialog box, click Add Program on the
Exceptions tab.
e. In the Add a Program dialog box, click the Browse button,
and then locate the Msdtc.exe file. By default, the file is stored in the
<Installation drive>:\Windows\System32 folder.
f. In the Add a Program dialog box, click OK.
g. In the Windows Firewall dialog box, click to select the
msdtc option in the Programs and Services list.
h. Click Add Port on the Exceptions tab.
i. In the Add a Port dialog box, type 135 in the Port number
text box, and then click to select the TCP option.
j. In the Add a Port dialog box, type a name for the exception
in the Name text box, and then click OK.
k. In the Windows Firewall dialog box, select the name that you
used for the exception in step j in the Programs and Services list, and then
click OK.
I successfull used dtcping utility and get Invoking RPC method on av1
RPC test is successful message on av2.
but when i try
SET xact_abort ON
GO
BEGIN DISTRIBUTED TRANSACTION
SELECT * FROM [Av1].deneme.dbo.urunler
COMMIT TRAN
GO
it returns
OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
transaction is active.".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for
linked server "Av1" was unable to begin a distributed transaction.
any help will be much appreciated.
Hi
Have you checked things like the firewall
http://support.microsoft.com/kb/306843/ or used DTCPing or DTCtester to make
a connection? you may also want to check out http://tinyurl.com/2tdbtf
John
"in da club" wrote:
> I have 2 SQL server on 2 different servers. (both sql server 2005)
> I linked one to another with
> EXEC sp_addlinkedserver
> @.server='AV1',
> @.srvproduct='Av1',
> @.provider='SQLOLEDB',
> @.datasrc='88.247.124.178\ALISVERISSAATI'
> My other sql instance is on 212.154.34.50\ALISVERISSAATI (i will name it
> as AV2)
> on av2 i have a sp which executes some sp's and data manipulation on Av1
> I want to perform distributed tranactions on av2.
> I did all
> RESOLUTION
> To resolve this problem, follow these steps: 1. Click Start, point to All
> Programs, point to Administrative Tools, and then click Component Services.
> 2. In the Component Services Wizard, expand Component Services, and
> then double-click Computers.
> 3. Right-click My Computer, and then click Properties.
> 4. Click the MS DTC tab, and then click Security Configuration.
> 5. In the Security Configuration dialog box, click to select the
> Network DTC Access check box.
> 6. Under Network DTC Access, click Network Transactions.
> Note If you installed Service Pack 1 for Windows Server 2003, you can
> click Allow Inbound and Allow Outbound.
> 7. Make sure that DTC Logon Account is set to NT
> Authority\NetworkService.
> 8. Click OK.
> 9. In the message box, click Yes to continue.
> 10. In the DTC Console Message dialog box, click OK.
> 11. In the System Properties dialog box, click OK.
> Reboot the computer for these changes to take effect.
>
> 2.Enable MSDTC to allow the network transaction. To do this, follow
> these steps: a. Click Start, and then click Run.
> b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
> c. In the Component Services window, expand Component Services,
> expand Computers, and then expand My Computer.
> d. Right-click My Computer, and then click Properties.
> e. In the My Computer Properties dialog box, click Security
> Configuration on the MSDTC tab.
> f. In the Security Configuration dialog box, click to select
> the Network DTC Access check box.
> g. To allow the distributed transaction to run on this computer
> from a remote computer, click to select the Allow Inbound check box.
> h. To allow the distributed transaction to run on a remote
> computer from this computer, click to select the Allow Outbound check box.
> i. Under the Transaction Manager Communication group, click to
> select the No Authentication Required option.
> j. In the Security Configuration dialog box, click OK.
> k. In the My Computer Properties dialog box, click OK.
> 3. Configure Windows Firewall to include the MSDTC program and to
> include port 135 as an exception. To do this, follow these steps: a. Click
> Start, and then click Run.
> b. In the Run dialog box, type Firewall.cpl, and then click OK
> c. In Control Panel, double-click Windows Firewall.
> d. In the Windows Firewall dialog box, click Add Program on the
> Exceptions tab.
> e. In the Add a Program dialog box, click the Browse button,
> and then locate the Msdtc.exe file. By default, the file is stored in the
> <Installation drive>:\Windows\System32 folder.
> f. In the Add a Program dialog box, click OK.
> g. In the Windows Firewall dialog box, click to select the
> msdtc option in the Programs and Services list.
> h. Click Add Port on the Exceptions tab.
> i. In the Add a Port dialog box, type 135 in the Port number
> text box, and then click to select the TCP option.
> j. In the Add a Port dialog box, type a name for the exception
> in the Name text box, and then click OK.
> k. In the Windows Firewall dialog box, select the name that you
> used for the exception in step j in the Programs and Services list, and then
> click OK.
>
>
> I successfull used dtcping utility and get Invoking RPC method on av1
> RPC test is successful message on av2.
>
> but when i try
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [Av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
>
>
> it returns
>
> OLE DB provider "SQLNCLI" for linked server "Av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "Av1" was unable to begin a distributed transaction.
>
> any help will be much appreciated.
>
>
>
|||i used dtcping on av2 for av 1 and get
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
Please start PING from av1 to complete the test
by the wat i read something a webpage and executed msdtc - uninstall
and msdtc - install on av1
when i run a query on av2 i get
Msg 8501, Level 16, State 2, Line 1
MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
for av1
i opened port 135 on both server and succeeded telnet av1 135
and telnet av2 135 for both server. dtcping util suceeds too . what am i
doing wrong ?
|||Hi
Your original post covered what is needed for windows 2003 to allow DTC
http://support.microsoft.com/kb/817064/
I assume this is not a virtual server! http://support.microsoft.com/kb/889706/
asnd you have checked the RPC ports http://support.microsoft.com/kb/250367
Also check remote connections are enabled in the services and connection
section of the Surface Area Configuration Tool.
John
"in da club" wrote:
> i used dtcping on av2 for av 1 and get
> RPC test is successful
> ++++++++++++RPC test completed+++++++++++++++
> Please start PING from av1 to complete the test
> by the wat i read something a webpage and executed msdtc - uninstall
> and msdtc - install on av1
> when i run a query on av2 i get
> Msg 8501, Level 16, State 2, Line 1
> MSDTC on server 'FENERMARKET\ALISVERISSAATI' is unavailable.
>
> for av1
>
> i opened port 135 on both server and succeeded telnet av1 135
> and telnet av2 135 for both server. dtcping util suceeds too . what am i
> doing wrong ?
>
>
>
>
>
|||Hi
I assume that just issuing a BEGIN DISTRIBUTED TRANSACTION will give the
error? Can you confirm DTC is running on AV1 and DTCPing works when
connecting to it?
If these check out I am not sure what is wrong! You may want to remove and
re-install DTC
http://support.microsoft.com/kb/306212
http://support.microsoft.com/kb/873160
http://support.microsoft.com/kb/839279
John
<in da club> wrote in message
news:u%23sYGX5VIHA.5596@.TK2MSFTNGP05.phx.gbl...
>I checked http://support.microsoft.com/kb/817064/ and there is no problem
>with that issue. it is ok.
> You are right . it is not a virtual server.
> What about rpc ports . I opened 135 ports on both firewalls . isnt dtc
> using 135 port By default?
> When i run
> SELECT * FROM [av1].deneme.dbo.urunler
> it runs correctly.My surface area configuration is ok.
>
> SET REMOTE_PROC_TRANSACTIONS ON
> SET xact_abort ON
> GO
> BEGIN DISTRIBUTED TRANSACTION
> SELECT * FROM [av1].deneme.dbo.urunler
> COMMIT TRAN
> GO
>
> returns
> OLE DB provider "SQLNCLI" for linked server "av1" returned message "No
> transaction is active.".
> Msg 7391, Level 16, State 2, Line 3
> The operation could not be performed because OLE DB provider "SQLNCLI" for
> linked server "av1" was unable to begin a distributed transaction.
>
>
>
> "John Bell" <jbellnewsposts@.hotmail.com>, haber iletisinde unlar
> yazd:4B5B98E8-710A-443F-A717-8783FD3E9BA2@.microsoft.com...
>