Access ADP form not seemingly effected by SQL Server 2005 Security Settings

Hello Experts,

I have successfully created a stored procedure which allows me to deny delete, insert and update privileges to a user in an SQL Server 2005 database called ACT.  The procedure works fine and returns no errors when executed with the proper parameters.  My problem is that although I am the creator of the database and the database owner, I want to make sure that my table is read only after my stored procedure executes.  Even the owner or administrator should not be able to change the table unless another Grant is given.  This procedure does not seem to be doing the job and it has no effect on the Access ADP file that is running as the front end for the database.  I'm simply trying to make my table "Achievable" after the user decides to Lock the table by pressing a button on the front end.  I'm not concerned with how to code this in Access, my concern is what needs to be done in SQL server to enable the change of security on the fly.  Security for the SQL Server is based on login only.  Thanks experts.


USE [Act]
/****** Object:  StoredProcedure [dbo].[usp_DenyInsertDeleteUpdateTable]    Script Date: 07/16/2009 10:48:41 ******/
CREATE PROCEDURE [dbo].[usp_DenyInsertDeleteUpdateTable] 
		@ARCHIVE_TABLE Char(100),
		@REVIEW_YEAR Char(4),
		@USER_NAME Char(50)
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
DECLARE @SQL_STRING varchar(2000)

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim P.Commented:
Every time I hear someone mention the ACT! application/DB I shudder. As I understand it -- they really lock down the DB and what you can do with it.

There is a whole ACT! zone
Database --> Contact Management --> ACT

You can do a Request Attention and have the zones added. But from reading these questions, it sounds like there is no way to achieve what you are trying to do with the ADP. Maybe if you use the ACTReader as referred to in the second link you can get close.

Can't login to SQL 2005 using Mixed Mode Authentication

Enable sa login on existing sql 2005 database installation.
DASILBEAuthor Commented:
Hi Jimpen,

As it turns out, I found the solution.  The issue was the fact that my login on the server had sysadmin privledges and these privledges automatically override any object "Deny" settings that I was imposing.  The real issue is that when you use Windows login authentication for your SQL Server Security (Not mixed mode) then you have to consider the user login rights and what takes precedence.  I resolved this issue by creating another login that only had "public" as user role on the SQL Server itself and the Windows login.  The ADP actually integrates nicely with SQL Server.  I think most of us that experience this problem just don't realize how tightly SQL server database security is tied into Windows security and which rights have precedence.  The server apparently does.
DASILBEAuthor Commented:
I found the solution.  The issue was the fact that my login on the server had sysadmin privledges and these privledges automatically override any object "Deny" settings that I was imposing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim P.Commented:
I'm glad you found an answer. If you click on the link Accept as a solution in your reply, it will close the question.

May all your days get brighter and brighter.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.