Blocking MS Access from accessing a db

  • I have a SQL 200 database currently accessed through an application id by the applications. I am using SQL authentication.

    I have the need to log changes (before/after) to specific tables/columns and capture the NT logon of who made them.

    If i use NT authentication, users will have access to the db with Excel and Access. How can I lock out Excel/Access or how can I get the NT logon using SQL authentication?

  • I've got a couple articles that discuss sql logins and authentication, one went live today if you're interested. If you're using a sql login you have to manage getting the NT login. You can determine it in the client app by something like Environ$("USERNAME") and then pass it to a proc (or all the procs). If you use NT authentication you can block users two ways, one is by using application roles, the other is to use app_name() and test everyplace to make sure its only your app (give it a weird name in the connect string for a little extra obscurity).

    Andy

    http://www.sqlservercentral.com/columnists/awarren/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply