msdtc

changing existing COM+ applications identity via vbs script

你离开我真会死。 提交于 2019-12-01 08:03:21
问题 How to changing existing COM+ applications identity via vbs script. like Authentication level = none and identity to this user via vb scripts. found many posting on add/delete com+ applications but not changing existing one. please help 回答1: Here's a script that retrieves all of the applications, finds the one with the name you are interested in and sets the Identity, Password and Authentication to Connect. For a full list of Application properties see Applications Collection under COM+

Distributed Transaction Coordinator

只谈情不闲聊 提交于 2019-11-30 17:05:44
I am trying make a database transaction(inserting records) across multiple system. So, I decided to use System.Transaction Namespace in .net. I configured MSDTC on both system(But i dont know whether i configured correctly). My transaction has two insert query one will execute at local system. another, will execute at some other system in a local network. First insert query work successfully but second one raise a error like : Message = "The transaction has already been implicitly or explicitly committed or aborted." Please help in this case to over come. Here is my Code using

Any real-world, enterprise-grade experience with Transactional NTFS (TxF)?

拈花ヽ惹草 提交于 2019-11-30 13:45:45
问题 Background: I am aware of this SO question about Transactional NTFS (TxF) and this article describing how to use it, but I am looking for real-world experience with a reasonably high-volume enterprise system where lots of blob data (say documents and/or photos) need to be persisted once transactionally and read many times . We are expecting a few tens of thousands of documents written per day and reads of several tens of thousands per hour. We could either store indexes within the file system

Any real-world, enterprise-grade experience with Transactional NTFS (TxF)?

强颜欢笑 提交于 2019-11-30 08:22:34
Background: I am aware of this SO question about Transactional NTFS (TxF) and this article describing how to use it, but I am looking for real-world experience with a reasonably high-volume enterprise system where lots of blob data (say documents and/or photos) need to be persisted once transactionally and read many times . We are expecting a few tens of thousands of documents written per day and reads of several tens of thousands per hour. We could either store indexes within the file system or in SQL Server but must be able to scale this out over several boxes. We must retain the ability to

TransactionScope Error against Sql Server 2000 - The partner transaction manager has disabled its support for remote/network transactions

自作多情 提交于 2019-11-30 06:31:24
问题 I am trying to set up a simple transaction for my Linq-to-Sql actions against my Sql 2000 database. Using TransactionScope it looks like this: using (TransactionScope transaction = new TransactionScope()) { try { Store.DBDataContext dc = new Store.DBDataContext(); Store.Product product = GetProduct("foo"); dc.InsertOnSubmit(product); dc.SubmitChanges(); transaction.Complete(); } catch (Exception ex) { throw ex; } } However, i keep getting the following error: The partner transaction manager

Multiple Connections With Same Connection String Under A Single Transaction, Elevated Transaction?

橙三吉。 提交于 2019-11-29 12:22:24
When using ado.net, and creating multiple connections to a MS SQL Server database within a single transaction (using System.Transactions.TransactionScope), does System.Transactions elevate the transaction from the lightweight transaction manager to the distributed transaction coordinator (kernel transaction coordinator on Vista), even if the connection strings are the same for all of the connection objects? The documentation is somewhat ambiguous on this specific situation. It says the transaction will get elevated if another connection is opened to the server during the transaction but it

TransactionScope Error against Sql Server 2000 - The partner transaction manager has disabled its support for remote/network transactions

陌路散爱 提交于 2019-11-28 19:01:46
I am trying to set up a simple transaction for my Linq-to-Sql actions against my Sql 2000 database. Using TransactionScope it looks like this: using (TransactionScope transaction = new TransactionScope()) { try { Store.DBDataContext dc = new Store.DBDataContext(); Store.Product product = GetProduct("foo"); dc.InsertOnSubmit(product); dc.SubmitChanges(); transaction.Complete(); } catch (Exception ex) { throw ex; } } However, i keep getting the following error: The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025) But, if I

How to share a connection between EF DbContext and AspNet Membership to avoid transactions escalating to DTC

风流意气都作罢 提交于 2019-11-28 10:20:37
I have an ASP.NET MVC3 application that uses an EF 4.1 DbContext, database-first data layer. The EDMX approach works fine as I tend to make changes to my data model before adapting the application to them. The application works fine with the special EF connection string that includes metadata references. However, there's one fly in the ointment. The application also uses ASP.NET membership and roles which require a standard connection string. I have several use cases that involve both the membership tables and other (EF managed) tables. As the two use separate connection strings, transactions

MSDTC on server 'server is unavailable

为君一笑 提交于 2019-11-27 19:36:38
I get this weird error on SQL Server. And I cannot find solution in older posts. I have this procedure: create proc _upJM_SyncAll_test as begin DECLARE @SQLString nvarchar(max) set @SQLString = N' DELETE FROM OPENQUERY([LOCAL_MYSQL],''SELECT acSubject FROM _utjm_setitemprices'') where acSubject not in (select acSubject from _uvJM_SetSubj) DELETE FROM OPENQUERY([LOCAL_MYSQL],''SELECT acSubject FROM _utjm_setsubj'') where acSubject not in (select acSubject from _uvJM_SetSubj) update a set acName2 = b.acName2, acName3 = b.acName3, acAddress = b.acAddress, acPost = b.acPost, acPostName = b

EF: How do I call SaveChanges twice inside a transaction?

 ̄綄美尐妖づ 提交于 2019-11-27 14:00:44
问题 Using Entity Framework (code first in my case), I have an operation that requires me to call SaveChanges to update one object in the DB, and then SaveChanges again to update another object. (I need the first SaveChanges to resolve an issue where EF can't figure out which object to update first). I tried doing: using (var transaction = new TransactionScope()) { // Do something db.SaveChanges(); // Do something else db.SaveChanges(); tramsaction.Complete(); } When I run that, I get an exception