I am searching for a solution of my problem. I banged my head for the last few hours and tried several things and solutions found on google or stack-exchange.
The database should be created via Event Receiver
. I know that elevated prev impersonate as the app pool account which has not enough rights to create a database. But even as a farm admin on my development machine (there is only one account for all services, app pools and so on) I run into an access denied (with the super admin itself :-D )
I don´t know how to go on. Is it possible to SQL authentication and use a SQL user in some way? I tried this way on my development machine with the sa user and the right password BUT access denied.
Due to the fact that this should be a self service solution timer jobs are no solution for me :-( WebService and farm application page are not the best way from my point of view.