Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

MSDE does not work for XP power user

 
   Database Forums (Home) -> MSDE RSS
Next:  package using userid/pw  
Author Message
Peter Hase

External


Since: Jan 19, 2008
Posts: 2



(Msg. 1) Posted: Sat Jan 19, 2008 11:00 am
Post subject: MSDE does not work for XP power user
Imported from groups: microsoft>public>sqlserver>msde (more info?)

This message is not archived

 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Norman Yuan

External


Since: Dec 19, 2007
Posts: 19



(Msg. 2) Posted: Sat Jan 19, 2008 11:00 am
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It is not whether the user is "power user" or "admin". It is because of SQL
Server security. You must understand how to configure SQL Server/MSDE to
allow different users to access different data in a database of SQL
Server/MSDE. Yes, an local "Admin" user has all access to to the SQL
Server/MSDE, by default. But that does not mean user has to be "admin", and
more importantly, users who only need to access certain data in the SQL
Server/MSDE should only be able to access the data they supposed to be, not
anything else, especially not the permission to altter SQL Server/MSDE's
configuration, database design...

Sure, if your application is simple and the database is simple, you can let
your user always logs in as local admin, so your app will work risking the
user breaks the entire Windows.

So, study a bit more on SQL Server/MSDE security is due.

Basically, you need:

1. Determine which user who logs on this computer would use your
application/access the database in MSDE. Does he need to access data only,
or does he need to configure/change/desgn the MSDE/database

2. Do you want to use MSDE in Windows security mode or SQL Server security
(mixed mode)? By default installation, only Windows security is enabled. If
you want to use SQL Server security (including SQL Server login's
username/password in ConnectionString), you need to explicitly enable mixed
security mode

3. Create one or more SQL Server logins, map the login(s) to corresponding
Windows user account (for Windows security)

4. Make SQL Server login(s) as certain database' user(s), make user certain
role in the database;

5. Asign necessary access permission to the database user/role. For example,
if you do not want some user to edit data (read only), then you can only
give the user "SELECT..." permission, but no "UPDATE..." and "DELETE..."
permission to certain tables/views/SPs in the database.

SQL Server/MSDE is a complicated server software, not something you can do
double-clicking installing and using. You need a lot of knowledge/skill to
set it up properly before using it.

P.S.

In your post, you said "loginmode = sqlserver". If so, whether the user is
admin or power user should not have difference if the ConnectionString
supplied correct SQL Server login's username/password. So, if admin or power
user make difference, then logging in mode is not "sqlserver".



"Peter Hase" wrote in message

> Hi,
>
> I have built a MSDE 2000 based application which works fine in in a
> LAN environnment with XP clients under power user rights.
>
> Since the customer took the decision to deploy this
> we have got the problem, that everything is fine
> as the user is running with administation rights. If this
> is changed to 'power user' the client does not show any data.
> No error will be thrown. Why this and how can I fix it?
>
> Conditions: MSDE 2000 under Window XP, local installation
> (notebook), loginmode = sqlserver. Client is a .NET Windows
> application.
>
> Thanks in advance.
>
> Peter

 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Kenneth Porter

External


Since: Apr 17, 2004
Posts: 18



(Msg. 3) Posted: Sat Jan 19, 2008 3:29 pm
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Norman Yuan" wrote in


> SQL Server/MSDE is a complicated server software, not something you
> can do double-clicking installing and using. You need a lot of
> knowledge/skill to set it up properly before using it.

For simple applications, is there a simpler alternative? Should I go with
SQLite?

http://www.sqlite.org/
 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Norman Yuan

External


Since: Dec 19, 2007
Posts: 19



(Msg. 4) Posted: Sun Jan 20, 2008 8:46 am
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you want to avoid the complexity of database server (MSDE/SQL Server
Express), you can consider SQL Server 2005 CE.

"Kenneth Porter" wrote in message

> "Norman Yuan" wrote in
>
>
>> SQL Server/MSDE is a complicated server software, not something you
>> can do double-clicking installing and using. You need a lot of
>> knowledge/skill to set it up properly before using it.
>
> For simple applications, is there a simpler alternative? Should I go with
> SQLite?
>
> http://www.sqlite.org/
 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Peter Hase

External


Since: Jan 19, 2008
Posts: 2



(Msg. 5) Posted: Mon Jan 21, 2008 10:01 am
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Norman Yuan

External


Since: Dec 19, 2007
Posts: 19



(Msg. 6) Posted: Mon Jan 21, 2008 10:01 am
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Peter Hase" wrote in message

