Yes. Of course.
But generally speaking you even need rights to generate schema for existing database.
This is not really related to the actual question.
I manually execute create schema script for MsSql using existing connection string (Trusted Conn.) but changing the database to master. With trusted connection there are plenty of privileges.
Just want to make sure this is correct approach (during unit testing at least).
Yes, of course, But you do that through the settings you define at nhibernate configuration which stores your credentials to access to explicit database, not the server database.
I think the best way to achieve this would be through a "mock" embedded database like sqllite, don't you?
If you have all the integration tests running against all supported databases to complete your neededs and at the same time you are telling you want execute those tests against a "real" database,
>I have the integration tests that run against all supported databases. In my case they are MsSql and SqlLite. So I >want to execute those tests against a real database (which SqlLite is too but can be thought as a mock DB too).
If this is not the case I am not understanding you...
So sorry but I don't know any better way...