I\'m creating a database using SQL Server Management Objects.
I wrote the following method to generate a database:
public static void CreateClientDat
One thing to note here all is that the error message is surrounding security. How are you attempting to logon to the new database (i.e. what type of security is the connection string using for the new database connection)? If you are using SQL authentication you will need to issue sp_adduser to grant the login access to the database.
http://msdn.microsoft.com/en-us/library/ms181422.aspx