> Hi,
>
> thanks for your response.
>
>> SQL Server/MSDE is a complicated server software, not something you can
>> do
>> double-clicking installing and using. You need a lot of knowledge/skill
>> to
>> set it up properly before using it.
>
> yes, but maybe I've been a bit misunderstood. In the LAN environment
> the security is set to 'SQL Server security' and the default user's
> 'sa' login is used (as MS has recommended in former times -> btw, data
> security is not a main task for this application).
> That's what I mean as I wrote "loginmode = sqlserver".
> This will be provided by connectionstring data and works as I've
> mentioned.
> The same(?) configuration does not work on a local machine what looks
> weird for me, but I'm not sure wheather it's really identically
> because the costumer did this 'deployment' on his own.

If your MSDE is SQL Server2000 SP3 or later, "sa" account cannot be used by
default installation (i.e. SQL Server's mixed mode is not enabled). You need
to explicitly enable it during installation or after installation, until
then, the "sa" user name and password cannot be used to connect to SQL
Server MSDE.

You could use Enterprise Manager, SSMS/Express... to check/enable mixed
security mode. Or look into registry to determine if mixed mode is enabled.
However, do not use "sa" for any reason in application level. If you enabled
mixed mode, you can simply and easily create a SQL Server login and give it
whatever user name/password. Using "sa" with application is well known bad
practice, and there is absolutely no reason to use it.


>
> Nevertheless you are right, it is a good approach to configure certain
> user/roles with corresponding permission sets.
>
> Peter
 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Riccardo Toia

External


Since: Jan 31, 2008
Posts: 1



(Msg. 7) Posted: Thu Jan 31, 2008 5:02 am
Post subject: Re: MSDE does not work for XP power user [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, i think you shoud try Sql2005 Compact edition.


"Norman Yuan" ha scritto nel messaggio

>
> "Peter Hase" wrote in message
>
>> Hi,
>>
>> thanks for your response.
>>
>>> SQL Server/MSDE is a complicated server software, not something you can
>>> do
>>> double-clicking installing and using. You need a lot of knowledge/skill
>>> to
>>> set it up properly before using it.
>>
>> yes, but maybe I've been a bit misunderstood. In the LAN environment
>> the security is set to 'SQL Server security' and the default user's
>> 'sa' login is used (as MS has recommended in former times -> btw, data
>> security is not a main task for this application).
>> That's what I mean as I wrote "loginmode = sqlserver".
>> This will be provided by connectionstring data and works as I've
>> mentioned.
>> The same(?) configuration does not work on a local machine what looks
>> weird for me, but I'm not sure wheather it's really identically
>> because the costumer did this 'deployment' on his own.
>
> If your MSDE is SQL Server2000 SP3 or later, "sa" account cannot be used
> by default installation (i.e. SQL Server's mixed mode is not enabled). You
> need to explicitly enable it during installation or after installation,
> until then, the "sa" user name and password cannot be used to connect to
> SQL Server MSDE.
>
> You could use Enterprise Manager, SSMS/Express... to check/enable mixed
> security mode. Or look into registry to determine if mixed mode is
> enabled. However, do not use "sa" for any reason in application level. If
> you enabled mixed mode, you can simply and easily create a SQL Server
> login and give it whatever user name/password. Using "sa" with application
> is well known bad practice, and there is absolutely no reason to use it.
>
>
>>
>> Nevertheless you are right, it is a good approach to configure certain
>> user/roles with corresponding permission sets.
>>
>> Peter
>
 >> Stay informed about: MSDE does not work for XP power user 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
I need SQL/msde instance to run as user (not admin) - I have two applications that need to run on a user login (power user rights) .. One application is a commercial app that installed it's named instance (that runs fine with user rights); another is a "home-brewed" app (not by me) that (I bel...

SQK MSDE user rights - i HAVE SQL MSDE personal edition install in one of the user pc for third party application. Can the user run the program with the administrator right ?

Connect to MSDE with Limited User (not using sql authentic.. - I have an MSDE installation that I need to connect to within a C# .NET project as a Limited User (from the same machine, not via the network) The MSDE instance is not in sql authentication mode, only windows authentication. Is this possible? I've..

backups OK in MSDE2000 but won't work in SQLexpress - I'm migrating our app from VS2003/MSDE2000 to VS2005/SQLexpress. Generally no problems, but the backup of database always fails. The backup command is "BACKUP DATABASE icespy5 TO DISK='C:\testbackup'" I get: "Cannot open backup device 'C...

MSDE 8 and MSDE 2000 - Hello, I have MSDE 8 installed on my Win2k server as it is is required by Veritas Backup Exec.I would also likw to use this server for WSUS, which requires MSDE 2000. Can these co-exist on the same server? Thanks
   Database Forums (Home) -> MSDE All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]