Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am designing an accounting business software. At first thought I planned to use MySql as backend. But, after a few days of work, I found that its really tough to deal with MySql for transactions.

MySql connector for Ado.net is not implemented well for this purpose (as I can see, personal experience). They do not even have a function to set autocommit on or off. Which is the biggest drawback I see. You got to start the transaction in the query itself to turn off autocommit for transactions instead of handling transactions from frontend.

It is becoming an overhead for me.

I used MySql as it is open source and I had good experience with it.

Now, please let me know if I am wrong in my concerns about MySql or I should switch to other RDBMS.

What I have tried:

Tried googling for a good post but havent found one.
Posted
Updated 5-Oct-16 3:52am

1 solution

I'm a little biased but I would suggest looking into SQL Server.

  1. Serveral editions from free to all the bells and whistles
  2. Full support for transactions
  3. Full .Net library support
  4. 2016 version performance is on par with Oracle
  5. T-SQL is easier to work with pure opinion

Example of using transactions with SQL Server and .Net
C#
SqlConnection conn = new SqlConnection(_connectionString);
try
{
conn.Open();
SqlTransaction trans = conn.BeginTransaction(); // BEGIN TRANSACTION
SqlCommand = new SqlCommand() { Connectin = conn, CommandType = SqlCommandType.StoredProcedure };
// assign command parameters and execute the statement....
trans.Commit(); // COMMIT TRANSACTION
}
catch(SqlException)
{
 trans.Rollback(); //ROLLBACK TRANSACTION
}
 
Share this answer
 
Comments
Member 11040029 5-Oct-16 9:56am    
yeah sql server would be a good choice Foothill. I am still interested to know what lacks for mysql in .net..if you got any idea?
Foothill 5-Oct-16 10:03am    
Direct support from Microsoft. All other database support is either through generic ODBC calls or their own custom database library (e.g. Oracle.ManagedDataAccess to name one).
Member 11040029 5-Oct-16 10:27am    
ur right foothill..but i need more satisfactory answers on this post..if u can help me with that a little bit more
Foothill 5-Oct-16 10:30am    
I can try. What specific information are you looking for?
Member 11040029 5-Oct-16 10:44am    
actually lots of work has already been done in mysql..I mean tables, procedures etc are created and referenced. Any good way to export all these to sql server..or any good approach for mysql transactions in .net?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900