Are you sure the line isn't
set(conn,'Autocommit', 'on')
If you have not included your actual code above, please edit your actual code in.
Is the actual error perhaps, "Operation must use an updateable query"? If so, then please see http://www.mikesdotnetting.com/Article/74/Solving-the-Operation-Must-Use-An-Updateable-Query-error