SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Connection Property of a distributed is being set to nothing, when I call SqlCommand.ExecuteReader


Connection Property of a distributed is being set to nothing, when I call SqlCommand.ExecuteReader

Author
Message
lankenr
lankenr
Mr or Mrs. 500
Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)Mr or Mrs. 500 (539 reputation)

Group: General Forum Members
Points: 539 Visits: 12
Hi ,
I am using distributed transaction, in which I am inserting some date from
Server1.Db1 to Server1.db2, with same database schema.

and similar process in Server2 and server1,
i.e. inserting data From Server2.db3 to Server1.Db2

for the server1.Db1 to Server1.db2 the process is running ok.
but for server2.db3 to server1.db2, it was working earlier, but now when i call SqlCommand.ExecuteReader() at a specific point, the Connection property of the Transaction is being set to nothing, and the transaction rolls back.

it is something like that table has some kind of corruption, but i am able to fire all commands on that table locally.

but not from server2, then it causes problems.

when i drop and recreate that table, then again it starts working for server2 too.

I am not able to find the reason and so not able to find the solution.

please help any one has resolved such kind of issue.


Thank you in advance,
Navnath Lanke
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search