473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Adp and SQL Server is there a way to query SQL permissions to controluserforms?

In my user interface if a user doesn't have access to a field in the
database I lock it and make the background color yellow. Problem is
I'm maintaining permissions in two different places. On the server
and in my client. I was wondering if there is a way to query SQL
server on the client side and find out if the user has access to a
field. If no update then lock it. If no delete on the table then
disable delete on the form etc.

Just wondering if this is a waste of time. It would be great not to
have maintain this in two places.
Mar 22 '08 #1
9 1838
Tom van Stiphout <no*************@cox.netwrote in
news:ok********************************@4ax.com:
On Sat, 22 Mar 2008 13:45:20 -0700 (PDT), lyle
<ly************@gmail.comwrote:

How about if you revoke access to the tables, and work exclusively
with sprocs and views? Use Windows authentication, and give some
groups access to some sprocs and views and not to others.
When one does this carefully I am sure security is enhamced.

If you give me delete permissions for a view, and control how I use that
permission in an application then I will probably not do anything untoward
within the application.
When I create a new application, and start examining the connections
available to me I will see the connection I use for your application, even
if I'm not looking for that. And I will be able to connect from my new
application.
And now I can use that delete permission on that view without your
knowledge, without the safeguards you have built into your application.
If I'm feeling frustrated by your application safeguards I may do just
that.
Mar 22 '08 #2
On Sat, 22 Mar 2008 22:37:40 GMT, lyle fairfield <ly******@yah00.ca>
wrote:

I think I'm with Rick. I start with giving the user access to certain
data. My app is just one way those rights can be exercised. Nothing
you can do with your app will exceed what I wanted you to be able to
do in the first place.

-Tom.

>Tom van Stiphout <no*************@cox.netwrote in
news:ok********************************@4ax.com :
>On Sat, 22 Mar 2008 13:45:20 -0700 (PDT), lyle
<ly************@gmail.comwrote:

How about if you revoke access to the tables, and work exclusively
with sprocs and views? Use Windows authentication, and give some
groups access to some sprocs and views and not to others.

When one does this carefully I am sure security is enhamced.

If you give me delete permissions for a view, and control how I use that
permission in an application then I will probably not do anything untoward
within the application.
When I create a new application, and start examining the connections
available to me I will see the connection I use for your application, even
if I'm not looking for that. And I will be able to connect from my new
application.
And now I can use that delete permission on that view without your
knowledge, without the safeguards you have built into your application.
If I'm feeling frustrated by your application safeguards I may do just
that.
Mar 22 '08 #3
Access <al*********@gmail.comwrote:
>My users are totally dense, there isn't a chance in hell any of them
are going to create another adp and connect to this database.
However you can't depend on them being dense. There could be a very expert person
masquerading as a dense user who has just procured a job with your organization.
Highly unlikely but possible.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Mar 23 '08 #4
On Mar 22, 6:29 pm, Access <alderran...@gmail.comwrote:
My users are totally dense, there isn't a chance in hell any of them
are going to create another adp and connect to this database. I just
don't want them getting a nasty odbc error that might make them cry.
Maybe an OLEDB error with an ADP (http://office.microsoft.com/en-us/
access/HP052731031033.aspx)
Mar 23 '08 #5
On Mar 22, 9:49*pm, "Tony Toews [MVP]" <tto...@telusplanet.netwrote:
Access <alderran...@gmail.comwrote:
My users are totally dense, there isn't a chance in hell any of them
are going to create another adp and connect to this database.

However you can't depend on them being dense. *There could be a very expert person
masquerading as a dense user who has just procured a job with your organization.
Highly unlikely but possible.

Tony
--
Tony Toews, Microsoft Access MVP
* *Please respond only in the newsgroups so that others can
read the entire thread of messages.
* *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
* *Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/
Let's say I convert this thing to .mdb and only give users access to
views which filter the data appropriately. I'm not arguing about the
limitations in adp.

The question of locking down fields on the form based on the users SQL
permission level remains. I have three groups PowerUsers (internal
people), Site Coordinators (remote sites connecting to the database
using a terminal server) and ReadOnly users. I want to have one app
not three and when a readonly person logs in all fields are locked and
the form doesn't present a new record button etc, if they are site
coordinators some of the fields are locked and some are not. Some
tables they can add to others they cannot. PowerUsers have access to
more but not all.

Maybe there isn't a way
Mar 23 '08 #6
Access <al*********@gmail.comwrote:
>My users are totally dense, there isn't a chance in hell any of them
are going to create another adp and connect to this database.

However you can't depend on them being dense. *There could be a very expert person
masquerading as a dense user who has just procured a job with your organization.
Highly unlikely but possible.

Let's say I convert this thing to .mdb and only give users access to
views which filter the data appropriately. I'm not arguing about the
limitations in adp.

