We have a situation where we have a Windows Application connecting to SQL Server using Windows Authentication (similar to How to add Active Directory user group as login in SQL Server). All the Active Directory users who will be using the application have been added to an AD group (let's call it GroupX)
A login was then created on the SQL instance for GroupX. Only the "public" server role has been assigned to this login. On the database itself a user was created for GroupX. The "db_Owner" role permission was allocated to the this group user. We need "db_Owner" permissions as the application needs read/write access as well as permission to do schema changes.
When the desktop application attempts to connect to the database we get an exception: "Cannot open database z requested by the login. The login failed. Login failed for user y.
The area of SQL Security is a bit new to me as I am used to being a sysadmin on my own SQL instance against which I develop and off course in that kind of environment everything just works.
Any ideas will be greatly appreciated.