Re: Logging in irrespective of database access
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 07/16/04
- Next message: Dan Guzman: "Re: inconsistent database naming scheme?"
- Previous message: Morgan: "Re: Faster than Access?"
- In reply to: Laphan: "Logging in irrespective of database access"
- Next in thread: Astra: "Re: Logging in irrespective of database access"
- Reply: Astra: "Re: Logging in irrespective of database access"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Jul 2004 19:22:34 -0500
Try connecting using Query Analyzer with one of the problem logins and run
the following in the context of your demodata and accounts databases:
SELECT USER
This will return the security context used to access the database.
-- Hope this helps. Dan Guzman SQL Server MVP "Laphan" <news@DoNotEmailMe.co.uk> wrote in message news:40f6c5a0$1_3@127.0.0.1... > Hi All > > Wonder if you could shed some light on a really weird problem. > > Basically we use a standard client side app that comms with 2 x SQL 2000 db. > > This SQL 2000 db sits on a Win2003 Server quite happily. > > The client apps sit on WinXP or Mac OS 9 quite happily. > > In SQL Enterprise Manager, I had originally created logins as follows: > > uid: demo pwd: demo only has access to demodata db > > uid: peter pwd: peter only has access to accounts db > uid: kerry pwd: kerry only has access to accounts db > uid: gary pwd: gary only has access to accounts db > > The reason for the above is so that nobody blindly logs into the demodata db > and enters account transactions all day. > > The above uses SQL server security and has worked fine for weeks until this > week. Now for some reason I can log into either db with any of the above > usernames and passwords. > > The security bit is working because if I leave out the username or password > or type completely different login details I can't get in, but for some > reason the database access bit has gone up the spout !!! > > I've looked back at the Logins section in SQL Enterprise Manager and the > Database Access is set correctly and I've checked that the ODBC data sources > don't have the 'sa' login details in that 'Prepared Statement...' bit, so > I'm at a loss as to how or why this is happening. > > The only thing that I know we have done in SQL Server this week is that we > had a backup from one of our clients and we restored this database into our > SQL Server installation. The db works fine, even though there are orphaned > user entries under the Database/Users section in Enterprise Manager from > their system, so could this be the culprit? None of their logins have > transposed to our system though. > > I've even created a new login and even though I'm only giving it access to > the demodata db its still able to get into both SQL dbs. > > Do you know how this has happened and how I can correct it?? > > Rgds > > Laphan > > > >
- Next message: Dan Guzman: "Re: inconsistent database naming scheme?"
- Previous message: Morgan: "Re: Faster than Access?"
- In reply to: Laphan: "Logging in irrespective of database access"
- Next in thread: Astra: "Re: Logging in irrespective of database access"
- Reply: Astra: "Re: Logging in irrespective of database access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|