Transactions on shared hosting

Discussion in 'ASP.NET 2.0' started by Glacier, Jan 29, 2008.

  1. Hi,
    Is it possible to use ADO.NET transactions (in C# code - not transactions within MSSQL stored procs)on shared hosting?



    SqlTransaction trans = conn.BeginTransaction();


    conn.Commit();


    conn.Rollback()


    Would the above code be valid?


    How should I manage transactions if this is not possible?


    Thank you
     
  2. SqlTransactions CAN be used here. What you CAN'T use is the newer transaction stuff like the newer TransactionScope. That one requires using a DTC which isn't supported here - unless things have changed since last time I asked.
     
  3. ok - how about transactions within SQL Server(from stored procedures) ? If not then I would have look to somewhere else.
     
  4. I just ran a test with my account on SQL Server 2005.


    You can apparently use native SQL Server transactions (within stored procedures).


    Thank goodness for this - without transactions creativity is pretty much killed ....
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    nope.. we still do not support ASP.NET transaction.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page