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

Read-Only access after using Upsizing Wizard

2
Hello.
I have the following problem. In our project we decided to use Access as link to SQL Server. So, we used Upsize Wizard to migrate our tables to SqlServer's tables. It was successful.
But for some users i wanted to grant read-only permissions for all data. Before the migrating i used to open Access app. with a script and write "/ro" - that gave only read-only permissions. But now user still can go inside the linked tables and write there! How can i prevent this from a script? Thanks in advance,
Dec 4 '07 #1
4 2757
Jim Doherty
897 Expert 512MB
Hello.
I have the following problem. In our project we decided to use Access as link to SQL Server. So, we used Upsize Wizard to migrate our tables to SqlServer's tables. It was successful.
But for some users i wanted to grant read-only permissions for all data. Before the migrating i used to open Access app. with a script and write "/ro" - that gave only read-only permissions. But now user still can go inside the linked tables and write there! How can i prevent this from a script? Thanks in advance,

IMHO the upsizing wizard is great for getting your tables etc to the server but thats only part of the overall picture. SQL Server is a whole different beast to Access you are dealing with data stored outside of the curtilage of Access and thus need to consider permissions being controlled and dealt with on the SQL server side. This is typically dealt with using SQL Servers enterprise manager/query analyser (if SQL 2000) or management studio if using SQL Server 2005. The direction you need to take is to look at creating a ROLE on the SQL server and adding your users to the role that has specific permissions to your database tables/objects.

From an MS Access perspective you have two options for interacting with the data the MDB file........ or the ADP project (which exposes stored procedures in the GUI and in which you can write your scripts to control relevant permissions and groups of permissions as an administrator for tables views and so on)
Doing this within an MDB file will require VBA code to write functions that connect to the server via a DSN communicating that way and ultimately creating users and groups and permissions and so on.

Hope this helps

Jim :)
Dec 4 '07 #2
ADezii
8,834 Expert 8TB
Hello.
I have the following problem. In our project we decided to use Access as link to SQL Server. So, we used Upsize Wizard to migrate our tables to SqlServer's tables. It was successful.
But for some users i wanted to grant read-only permissions for all data. Before the migrating i used to open Access app. with a script and write "/ro" - that gave only read-only permissions. But now user still can go inside the linked tables and write there! How can i prevent this from a script? Thanks in advance,
Jim is 100% correct in what he states. All Permissions for data should be controlled from SQL Server, not Access, and in my opinion it is rarely a good idea to Open an Access Application as Read Only using the /ro Argument.
Dec 4 '07 #3
sxam
2
Thanks everybody for answering.

The thing is that i don't want my users to feel any change. What happened before was that user could click on two different scripts. One that opened an MDB file the usual way (for editing data) and one that was used 90% of the cases - for looking at data (with /ro). It was done to ensure lack of mistakes - it often happened that user (with permissions) edited the data with no intention to do it.
So now, after we transfered the data to SQL Server, what i wanna do is exactly the same. Same user clicks on one script, and that script will open data for editing. Second script will open data for Read-Only access.

Is that possible to open Access application through a script and to tell it to connect to SQL Server (where the data is) using different users?
Dec 5 '07 #4
Jim Doherty
897 Expert 512MB
Thanks everybody for answering.

The thing is that i don't want my users to feel any change. What happened before was that user could click on two different scripts. One that opened an MDB file the usual way (for editing data) and one that was used 90% of the cases - for looking at data (with /ro). It was done to ensure lack of mistakes - it often happened that user (with permissions) edited the data with no intention to do it.
So now, after we transfered the data to SQL Server, what i wanna do is exactly the same. Same user clicks on one script, and that script will open data for editing. Second script will open data for Read-Only access.

Is that possible to open Access application through a script and to tell it to connect to SQL Server (where the data is) using different users?
Hi sxam,

If you are going to use SQL server you need to understand client server behaviour. data is stored 'outside' of Access. You have given your users a 'big' change there so it will not work exactly the same as it did before.

The command line switches were primarily designed for objects running in the JET database environment ie localised mdb tables not SQL server tables in other words if you use it with attached tables from SQL server in your mdb database then any local mdb tables will be read only....yes..... but not SQL server tables because like I said before, users and permissions are controlled on the SQL server in its own environment. Microsoft Access merely connects to the server. You need to look at server side permissions aligned to identification of 'who' is logging in using (I would suggest) windows integrated security. Your users must exist on the server and have appropriate permissions set there.

Documented help is less than clear on this in fairness to you on the /ro switch but you can gain a flavour of of what I mean if you look at it within the context of the 'switch' that deals with compacting for instance. Your local mdb file server database is 'compacted' but not the SQL server database. Does this make sense to you?

Regards

Jim :)
Dec 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Gunnar | last post by:
Hello, I've just written a CPP program that reads integers from a binary file, and used this code while (my_ifstram.read( (char* ) &number, sizeof(int)) { // do something with number } My...
0
by: munif | last post by:
i wnat write a C++ program that would read from a CD and display information about files and folders in the given CD In simple words you would be performing a simple (ls -l) or (DIR /S) on the...
12
by: Steven T. Hatton | last post by:
I know of a least one person who believes std::ifstream::read() and std::ofstream::write() are "mistakes". They seem to do the job I want done. What's wrong with them. This is the code I...
0
by: Garrett Kajmowicz | last post by:
I have two implementations of stringstream and they both handle interleaved reads and writes differently. I was hoping that you might be able to shed some light as to the "correct" operation, and...
2
by: Andrea Bauer | last post by:
Hallo, wie kann ich so eine Datei unter .Net schreiben C++ oder C#. Bitte mit Funktionsaufrufen. Vielen Dank. Grüße Andrea <Product> <ProgramNumber>2</ProgramNumber>
4
by: Kai Thorsrud | last post by:
Hi, Thanks a lot for the short path solution to the app i'm working on by including a Perl script ( App i'm converting from perl to .Net) for the part i can't do yet. I'm communicating with a...
1
by: Jose Reckoner | last post by:
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks!
3
by: Ole | last post by:
I got a problem with serial port read which I use like this: sp.Read (byteBuffer, 0, 100); but the problem is that it returns before it has read the 100 bytes - is there a way to set up the...
1
by: Arpan | last post by:
The contents of a text file are as follows: The Quick Brown Fox Jumped Over The Lazy Dog. Note that there isn't any space at the end of each of the 3 lines. Now when I do this:
4
by: zl2k | last post by:
hi, there I have a appendable binary file of complex data structure named data.bin created by myself. It is written in the following format: number of Data, Data array Suppose I have...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.