473,398 Members | 2,113 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,398 software developers and data experts.

Converting MDW protected database to SQL Server


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 accounts" there is a button to print the
users and group relationships. As there are only about 50 authorized
users and 6 groups, this has worked.

But under the "user and group permissions" there is no report option;
just the ability to select every possible combination of
user/group/object and view the permissions.

I'm looking for a way to report on permissions on each object (form,
table, report, query, group, user) to provide the basis of the design
of reasonable security setup on SQL Server and identify areas of the
existing front end to be analyzed for problems in the conversion

Any help would be appreciated.

Mark Flippin
Nov 13 '05 #1
2 2113
Mark:

The Access security model is available through DAO. You could
programmatically iterate through all users and groups, and their appropriate
permissions on each database object. You could store the results to a table
or text file.

F. Scott Barker's "Microsoft Access 2000 Power Programming" has an excellent
chapter on how to programmatically access the security features of Access.
(There may be a newer edition of this book).

An example would be the following:

Dim db as Database
Dim con as Container
Dim doc as Document

Set db = CurrentDb
Set con = db.Containers("Tables")
Set doc = con.Documents("MyTable")

doc.UserName = "MyUser"

Debug.Print doc.AllPermissions

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Mark Flippin" <me******@comcast.net> wrote in message
news:ha********************************@4ax.com...

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 accounts" there is a button to print the
users and group relationships. As there are only about 50 authorized
users and 6 groups, this has worked.

But under the "user and group permissions" there is no report option;
just the ability to select every possible combination of
user/group/object and view the permissions.

I'm looking for a way to report on permissions on each object (form,
table, report, query, group, user) to provide the basis of the design
of reasonable security setup on SQL Server and identify areas of the
existing front end to be analyzed for problems in the conversion

Any help would be appreciated.

Mark Flippin

Nov 13 '05 #2
David

Thanks for the post. This info looks familiar: I remember doing
something similar a few years ago and probably have the code,

I'll go down this path

Thanks again
Mark

This response is supplied with my gratitude without any
representations or warranties.

On Wed, 18 May 2005 08:44:59 -0400, "David Lloyd"
<Ne********@LemingtonConsulting.com> wrote:
Mark:

The Access security model is available through DAO. You could
programmatically iterate through all users and groups, and their appropriate
permissions on each database object. You could store the results to a table
or text file.

F. Scott Barker's "Microsoft Access 2000 Power Programming" has an excellent
chapter on how to programmatically access the security features of Access.
(There may be a newer edition of this book).

An example would be the following:

Dim db as Database
Dim con as Container
Dim doc as Document

Set db = CurrentDb
Set con = db.Containers("Tables")
Set doc = con.Documents("MyTable")

doc.UserName = "MyUser"

Debug.Print doc.AllPermissions


Nov 13 '05 #3

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

Similar topics

7
by: RCS | last post by:
Okay, a rather 'interesting' situation has arisen at a place I work: I need to convert a database from Access to something that can be used over the web. I am currently maintaining and...
2
by: Dave | last post by:
Hi, Im considering converting a legacy application from asp to aspx (vb) - just for the purpose of learning (Im new at .net, but experienced at vbscript) What I need to get my head around, is...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
4
by: gg9h0st | last post by:
i'm a newbie studying php. i was into array part on tutorial and it says i'll get an array having keys that from member variable's name by converting an object to array. i guessed "i can...
5
by: k.vanderstarren | last post by:
Hi All, I'm trying to convert some ASP.NET code that I found at http://weblogs.asp.net/dannychen/archive/2005/12/02/432190.aspx from VB to C#. I've managed to convert the portion that is in...
0
by: Alci | last post by:
I am getting some Korean characters data from MS SQL server. These data were submitted as UTF-8 into the database, but stored as normal varchars. So, when I getting them out of database by using...
4
by: --CELKO-- | last post by:
I need to convert a bunch of DB2 triggers to Oracle. Is there any kind of tools for this?
6
by: sweatha | last post by:
Hi I have to select count(Date) from Appointment table having count<5. If count(Date)<5 then I should insert the data from my page. For that I have given the coding as protected void...
3
by: sriram347 | last post by:
Hi I am a newbie to ASP.NET. I developed a web page (project type is web application) and I keep getting this error. B]Error message : "System.AccessViolation Exception attempted to read or...
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: 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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.