The question of locking down fields on the form based on the users SQL
permission level remains. I have three groups PowerUsers (internal
people), Site Coordinators (remote sites connecting to the database
using a terminal server) and ReadOnly users. I want to have one app
not three and when a readonly person logs in all fields are locked and
the form doesn't present a new record button etc, if they are site
coordinators some of the fields are locked and some are not. Some
tables they can add to others they cannot. PowerUsers have access to
more but not all.

Maybe there isn't a way
I've done very little work with SQL Server so I can't answer your question on how you
can interrogate SQL Server to get the information you need. A long term solution
would be Active Directory, creating appropriate groups of users and interrogating
those settings.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Mar 24 '08 #7
yah; I just think that it's _FUNNY_ that Tony Toews doesn't know what
'application roles' are.

They could prevent this very thing from happening.

-Aaron

On Mar 22, 6:49*pm, "Tony Toews [MVP]" <tto...@telusplanet.netwrote:
Access <alderran...@gmail.comwrote:
My users are totally dense, there isn't a chance in hell any of them
are going to create another adp and connect to this database.

However you can't depend on them being dense. *There could be a very expert person
masquerading as a dense user who has just procured a job with your organization.
Highly unlikely but possible.

Tony
--TonyToews, Microsoft Access MVP
* *Please respond only in the newsgroups so that others can
read the entire thread of messages.
* *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
* *Tony'sMicrosoft Access Blog -http://msmvps.com/blogs/access/
Mar 24 '08 #8
convert away from ADP ?

are you kidding me?

http://doc.ddart.net/mssql/sql70/sp_ca-cz_24.htm

-Aaron


On Mar 23, 3:50*am, Access <alderran...@gmail.comwrote:
On Mar 22, 9:49*pm, "TonyToews[MVP]" <tto...@telusplanet.netwrote:
Access <alderran...@gmail.comwrote:
>My users are totally dense, there isn't a chance in hell any of them
>are going to create another adp and connect to this database.
However you can't depend on them being dense. *There could be a very expert person
masquerading as a dense user who has just procured a job with your organization.
Highly unlikely but possible.
Tony
--
TonyToews, Microsoft Access MVP
* *Please respond only in the newsgroups so that others can
read the entire thread of messages.
* *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
* *Tony'sMicrosoft Access Blog -http://msmvps.com/blogs/access/

Let's say I convert this thing to .mdb and only give users access to
views which filter the data appropriately. *I'm not arguing about the
limitations in adp.

The question of locking down fields on the form based on the users SQL
permission level remains. *I have three groups PowerUsers (internal
people), Site Coordinators (remote sites connecting to the database
using a terminal server) and ReadOnly users. *I want to have one app
not three and when a readonly person logs in all fields are locked and
the form doesn't present a new record button etc, if they are site
coordinators some of the fields are locked and some are not. *Some
tables they can add to others they cannot. *PowerUsers have access to
more but not all.

Maybe there isn't a way
Mar 24 '08 #9
lyle <ly************@gmail.comwrote in
news:15**********************************@c19g2000 prf.googlegroups.co
m:
Application Roles were
introduced to deal with this probem but they seem to have had a
very rocky ride and I do not see them being heavily promoted.
Lyle, I spent extensive time and effort back in 1998 learning about
NT security, because that was the point at which I was asked to take
on administering an NT server. What I've found is that nobody but me
seems to know a damned thing about NT security and the proper ways
to set it up. People just use the default groups, instead of setting
up security groups specific to their organization. One would have
thought that Active Directory would have caused people to be more
sensible, but I haven't seen it at all.

People use the security as it's set up out of the box, and give no
thought to anything else.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 25 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maze | last post by:
This may be a simple question to answer, but I don't have a clue since I'm not a dba. I am using sql server 2000, while a client of ours is using sql server 7. Both using Windows 2000 as an OS,...
2
by: Rasta | last post by:
Hi, I've created a new table in a SQL Server db called 'LGBProdDetails' and I keep getting an error from my asp page that queries the table The error is: Category=Microsoft OLE DB Provider for...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
2
by: Mark Flippin | last post by:
I'm converting the backend of an Access 2000 database to SQL Server 2000. The existing database has user and group security through a specific workgroup file. Under the "user and group...
1
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
8
by: Coy | last post by:
I've added the ASPNET user to my local SQL Server 2000, but I still get an unhandled exception: Login failed for user 'C594891-A\ASPNET'. This is when using a web service. A similiar ASP.NET...
62
by: Bryan Dickerson | last post by:
Is there a way, with VS 2005 and FX 2.0, to read a given inbox? I need to write a 'monitor' program and my boss is convinced, as is always his first gut reaction, that we need to go buy a...
5
by: Neil | last post by:
I am getting time-out errors when I try to perform a simple delete on a linked server. The command is: Delete From MyTable Where PKID=12345 I have tried executing this command directly from...
2
by: Mark D Powell | last post by:
I had thought that I had posted this yesterday but since I cannot find it here we go again. I have searched the archives but either the code I want is not posted or I missed it. I have a user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.