Solved

Need advice creating secure login in MS ACCESS/MS SQL?

Posted on 2003-10-24
4
203 Views
Last Modified: 2012-08-14
I have a MS SQL 2000 server and I use MS Access XP as the front end using linked tables. I want to be able to create a login that allows clients to only see there information preferably using sql server authentication. I have a clientid table that is used to identify a clients information, all data for a client can be referenced back to that id, so is there a simple way to make a Access front end display only the data that is related to the clientid by referencing the sql authentication login?? Any other suggestions would be appreciated.

Thanks in advance for your time.
0
Comment
Question by:tekguy4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:syntnx
ID: 9616229
Hey tekguy,

Well you can use the following stored procedure to obtain the currently logged in user

---
Alter Procedure [current system user]
AS
DECLARE @sys_usr char(30)
SET @sys_usr = SYSTEM_USER
SELECT @sys_usr
GO
-----

Does each user/client have their own copy of the .adp file? If so then you can probally use the above stored procedure to obtain the current user locally logged in, and run a query passing their login to a parameter query/stored procedure to pull the information. Ive never tried this with SQL but dont see why it would work

hope this helps somewhat

syntnx
0
 
LVL 3

Accepted Solution

by:
syntnx earned 75 total points
ID: 9616286
Or If there are only a handful of users that never changes. Then a view could be created for each user, the their .adp that shows their info. Permissions can be set on each users "custom" view. Of course this is not a robust solution if you are constantly adding new users.

syntnx
0
 

Author Comment

by:tekguy4
ID: 9628288
Thanks Sytnx, your help pointed me in right direction.
I created a new SQL table called login with 2 columns: Name and CLientID
The Name column equals the users SQL Authentication Login name and the client id equals the CLIENTid I want them to see, then using Views with Where clause against "Current_User" I get the results I need.

Thanks again
0
 
LVL 3

Expert Comment

by:syntnx
ID: 9628502
hey no problem, glad to have helped!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question