which privilege for creating a db and tables?
Hi,
I use sql server 2005 express with Studio Management express.
Each windows-account in the domain in our organization who starts the application creates automatically (in code-behnd) first his own databaae (with as name his unique number in the organization), then several tables.
This happens only the first time he starts the application. So each member has his own database and tables.
We use IIS 5.1, so the account which runs under asp.net is ASPNET.
My question is: which privileges do i have to give to 'ASPNET' in order to create databases and tables and how to do that in Studio Management? I tried with db_reader and db_writer, but this is obviously not enough.
Another aspect is: how to protect each database from all other users, because there all are created with ASPNET. But Remote Connection is set to Local and the users reach their db via aspx pages, so i don't think it's a real issue ..
Thanks for help and other suggestions.
H.
Thanks
|