In one of my test I need to create a SQL Express database and then populate it.
It's run fine on my machine but when TeamCity tries to run the very same test it throws the following exception:
Test(s) failed. System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> System.Data.SqlClient.SqlException : CREATE DATABASE permission denied in database 'master'.
What could be causing this?