You need to escape \
in your connection string in a part (LocalDB)\v11.0
. Should be localdb)\\v11.0
.
That said - it's really risky to allow entering raw SQL to be executed against your DB. Even if you take all precautions not to allow dangerous commands - there's always a chance that something can slip thru.