Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

need help to create students accounts!!! Expand / Collapse
Author
Message
Posted Thursday, February 7, 2008 12:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 25, 2008 6:26 AM
Points: 7, 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.
Post #452585
Posted Thursday, February 7, 2008 1:06 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 8:08 AM
Points: 2,365, Visits: 1,846
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"
Post #452588
Posted Thursday, February 7, 2008 2:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 25, 2008 6:26 AM
Points: 7, 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

Post #452611
Posted Wednesday, February 13, 2008 2:15 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 8:08 AM
Points: 2,365, Visits: 1,846
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"
Post #454908
Posted Wednesday, February 13, 2008 4:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 25, 2008 6:26 AM
Points: 7, 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,
Post #454956
Posted Wednesday, February 13, 2008 5:00 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 4:18 AM
Points: 798, Visits: 1,003
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
Post #454963
Posted Wednesday, February 13, 2008 10:27 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 8:08 AM
Points: 2,365, Visits: 1,846
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"
Post #455515
Posted Thursday, February 14, 2008 8:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 25, 2008 6:26 AM
Points: 7, 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.
Post #455727
Posted Friday, February 15, 2008 4:06 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, May 21, 2014 10:30 AM
Points: 231, Visits: 198
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
Post #456233
Posted Friday, February 15, 2008 4:24 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 4:18 AM
Points: 798, Visits: 1,003
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)
Post #456239
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse