Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Determine user name logged on to SQL Server

Author  Topic 

pgill
Starting Member

17 Posts

Posted - 2007-08-09 : 07:52:55
I am using a MS Access front end to SQL Server 2005. I have a Switchboard on the Access side. I want to block certain users from accessing the Data Entry Switchboard. What would be the best approach to this? I was thinking of blocking access depending on the user name. How can I determine what user is logged on to SQL Server and then use that info to block the access? Thanks in advance.

nr
SQLTeam MVY

12543 Posts

Posted - 2007-08-09 : 08:16:12
select system_user will give the login.

Depends on your app how you use it.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

pgill
Starting Member

17 Posts

Posted - 2007-08-09 : 08:59:28
nr thanks for your reply. On my main Switchboard I have several buttons, one of which is a Data Entry button. I want to basically authenticate a user to be able to open the Data Entry screen or pop up a message box stating that the user does not have permission. Sould this be done on the Access side or SQL Server side and what would be the best approach?
Go to Top of Page
   

- Advertisement -