February 7, 2008 at 12:57 am
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.
February 7, 2008 at 1:06 am
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"
February 7, 2008 at 2:41 am
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
February 13, 2008 at 2:15 am
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"
February 13, 2008 at 4:27 am
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,
February 13, 2008 at 5:00 am
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
February 13, 2008 at 10:27 pm
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"
February 14, 2008 at 8:17 am
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.
February 15, 2008 at 4:06 am
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
February 15, 2008 at 4:24 am
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)
February 15, 2008 at 4:29 am
Hi
one more thing never use master database or any other system databases.
"Keep Trying"
February 15, 2008 at 4:02 pm
Thank you for all your help. I created a db for each students and assigned their ownership.
my next question is on how to get a db schema, and a relationship diagram?
Thanks again you all have been a great help.
🙂
February 15, 2008 at 4:52 pm
cyousa,
I'm not trying to be rude, I really am just curious. Why are you teaching or even setting up a SQL Server 2005 class if you are not familiar with the basics of it?
Again, I really am just curious how that happened.
-SQLBill
February 20, 2008 at 1:43 am
Hi
It would be better if you learn some basic things of SQL server. It would help you and us to co-operate better.
And nothing beats doing things ourselves.
"Keep Trying"
February 20, 2008 at 3:03 am
I am just volunteering to teach this class. and I have not used sql 2005
I am using all help I can get.
Thank you
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic. Login to reply