Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-24
4
Medium Priority
?
210 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 300 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 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