SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


need help to create students accounts!!!


need help to create students accounts!!!

Author
Message
cyousra
cyousra
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 27
I have been assigned to teach db lab. we have sql server 2005 installed in the server, and the students are supposed to work on the sql analyzer.

I did create a user account through the EM from the server, but could't connect with it from the sql query analyzer.
to connect I put the IP address in the computer box, then the user name & password that I created!!
I'm not sure if that's how it should be done

I have never done this before, I'm really lost.
Please help me.
ChiragNS
ChiragNS
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6831 Visits: 1865
Hi

What exactly is the error that you get?

Have u actually created the login and the user. The user must be created in the database that you are trying to connect. Can u view the login & the user through EM.

In the SQL query analyzer put the instance name of SQL server.

"Keep Trying"
cyousra
cyousra
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 27
Thanks for your help.
it is silly but I realized that I was using the server user & pwd instead of the one I created in the EM to access the sql server mng

now all I have to do is create a user account for each student. how can I make sure each user can only see the db they created?

Thank you so much
ChiragNS
ChiragNS
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6831 Visits: 1865
Hi

Sorry for the delay in reply.

U will have to create a separate login for each student. Then in the students respective database u can create the database user corresponding to the students login.

"Keep Trying"
cyousra
cyousra
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 27
I assigned the students to one database (master) and during class they were all working on the same db.
how can I change their db ownership without having to recreate the accounts?


Thank You,
dragos_sv
dragos_sv
SSC Eights!
SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)

Group: General Forum Members
Points: 943 Visits: 1030
you want to change the default database for the login or to set the login as dbo for their database?
if you can explain a bit please
ChiragNS
ChiragNS
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6831 Visits: 1865
Hi

Give us the exact details that you want and then we can try.

Will each student will have his own database or will all students have a single common database.

have u created logins.

do each of them login with their own logins

"Keep Trying"
cyousra
cyousra
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 27
Yes, each student has their own log in( user & pwd). & they should have their own db. so that they can create tables and modify it as we go along.
But what I did was that I created one database and I set some students ownership to it. and the other students to the master db.
so now I'm stuck with two db full of data entered by different students.
When they should each have their own.

should I just create one for each of them & then have them reexecute their queries next class?
or can they create a db from the query analyzer?


Thank you so much.
vblllove
vblllove
Old Hand
Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)Old Hand (392 reputation)

Group: General Forum Members
Points: 392 Visits: 211
HI, I think its best for yu to create the database for each one so you have control and Assign a single user to single database. That way the users dot have access to others databases
dragos_sv
dragos_sv
SSC Eights!
SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)SSC Eights! (943 reputation)

Group: General Forum Members
Points: 943 Visits: 1030
i think you should create the database for each student, bind the login to it(i mean, give permission to the database only for the login and set the db as default for the login)... and ask them to re-do the work if needed (if you have the time and possibility, you could move the objects yourself maybe)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search