Hello,
I need some help with implenting the following:
I recently migrated from access to sql server and i now i want to use
maintainable permissions on my tables, views, etc. The access database will
serve as a front-end.
I've created for testing purposes an testaccount with only a public role to
access to my database.
Now the hard part is when i want users to select and manipulate the data
through views and stored procedures.I want only permissions set on views and
stored procedures. The reason for this is because i don't want users to get
the data directly from tables by means of linking or importing them to
access
or other databases. Only views and stored procedures can be used.
Unfortunelately it doesn't work how i wanted to. When i open a view which is
linked in access as a table, i'm getting a message that the underlying table
has not the appropiate permissions.
Now there should be a way to apply a maintainable security, so if i could
have some advice and maybe an example on this matter i would be very
thankful. 3 2527
Try creating the view with the VIEW_METADATA option. This way, Access will
use view meta data instead of meta data from the underlying base tables.
See CREATE VIEW in the Books Online for more information.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Ezekiël" <ezekiël@lycos. com> wrote in message
news:41******** *************@n ews.wanadoo.nl. .. Hello,
I need some help with implenting the following:
I recently migrated from access to sql server and i now i want to use maintainable permissions on my tables, views, etc. The access database
will serve as a front-end.
I've created for testing purposes an testaccount with only a public role
to access to my database.
Now the hard part is when i want users to select and manipulate the data through views and stored procedures.I want only permissions set on views
and stored procedures. The reason for this is because i don't want users to
get the data directly from tables by means of linking or importing them to access or other databases. Only views and stored procedures can be used.
Unfortunelately it doesn't work how i wanted to. When i open a view which
is linked in access as a table, i'm getting a message that the underlying
table has not the appropiate permissions.
Now there should be a way to apply a maintainable security, so if i could have some advice and maybe an example on this matter i would be very thankful.
Hi Dan,
I've looked it up in BOL but it is not very clear. Could you provide me an
example?
Thnx
"Dan Guzman" <da*******@nosp am-earthlink.net> wrote in message
news:wx******** ***********@new sread1.news.pas .earthlink.net. .. Try creating the view with the VIEW_METADATA option. This way, Access
will use view meta data instead of meta data from the underlying base tables. See CREATE VIEW in the Books Online for more information.
-- Hope this helps.
Dan Guzman SQL Server MVP
"Ezekiël" <ezekiël@lycos. com> wrote in message news:41******** *************@n ews.wanadoo.nl. .. Hello,
I need some help with implenting the following:
I recently migrated from access to sql server and i now i want to use maintainable permissions on my tables, views, etc. The access database will serve as a front-end.
I've created for testing purposes an testaccount with only a public role to access to my database.
Now the hard part is when i want users to select and manipulate the data through views and stored procedures.I want only permissions set on views and stored procedures. The reason for this is because i don't want users to get the data directly from tables by means of linking or importing them to access or other databases. Only views and stored procedures can be used.
Unfortunelately it doesn't work how i wanted to. When i open a view
which is linked in access as a table, i'm getting a message that the underlying table has not the appropiate permissions.
Now there should be a way to apply a maintainable security, so if i
could have some advice and maybe an example on this matter i would be very thankful.
Here's a simple example:
CREATE TABLE dbo.MyTable
(
Col1 int NOT NULL,
Col2 int NOT NULL
)
GO
CREATE VIEW dbo.MyView
WITH VIEW_METADATA
AS
SELECT Col1
FROM dbo.MyTable
GO
GRANT SELECT ON MyView TO MyRole
GO
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Ezekiël" <ezekiël@lycos. com> wrote in message
news:41******** *************** @news.wanadoo.n l... Hi Dan,
I've looked it up in BOL but it is not very clear. Could you provide me
an example?
Thnx "Dan Guzman" <da*******@nosp am-earthlink.net> wrote in message news:wx******** ***********@new sread1.news.pas .earthlink.net. .. Try creating the view with the VIEW_METADATA option. This way, Access will use view meta data instead of meta data from the underlying base tables. See CREATE VIEW in the Books Online for more information.
-- Hope this helps.
Dan Guzman SQL Server MVP
"Ezekiël" <ezekiël@lycos. com> wrote in message news:41******** *************@n ews.wanadoo.nl. .. Hello,
I need some help with implenting the following:
I recently migrated from access to sql server and i now i want to use maintainable permissions on my tables, views, etc. The access database will serve as a front-end.
I've created for testing purposes an testaccount with only a public
role to access to my database.
Now the hard part is when i want users to select and manipulate the
data through views and stored procedures.I want only permissions set on
views and stored procedures. The reason for this is because i don't want users
to get the data directly from tables by means of linking or importing them to access or other databases. Only views and stored procedures can be used.
Unfortunelately it doesn't work how i wanted to. When i open a view
which is linked in access as a table, i'm getting a message that the underlying table has not the appropiate permissions.
Now there should be a way to apply a maintainable security, so if i could have some advice and maybe an example on this matter i would be very thankful.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
Hi, is there any way that I can automate granting user permissions to
tables/ stored procedures in SQL server 2000?
I have a whole bunch of tables and rather than having to right click each
table/ then permissions in Enterprise manager I would like to be able to
iterate through each table object in a database and grant the relevant
permissions.... Same with stored procedures.
Is this possible?? If so, how can I do it
|
by: Jon Ley |
last post by:
I am having a problem restricting write access to tables in my database.
In my database I have a table called, for the sake of argument, 'TableX'.
In my SQL Server Logins, I have set up a login for 'Domain Users' using NT
authentication, and a login called 'FullTableX', using SQL Server
authentication.
I have added two users to my database relating to the above logins.
|
by: TJ Olaes |
last post by:
Hello all, this is my second post to this newsgroup. It's a question
about stored procedures and permissions and how these behave between
databases.
Here's the scenario. I have a database that stores information for a
system "A", and I have a different database on the same SQL server
that stores the login and other info "LOGIN". I write a stored
procedure in the "A" database that checks some tables in the "LOGIN"
database, let's call...
|
by: K Finegan |
last post by:
I have an archival process on a large database that runs once a month.
At the beginning of the process the triggers and indexes on the
tables whose data is moved are dropped, the data is moved and then the
triggers and indexes are recreated at the end. This produces a
massive improvement in performance.
The problem is the process is supposed to run on users accounts (thats
the way the front-end is set up) and they don't have the...
|
by: Ross Presser |
last post by:
As our customers demand that we tighten our IT security in the company,
I've been asked to prepare a report quarterly showing, for each user in
Active directory, what his effective permissions are for every table in
every database that he has permission for on our SQL Server 2000 server. I
searched a bit for a tool to do this, but all I found was the PERMISSIONS()
function for showing effective permissions of the current user. Is there...
| |
by: Brad H McCollum |
last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the
MSDE version of SQL Server as the back-end (it's a program for a
really small # of users --- less then 3-4).
I'm trying to determine, through the Visual Basic interface, the
permissions of each user that's using the application on his/her
machine.
For example, let's say I'm user "Michael" that's sitting down at my
machine using the app. I've written. The security...
|
by: Lyle Fairfield |
last post by:
There is an MS-SQL table named Bugs_Comments_and_Suggestions.
There is a form named Bugs_Comments_and_Suggestions.
To allow John Doe to use this form, we GRANT him LOGIN and ACCESS permissions
to the db and SELECT permissions on the stored procedure which is the record
source for the BOUND form.
To allow John Doe to "UPDATE, INSERT, DELETE" using the BOUND form, we GRANT
John Doe "UPDATE, INSERT, DELETE" permissions on the table,
|
by: Nemisis |
last post by:
Hi everyone, hope your all looking forward to xmas.
I am setting up a Sql2005 database on a Windows Server, running Windows
Server 2003. The database is going to be accessed via users using an
ASP.Net website.
My website is running the normal IUSR account. And users must login to
the website, which uses Forms Authentication.
I do not want to give users access directly to tables, so have created
|
by: alvinstraight38 |
last post by:
Hey guys,
I'm pretty new to SQL configuration, and I need to give EXECUTE
persmissions for one of the SQL user roles. I am running SQL 2005
Management Studio Express - free version. I found the list of my
stored procedures, but I can not locate any permissions screen. Can
someone help point me in the right direction? Thanks!
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |