Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
SQL
ce
clients
clustering
connect
datamining
datawarehouse
dts
fulltext
jdbcdriver
msde
mseq
newusers
notificationsvcs
odbc
olap
programming
replication
reportingsvcs
security
securitytools
server
setup
sqlxml.viewmapper
tools
xml
  
 
date: Tue, 13 Feb 2007 12:05:48 +0100,    group: microsoft.public.sqlserver.msde        back       


Using MSDE with admin and non-admin on laptop   
Hi!

I've installed MSDE 2000 on a laptop using a admin account. I then logon 
using a user account. Now MSDE isn't started, and as I don't have admin 
privileges I cannot access services etc.

If I am logged on as both user and admin (switching between the accounts) 
the MSDE icon in the activityfield has a green arrow when I log on as admin 
but it's an empty white circle when I am logged on as user.

Shouldn't you be able to install MSDE as admin and then use it as user?

 / Peter
date: Tue, 13 Feb 2007 12:05:48 +0100   author:   Peter Hartln

Re: Using MSDE with admin and non-admin on laptop   
I've realized I need to set up an admin account that is used to 
automatically start MSDE when the user logs on.

Can I simply create a admin account and assign it to the MSSQLSERVER service 
startup?

If I look at the MSSQLSERVER service with my non-admin account I can see it 
is started regardless of how it is set to start (Local system or admin 
account), but I can still not connect.

I am using logging on to MSDE using "Integrated security for Windows NT", do 
I need to use username/password security to be able to use a user without 
admin rights?

/ Peter
date: Tue, 13 Feb 2007 14:00:45 +0100   author:   Peter Hartln

Re: Using MSDE with admin and non-admin on laptop   
1. Make sure the MSDE is installed correctly;
2. Make sure the MSDE runs as expected. You log on user laptop as an Admin 
user (in order to check the "Services" applet and make changes if 
necessary), go to "Services" applet. Make sure the "MSSQLServer" is set to 
"Automatic starts". And its "Log on" account should be set to "Local System" 
(unless you have some specific concerns that make you choose other account, 
I do not see why, in your case).

After this two steps, the MSDE should be running whenever you laptop turns 
on, and ready to be accessed, no matter which user account you log on to the 
laptop. That is, MSDE, as a Windows service, should run whether there is 
user logged onto this computer or not, or logged on with different user 
account. This has nothing to do with SQL Server's security (Authentication 
mode, Windows integrated, or SQL Server security).

Then you start to worry about MSDE's security:

By default, only Windows authentication is used (that is, you do not need 
username/password pair once you log onto your laptop). When you log on as an 
Admin user, you automatically gain the access to MSDE. However, when you log 
on as non-admin user, MSDE knows who you are (because of Windows 
authentication of MSDE in use), and grants/denies your access accordingly. 
You need to create a SQL Server login in MSDE that maps a user account/group 
of your laptop, and make this login a user to given database. With that 
given database, you can make a user play different role (public user, db 
owner...), or assign different level of access to server objects (tables, 
views, SPs...)

General approach is to log onto your laptop as Admin, install/set up MSDE 
properly, assign specific SQL Server login as user of certain databases, 
assign appropriate permissions to the databases, and log off as Admin, log 
on again as a standard user. Now, you can use the MSDE fairly safely.


"Peter Hartln"  wrote in message 
news:uWyej71THHA.5068@TK2MSFTNGP03.phx.gbl...
> Hi!
>
> I've installed MSDE 2000 on a laptop using a admin account. I then logon 
> using a user account. Now MSDE isn't started, and as I don't have admin 
> privileges I cannot access services etc.
>
> If I am logged on as both user and admin (switching between the accounts) 
> the MSDE icon in the activityfield has a green arrow when I log on as 
> admin but it's an empty white circle when I am logged on as user.
>
> Shouldn't you be able to install MSDE as admin and then use it as user?
>
> / Peter
>
date: Tue, 13 Feb 2007 07:41:16 -0700   author:   Norman Yuan

Re: Using MSDE with admin and non-admin on laptop   
Thanks Norman!

Best regards,

 Peter


"Norman Yuan"  skrev i meddelandet 
news:eWRLny3THHA.5012@TK2MSFTNGP04.phx.gbl...
> 1. Make sure the MSDE is installed correctly;
> 2. Make sure the MSDE runs as expected. You log on user laptop as an Admin 
> user (in order to check the "Services" applet and make changes if 
> necessary), go to "Services" applet. Make sure the "MSSQLServer" is set to 
> "Automatic starts". And its "Log on" account should be set to "Local 
> System" (unless you have some specific concerns that make you choose other 
> account, I do not see why, in your case).
>
> After this two steps, the MSDE should be running whenever you laptop turns 
> on, and ready to be accessed, no matter which user account you log on to 
> the laptop. That is, MSDE, as a Windows service, should run whether there 
> is user logged onto this computer or not, or logged on with different user 
> account. This has nothing to do with SQL Server's security (Authentication 
> mode, Windows integrated, or SQL Server security).
>
> Then you start to worry about MSDE's security:
>
> By default, only Windows authentication is used (that is, you do not need 
> username/password pair once you log onto your laptop). When you log on as 
> an Admin user, you automatically gain the access to MSDE. However, when 
> you log on as non-admin user, MSDE knows who you are (because of Windows 
> authentication of MSDE in use), and grants/denies your access accordingly. 
> You need to create a SQL Server login in MSDE that maps a user 
> account/group of your laptop, and make this login a user to given 
> database. With that given database, you can make a user play different 
> role (public user, db owner...), or assign different level of access to 
> server objects (tables, views, SPs...)
>
> General approach is to log onto your laptop as Admin, install/set up MSDE 
> properly, assign specific SQL Server login as user of certain databases, 
> assign appropriate permissions to the databases, and log off as Admin, log 
> on again as a standard user. Now, you can use the MSDE fairly safely.
>
>
> "Peter Hartln"  wrote in message 
> news:uWyej71THHA.5068@TK2MSFTNGP03.phx.gbl...
>> Hi!
>>
>> I've installed MSDE 2000 on a laptop using a admin account. I then logon 
>> using a user account. Now MSDE isn't started, and as I don't have admin 
>> privileges I cannot access services etc.
>>
>> If I am logged on as both user and admin (switching between the accounts) 
>> the MSDE icon in the activityfield has a green arrow when I log on as 
>> admin but it's an empty white circle when I am logged on as user.
>>
>> Shouldn't you be able to install MSDE as admin and then use it as user?
>>
>> / Peter
>>
>
>
date: Tue, 13 Feb 2007 16:14:19 +0100   author:   Peter Hartln

Re: Using MSDE with admin and non-admin on laptop   
> General approach is to log onto your laptop as Admin, install/set up MSDE 
> properly, assign specific SQL Server login as user of certain databases, 
> assign appropriate permissions to the databases, and log off as Admin, log 
> on again as a standard user. Now, you can use the MSDE fairly safely.

After reading your post again I realized one thing wasn't really clear to 
me.

Can I use "Integrated security for Windows NT" for this non-admin user, or 
do I need to set the security mode of MSDE to accept both "Integrated sec" 
and "SQL Server login"?

Thanks,

 Peter
date: Tue, 13 Feb 2007 16:27:42 +0100   author:   Peter Hartln

Re: Using MSDE with admin and non-admin on laptop   
"Peter Hartln"  wrote in message 
news:Olg73N4THHA.4928@TK2MSFTNGP03.phx.gbl...
>> General approach is to log onto your laptop as Admin, install/set up MSDE 
>> properly, assign specific SQL Server login as user of certain databases, 
>> assign appropriate permissions to the databases, and log off as Admin, 
>> log on again as a standard user. Now, you can use the MSDE fairly safely.
>
> After reading your post again I realized one thing wasn't really clear to 
> me.
>
> Can I use "Integrated security for Windows NT" for this non-admin user, or

Yes, of course. You need to create an SQL Server login that maps to the user 
account, then make this SQL Server login a user to certain database. Since 
MSDE does not have UI tool, you need something easy to use to do it 
(Enterprise Manager coming with SQL Server2000, or SQL Server Management 
Studio Express, or other 3rd party tool), or use osql.exe at command line to 
execute some built-in SP (consulting SQL Server Book online).

> do I need to set the security mode of MSDE to accept both "Integrated sec" 
> and "SQL Server login"?

It depends your needs. For development purpose with your laptop, Windows 
Integrated security may well serve your need.

>
> Thanks,
>
> Peter
>
date: Tue, 13 Feb 2007 10:13:20 -0700   author:   Norman Yuan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us