Check for either ADO.NET / OLEDB Connection presence and then insert to DB
问题 I originally posted the question to check for presence of either ADO.NET/OLEDB connection types. That being resolved, I'd like to know, how to change the code when it comes to inserting to the DB. For example, when the connection type is ADO.NET we use the "Transaction" in the connection type. SqlConnection connection = (SqlConnection)connections[_connectionName].AcquireConnection(transaction); Now if I have the OLEDB connection (instead of ADO.NET), I'd like to handle that situation in this