I have to design an application for accessing excel application as database. My problem is I have to create multiple connection for each transaction and if I miss any of closing
I think more right way is generate Excel file from database. Otherwise you must create server side for ensure transactions and connections control.
Main problem of your task - Excel is
not database
not network database
Other words you must use other tools, other approach for your tasks.