Unix Technical Forum

Design issue

This is a discussion on Design issue within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi I need some design info. Say that I need to create an educational lab for databases with SQL ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 03:34 AM
db_happy
 
Posts: n/a
Default Design issue

Hi

I need some design info. Say that I need to create an educational lab
for databases with SQL Server. I need all the users to be able to
execute common SQL commands ( create - alter – drop table , insert ,
update , delete ) and each user have his own space ( users not able to
see others data and a limit say of 2 MB) . The most obvious solution
is to create ( if I have 100 users ) , 100 login account ( SQL Server
Accounts ) , then create 100 databases , and assign each user to one
of this account with database role db_datawriter. Is this the best
solution or there is another way to do it ?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 03:34 AM
Simon Hayes
 
Posts: n/a
Default Re: Design issue


"db_happy" <database@freemail.gr> wrote in message
news:b625e551.0407110220.540e1260@posting.google.c om...
> Hi
>
> I need some design info. Say that I need to create an educational lab
> for databases with SQL Server. I need all the users to be able to
> execute common SQL commands ( create - alter - drop table , insert ,
> update , delete ) and each user have his own space ( users not able to
> see others data and a limit say of 2 MB) . The most obvious solution
> is to create ( if I have 100 users ) , 100 login account ( SQL Server
> Accounts ) , then create 100 databases , and assign each user to one
> of this account with database role db_datawriter. Is this the best
> solution or there is another way to do it ?
>
> Thanks


If you need to limit the users' space, then individual databases are
probably the only way to go, since there's no way to manage space quotas
within a single database. (At least, there's no standard way without using a
third party tool or building your own quota tools.) Note that db_datawriter
cannot create objects, so you would need to add the user to db_ddladmin
also, or create a custom role with the permissions set you want.

The downside of this approach is management of the large number of databases
and the associated files, backups etc. However, if you always use standard
scripts for creating/dropping each database, leverage Windows groups for
authentication (if possible), and perhaps use SQL maintenance plans for
backups, then you should be able to keep the work required to a minimum.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 03:34 AM
John Bell
 
Posts: n/a
Default Re: Design issue

Hi

You could buy each a copy of developer edition and let them run it on their
own PCs! A cheaper solution would be to use MSDE.

John

"db_happy" <database@freemail.gr> wrote in message
news:b625e551.0407110220.540e1260@posting.google.c om...
> Hi
>
> I need some design info. Say that I need to create an educational lab
> for databases with SQL Server. I need all the users to be able to
> execute common SQL commands ( create - alter - drop table , insert ,
> update , delete ) and each user have his own space ( users not able to
> see others data and a limit say of 2 MB) . The most obvious solution
> is to create ( if I have 100 users ) , 100 login account ( SQL Server
> Accounts ) , then create 100 databases , and assign each user to one
> of this account with database role db_datawriter. Is this the best
> solution or there is another way to do it ?
>
> Thanks



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 03:34 AM
Mirko Slavko
 
Posts: n/a
Default Test: please ignore this (was: Design issue)

On Sun, 11 Jul 2004 17:39:20 GMT, John Bell wrote:

> Hi
>
> You could buy each a copy of developer edition and let them run it on their
> own PCs! A cheaper solution would be to use MSDE.
>
> John
>
> "db_happy" <database@freemail.gr> wrote in message
> news:b625e551.0407110220.540e1260@posting.google.c om...
>> Hi
>>
>> I need some design info. Say that I need to create an educational lab
>> for databases with SQL Server. I need all the users to be able to
>> execute common SQL commands ( create - alter - drop table , insert ,
>> update , delete ) and each user have his own space ( users not able to
>> see others data and a limit say of 2 MB) . The most obvious solution
>> is to create ( if I have 100 users ) , 100 login account ( SQL Server
>> Accounts ) , then create 100 databases , and assign each user to one
>> of this account with database role db_datawriter. Is this the best
>> solution or there is another way to do it ?
>>
>> Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com