This doesn't look like something you want the application to be doing.
When you setup your connection you connect with an account. Whether it's your account or a specifically setup SQL account. This account has permissions levels.
If you as a dev do not have access to do this, then I would not expect your end-users to, so I would try to find another way of handling this.
If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]