Monday, March 26, 2012
permit RESTORE
is it possible to grant a "normal" user the right to RESTORE a special Datab
ase?
Thank You
JoachimHi,
No, "RESTORE DATABASE " can not be granted . User has to be part of any of
the below roles to perform a restore,
1. Systemadmin
2. dbcreator
3. db_owner
Thanks
Hari
MCDAB
"Joachim Hofmann" <speicher@.freenet.de> wrote in message
news:403F4BF5.ADE7C3FE@.freenet.de...
> Hello,
> is it possible to grant a "normal" user the right to RESTORE a special
Database?
> Thank You
> Joachim
Permissons Question
Is it possible to grant a user permissons so they are
only able to execute a SQL Job and not have access to
anything else in a database.
Thanks
Hi
Yes, altough not with job, but with stored procecdure.
Andras Jakus MCDBA
"anonymous@.discussions.microsoft.com" wrote:
> Hi All
> Is it possible to grant a user permissons so they are
> only able to execute a SQL Job and not have access to
> anything else in a database.
> Thanks
>
Permissions to use SQLProfiler
I have some developers that need to use the SQLProfile to analyze some
queries, i dont want to grant them SA priveledges, so, what kind of
permissions needs these users?
Thanks allCan't do in 2000, I'm afraid. Need sysadmin. In 2005, you can grant permissi
ons to use profiler.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:EEF2D9D2-3EF4-434D-9AD2-FC26CD2A87CE@.microsoft.com...
> Hi Friends...
> I have some developers that need to use the SQLProfile to analyze some
> queries, i dont want to grant them SA priveledges, so, what kind of
> permissions needs these users?
> Thanks all
Permissions to use SQLProfiler
I have some developers that need to use the SQLProfile to analyze some
queries, i dont want to grant them SA priveledges, so, what kind of
permissions needs these users?
Thanks all
Can't do in 2000, I'm afraid. Need sysadmin. In 2005, you can grant permissions to use profiler.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:EEF2D9D2-3EF4-434D-9AD2-FC26CD2A87CE@.microsoft.com...
> Hi Friends...
> I have some developers that need to use the SQLProfile to analyze some
> queries, i dont want to grant them SA priveledges, so, what kind of
> permissions needs these users?
> Thanks all
Permissions to use SQLProfiler
I have some developers that need to use the SQLProfile to analyze some
queries, i dont want to grant them SA priveledges, so, what kind of
permissions needs these users?
Thanks allCan't do in 2000, I'm afraid. Need sysadmin. In 2005, you can grant permissions to use profiler.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:EEF2D9D2-3EF4-434D-9AD2-FC26CD2A87CE@.microsoft.com...
> Hi Friends...
> I have some developers that need to use the SQLProfile to analyze some
> queries, i dont want to grant them SA priveledges, so, what kind of
> permissions needs these users?
> Thanks all
Friday, March 23, 2012
Permissions to create database diagrams...
Am I able to grant permissions to sql server user logins to create and
manage database diagrams without making them db_owner or system
administrator? I am using SQL Server 2000. If I am able to, what do I need
to do to grant the permissions?
Please advise...
Thank you in advanced,
BrettBrett,
ddl_admin database fixed role membership ought to be sufficient.
Ilya
"Brett Davis" <bdavis123@.cox.net> wrote in message
news:%2387%236oxAFHA.1452@.TK2MSFTNGP11.phx.gbl...
> Hello...
> Am I able to grant permissions to sql server user logins to create and
> manage database diagrams without making them db_owner or system
> administrator? I am using SQL Server 2000. If I am able to, what do I
need
> to do to grant the permissions?
> Please advise...
> Thank you in advanced,
> Brett
>sql
permissions to connect to the integration services
Hi All,
i was ask to grant a developer permissions to use integration services.
he can run the ssis packages and it works fine, but he cant open integration services with sql management studio.
if i am adding him to the local administrators group on the server it works, but he is not a system administrator.
how can i connect to the integratin services without been a local administrator on the server ?
You'll have to add the users domain account to the DCOM users group on the server. The detailed steps are given in this article:-
http://technet.microsoft.com/en-us/library/aa337083.aspx
|||Hi! I just tried this and it did not work even after I restarted the service. Did it work for you? Is there anything special that I need to do other than the instructions from the article?
permissions to connect to the integration services
Hi All,
i was ask to grant a developer permissions to use integration services.
he can run the ssis packages and it works fine, but he cant open integration services with sql management studio.
if i am adding him to the local administrators group on the server it works, but he is not a system administrator.
how can i connect to the integratin services without been a local administrator on the server ?
You'll have to add the users domain account to the DCOM users group on the server. The detailed steps are given in this article:-
http://technet.microsoft.com/en-us/library/aa337083.aspx
|||Hi! I just tried this and it did not work even after I restarted the service. Did it work for you? Is there anything special that I need to do other than the instructions from the article?
Tuesday, March 20, 2012
permissions needed for executing stored procedures
grant it is to be able to execute stored procedures in that database.
So is it just good enough to just do the following ?
Grant exec on sprocx to user1
Does this take care of conditions that include DMLs ( insert,updates,selects
and deletes) that are within the stored procedure ? What about creating temp
tables,etc. ?
ThanksYes, doing that is possible, if the owner of the stored procedure (other
than user1 in your example) is also the owner of the tables to do the INSERT,
DELETE, etc.
Take a look at Ownership Chains in BOL.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Hassan" wrote:
> We want to create a SQL login say user1 and the only privilges we want to
> grant it is to be able to execute stored procedures in that database.
> So is it just good enough to just do the following ?
> Grant exec on sprocx to user1
> Does this take care of conditions that include DMLs ( insert,updates,selects
> and deletes) that are within the stored procedure ? What about creating temp
> tables,etc. ?
> Thanks
>|||Hassan (hassan@.test.com) writes:
> We want to create a SQL login say user1 and the only privilges we want to
> grant it is to be able to execute stored procedures in that database.
> So is it just good enough to just do the following ?
> Grant exec on sprocx to user1
> Does this take care of conditions that include DMLs (
> insert,updates,selects and deletes) that are within the stored procedure?
Yes, provided that the tables and the procedures have the same owner.
And provided that you don't engage in dynamic SQL.
Also beware that if your stored procedures goes beyond INSERT, UPDATE,
DELETE and SELECT, granting execution rights to the procedure is not
sufficient. However, SQL 2005 offers mechanisms that permit you to address
this. I have an article on by web site that discusses this in detail:
http://www.sommarskog.se/grantperm.html
> What about creating temp tables,etc. ?
Any user have the permission to create temp tables, stored procedures or
not.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
permissions MDF LDF
My question is , What permissions do you grant to the MDF / LDF files ,
bear in mind I want maximum security
all the best !
mastar
The service account needs read and write access. That should be all a
vanilla installation needs. However, I would also give local administrators
and system access as well. They could get access if they really wanted it
and it may save problems down the road.
Jason Massie
www: http://statisticsio.com
rss: http://feeds.feedburner.com/statisticsio
"mastar" <mastarezma@.hotmail.com> wrote in message
news:9F37950E-4359-43B8-90F6-D05FFE13B1C8@.microsoft.com...
> Hi all
> My question is , What permissions do you grant to the MDF / LDF files ,
> bear in mind I want maximum security
> all the best !
> --
> mastar
permissions MDF LDF
My question is , What permissions do you grant to the MDF / LDF files ,
bear in mind I want maximum security
all the best !
--
mastarThe service account needs read and write access. That should be all a
vanilla installation needs. However, I would also give local administrators
and system access as well. They could get access if they really wanted it
and it may save problems down the road.
--
Jason Massie
www: http://statisticsio.com
rss: http://feeds.feedburner.com/statisticsio
"mastar" <mastarezma@.hotmail.com> wrote in message
news:9F37950E-4359-43B8-90F6-D05FFE13B1C8@.microsoft.com...
> Hi all
> My question is , What permissions do you grant to the MDF / LDF files ,
> bear in mind I want maximum security
> all the best !
> --
> mastar
permissions issue?
GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
I get this error:
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'MyStoredProcedure', because it does not exist
or you do not have permission.
MyStoredProcedure definitely DOES exist in the database, and I'm
running the statement as a sysadmin user. I even tried "sa" just in
case. But no dice. This seems like a very straightforward matter.
If I use the interface, not command line, I am able to grant
permissions easily. But there's something it doesn't like about my
above statement. Any ideas appreciated!
Thanks> If I use the interface, not command line, I am able to grant
> permissions easily.
Script the TSQL command submitted by the GUI and you will see the difference. Do you really have a
schema named MyDatabase in your database?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<tootsuite@.gmail.com> wrote in message news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
>I am having a problem running this statement:
> GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
> I get this error:
> Msg 15151, Level 16, State 1, Line 1
> Cannot find the object 'MyStoredProcedure', because it does not exist
> or you do not have permission.
> MyStoredProcedure definitely DOES exist in the database, and I'm
> running the statement as a sysadmin user. I even tried "sa" just in
> case. But no dice. This seems like a very straightforward matter.
> If I use the interface, not command line, I am able to grant
> permissions easily. But there's something it doesn't like about my
> above statement. Any ideas appreciated!
> Thanks
>|||Here's the syntax, from Books Online:
GRANT <permission> ON
[ OBJECT :: ][ schema_name ]. object_name TO <database_principal>
So in your example:
schema_name = MyDatabase
object_name = MyStoredProcedure
database_principal = MyUser
Note that the name of the database should not be included, only the schema
name within the database.
--
HTH
Kalen Delaney, SQL Server MVP
<tootsuite@.gmail.com> wrote in message
news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
>I am having a problem running this statement:
> GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
> I get this error:
> Msg 15151, Level 16, State 1, Line 1
> Cannot find the object 'MyStoredProcedure', because it does not exist
> or you do not have permission.
> MyStoredProcedure definitely DOES exist in the database, and I'm
> running the statement as a sysadmin user. I even tried "sa" just in
> case. But no dice. This seems like a very straightforward matter.
> If I use the interface, not command line, I am able to grant
> permissions easily. But there's something it doesn't like about my
> above statement. Any ideas appreciated!
> Thanks
>|||> Script the TSQL command submitted by the GUI and you will see the difference. Do you really have a
> schema named MyDatabase in your database?
No, of course not. But I don't like posting private company information
on the net :-)
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> <tootsuite@.gmail.com> wrote in message news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
> >I am having a problem running this statement:
> >
> > GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
> >
> > I get this error:
> >
> > Msg 15151, Level 16, State 1, Line 1
> > Cannot find the object 'MyStoredProcedure', because it does not exist
> > or you do not have permission.
> >
> > MyStoredProcedure definitely DOES exist in the database, and I'm
> > running the statement as a sysadmin user. I even tried "sa" just in
> > case. But no dice. This seems like a very straightforward matter.
> >
> > If I use the interface, not command line, I am able to grant
> > permissions easily. But there's something it doesn't like about my
> > above statement. Any ideas appreciated!
> >
> > Thanks
> >|||Removing the db name worked, thanks
Kalen Delaney wrote:
> Here's the syntax, from Books Online:
> GRANT <permission> ON
> [ OBJECT :: ][ schema_name ]. object_name TO <database_principal>
> So in your example:
> schema_name = MyDatabase
> object_name = MyStoredProcedure
> database_principal = MyUser
> Note that the name of the database should not be included, only the schema
> name within the database.
> --
> HTH
> Kalen Delaney, SQL Server MVP
>
> <tootsuite@.gmail.com> wrote in message
> news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
> >I am having a problem running this statement:
> >
> > GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
> >
> > I get this error:
> >
> > Msg 15151, Level 16, State 1, Line 1
> > Cannot find the object 'MyStoredProcedure', because it does not exist
> > or you do not have permission.
> >
> > MyStoredProcedure definitely DOES exist in the database, and I'm
> > running the statement as a sysadmin user. I even tried "sa" just in
> > case. But no dice. This seems like a very straightforward matter.
> >
> > If I use the interface, not command line, I am able to grant
> > permissions easily. But there's something it doesn't like about my
> > above statement. Any ideas appreciated!
> >
> > Thanks
> >|||I think Tibor was actually asking the same question I was. Is whatever you
used instead of MyDatabase a database name or a schema name?
Our guess is that you were confusing the two. If you had used the schema
name, it would have worked.
--
HTH
Kalen Delaney, SQL Server MVP
<tootsuite@.gmail.com> wrote in message
news:1158614641.882490.40330@.m7g2000cwm.googlegroups.com...
>> Script the TSQL command submitted by the GUI and you will see the
>> difference. Do you really have a
>> schema named MyDatabase in your database?
> No, of course not. But I don't like posting private company information
> on the net :-)
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://www.solidqualitylearning.com/
>>
>> <tootsuite@.gmail.com> wrote in message
>> news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
>> >I am having a problem running this statement:
>> >
>> > GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
>> >
>> > I get this error:
>> >
>> > Msg 15151, Level 16, State 1, Line 1
>> > Cannot find the object 'MyStoredProcedure', because it does not exist
>> > or you do not have permission.
>> >
>> > MyStoredProcedure definitely DOES exist in the database, and I'm
>> > running the statement as a sysadmin user. I even tried "sa" just in
>> > case. But no dice. This seems like a very straightforward matter.
>> >
>> > If I use the interface, not command line, I am able to grant
>> > permissions easily. But there's something it doesn't like about my
>> > above statement. Any ideas appreciated!
>> >
>> > Thanks
>> >
>|||>I think Tibor was actually asking the same question I was.
Indeed. Thanks for clarifying Kalen. :-)
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:umdKy632GHA.3464@.TK2MSFTNGP03.phx.gbl...
>I think Tibor was actually asking the same question I was. Is whatever you used instead of
>MyDatabase a database name or a schema name?
> Our guess is that you were confusing the two. If you had used the schema name, it would have
> worked.
> --
> HTH
> Kalen Delaney, SQL Server MVP
>
> <tootsuite@.gmail.com> wrote in message news:1158614641.882490.40330@.m7g2000cwm.googlegroups.com...
>>
>> Script the TSQL command submitted by the GUI and you will see the difference. Do you really have
>> a
>> schema named MyDatabase in your database?
>> No, of course not. But I don't like posting private company information
>> on the net :-)
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://www.solidqualitylearning.com/
>>
>> <tootsuite@.gmail.com> wrote in message
>> news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
>> >I am having a problem running this statement:
>> >
>> > GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO MyUser
>> >
>> > I get this error:
>> >
>> > Msg 15151, Level 16, State 1, Line 1
>> > Cannot find the object 'MyStoredProcedure', because it does not exist
>> > or you do not have permission.
>> >
>> > MyStoredProcedure definitely DOES exist in the database, and I'm
>> > running the statement as a sysadmin user. I even tried "sa" just in
>> > case. But no dice. This seems like a very straightforward matter.
>> >
>> > If I use the interface, not command line, I am able to grant
>> > permissions easily. But there's something it doesn't like about my
>> > above statement. Any ideas appreciated!
>> >
>> > Thanks
>> >
>|||And it seems from his answer to me that his "MyDatabase" was a database
name, not a schema name.
As trainers, I can see we have our work cut out for us getting people to
understand this new concept!
--
Kalen Delaney, SQL Server MVP
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:OTyVtdA3GHA.1252@.TK2MSFTNGP04.phx.gbl...
> >I think Tibor was actually asking the same question I was.
> Indeed. Thanks for clarifying Kalen. :-)
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
> news:umdKy632GHA.3464@.TK2MSFTNGP03.phx.gbl...
>>I think Tibor was actually asking the same question I was. Is whatever you
>>used instead of MyDatabase a database name or a schema name?
>> Our guess is that you were confusing the two. If you had used the schema
>> name, it would have worked.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>>
>> <tootsuite@.gmail.com> wrote in message
>> news:1158614641.882490.40330@.m7g2000cwm.googlegroups.com...
>>
>> Script the TSQL command submitted by the GUI and you will see the
>> difference. Do you really have a
>> schema named MyDatabase in your database?
>> No, of course not. But I don't like posting private company information
>> on the net :-)
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://www.solidqualitylearning.com/
>>
>> <tootsuite@.gmail.com> wrote in message
>> news:1158610855.925197.188970@.i42g2000cwa.googlegroups.com...
>> >I am having a problem running this statement:
>> >
>> > GRANT VIEW DEFINITION ON OBJECT::MyDatabase.MyStoredProcedure TO
>> > MyUser
>> >
>> > I get this error:
>> >
>> > Msg 15151, Level 16, State 1, Line 1
>> > Cannot find the object 'MyStoredProcedure', because it does not exist
>> > or you do not have permission.
>> >
>> > MyStoredProcedure definitely DOES exist in the database, and I'm
>> > running the statement as a sysadmin user. I even tried "sa" just in
>> > case. But no dice. This seems like a very straightforward matter.
>> >
>> > If I use the interface, not command line, I am able to grant
>> > permissions easily. But there's something it doesn't like about my
>> > above statement. Any ideas appreciated!
>> >
>> > Thanks
>> >
>>
>|||On Tue, 19 Sep 2006 09:55:10 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>As trainers, I can see we have our work cut out for us getting people to
>understand this new concept!
Think of it as job security. 8-)
Roy
Permissions Hierarchy - GRANT on logins/users/roles
A question on the permissions hierarchy:
Since logins, database users, and database roles are both principals and securables - what does it mean to GRANT permission on a login/user/role to another principal? Does it mean that for a login - you can GRANT permission to EXECUTE AS that login or modify it, for example?
Thanks!
Yes, you can grant IMPERSONATE to execute as that principal or ALTER/CONTROL to allow its modification.Laurentiu|||Thanks again!
Permissions grants, denies don't take effect
Hi,
I'm trying to grant/deny object permissions in a user database using Enterprise Manager and query tool without success (for ‘public’ role and individual sql logins). I’m not getting any error messages. Permission changes just don’t take effect. Although, there are few objects, which already have permissions granted and I'm able to change permissions for these ones.
How can I change the permissions?
you might have a granted permission on a GUEST account
or an NT domain group. please check.
thats why denying wont work
|||there is no permissions granted or denied for the 'guest' account. I don't use domain groups.|||
What are the actual denies that you are trying to set. Did you verify that they appear in the system catalog (server_permissions, database_permissions)? Have you tried applying the denies using TSQL: DENY?
Thanks
Laurentiu
permissions granted to an application intead of a user
Such capability is not available - permissions are grantable to accounts, not to applications.
Thanks
Laurentiu
I am including a link to a related entry in this forum where we have a detailed discussion on this topic:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=786513&SiteID=1
I hope this information will be useful.
Thanks,
-Raul Garcia
SDE/T
SQL Server Engine
|||let me restate:
the db is on a mapped drive on the 2000 server.
i want the prgm to have access to it but not to the general public.
i need a way to limit access to myself and the prgm only....
i have admin rights and would like to give the prgm the same...
|||Answer is the same - Windows security works by assigning permissions to users - permissions cannot be assigned to applications.
You should read the post that Raul pointed out. You can attempt to use application roles or have the application connect with specific credentials to the database, but a smart user can reverse-engineer the application and figure out how to connect directly to the database, hence there is no security guarantee of the type you seek.
Thanks
Laurentiu
permissions for user to rename a table
I have my stored procedure rename a table when it is done, but it fails and
says the user does not have permission.
ThanksI figured it out
I had to add the user as a user in the MASTER db and then grant exec on
sp_rename to the user
Thanks
"Tarren" <noemailplease@.thanks.com> wrote in message
news:%23zYU59NXFHA.1468@.tk2msftngp13.phx.gbl...
> What permissions must I grant to allow a user to rename a table?
> I have my stored procedure rename a table when it is done, but it fails
> and says the user does not have permission.
> Thanks
>|||You have an SP that renames a table in the MASTER database?
"Tarren" <noemailplease@.thanks.com> wrote in message
news:%23zYU59NXFHA.1468@.tk2msftngp13.phx.gbl...
> What permissions must I grant to allow a user to rename a table?
> I have my stored procedure rename a table when it is done, but it fails
and
> says the user does not have permission.
> Thanks
>|||I'm curious as to why you would want to rename a table in an SP.
David Portas
SQL Server MVP
--|||the SP is a procedure in my ETL process that loads from all of the incoming
tables into a master_staging table and then cleans the data with a number of
individual updates
then, after the several minute process completes, it swaps the current
master table with the master_staging table using three sp_rename statements
This lets me load the fresh data from the incoming tables every night and
provide 24x7 uptime on the master table (not having it be out of commission
for several minutes a day) since all of the inserting and updating never
take place in the live master table.
:)
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:1116593359.212844.263680@.o13g2000cwo.googlegroups.com...
> I'm curious as to why you would want to rename a table in an SP.
> --
> David Portas
> SQL Server MVP
> --
>|||the procedure to rename an object in SQL Server 2000 is located in the
Master DB with all of the other SQL Server sp's
"JT" <someone@.microsoft.com> wrote in message
news:u9$SJnTXFHA.3140@.TK2MSFTNGP14.phx.gbl...
> You have an SP that renames a table in the MASTER database?
> "Tarren" <noemailplease@.thanks.com> wrote in message
> news:%23zYU59NXFHA.1468@.tk2msftngp13.phx.gbl...
> and
>|||If that is the case, then why not simply add a date field to your staging ta
bles
that stores the date they were populated and periodically delete rows based
on
this date?
Thomas
"Tarren" <noemailplease@.thanks.com> wrote in message
news:OOLBq1yXFHA.3712@.TK2MSFTNGP09.phx.gbl...
> the SP is a procedure in my ETL process that loads from all of the incomin
g
> tables into a master_staging table and then cleans the data with a number
of
> individual updates
> then, after the several minute process completes, it swaps the current mas
ter
> table with the master_staging table using three sp_rename statements
> This lets me load the fresh data from the incoming tables every night and
> provide 24x7 uptime on the master table (not having it be out of commissio
n
> for several minutes a day) since all of the inserting and updating never t
ake
> place in the live master table.
> :)
>
> "David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
> news:1116593359.212844.263680@.o13g2000cwo.googlegroups.com...
>
Friday, March 9, 2012
Permissions
I would like to run a job that checks for any stored procedures without
PUBLIC access and grant them public access. What would be the best way to d
o
this and which tables/sp do i have to use? Thank you in advance.If you are using SQL Server 2005 you can do that easily with only this
command:
grant execute on database::mydb to public
Ben Nevarez, MCDBA, OCP
Database Administrator
"Baldy" wrote:
> Hi All
> I would like to run a job that checks for any stored procedures without
> PUBLIC access and grant them public access. What would be the best way to
do
> this and which tables/sp do i have to use? Thank you in advance.
Permissions
How can we grant the permissions to the user to SELECT from some view on one
database which is pulling the data from several tables on another database
but hide the structure of these tables for this user? The problem is the
following, if we don't grant the permission to SELECT from these tables then
the user can't run these views, but if the user can select from these tables
then he sees the table structure, that's what we wanted to avoid.
The view itself is encrypted, so it's safe to expose it to the user.
Any good ideas?
Just D.Might consider creating the view in the database where the tables exist and
then reference the view as database.owner.view Also, you might consider
using a stored procedure to encapsulate the SELECTs if more logic or
auditing is required. And TMK, I don't think SQLs built-in WITH ENCRYPTION
is completely secure.
HTH
Jerry
"Dmitri Shvetsov" <no@.spam.please> wrote in message
news:CL3dg.20313$XV5.19438@.fed1read10...
> All,
> How can we grant the permissions to the user to SELECT from some view on
> one database which is pulling the data from several tables on another
> database but hide the structure of these tables for this user? The problem
> is the following, if we don't grant the permission to SELECT from these
> tables then the user can't run these views, but if the user can select
> from these tables then he sees the table structure, that's what we wanted
> to avoid.
> The view itself is encrypted, so it's safe to expose it to the user.
> Any good ideas?
> Just D.
>|||If you're using SQL 2000 SP3 or newer, you can enable cross-database
ownership chaining. Check out BOL for implementing and security caveats.
HTH
Vern Rabe
"Jerry Spivey" wrote:
> Might consider creating the view in the database where the tables exist an
d
> then reference the view as database.owner.view Also, you might consider
> using a stored procedure to encapsulate the SELECTs if more logic or
> auditing is required. And TMK, I don't think SQLs built-in WITH ENCRYPTIO
N
> is completely secure.
> HTH
> Jerry
> "Dmitri Shvetsov" <no@.spam.please> wrote in message
> news:CL3dg.20313$XV5.19438@.fed1read10...
>
>|||Dima
Add the user to the "source database" and GRANT them SELECT permissions on
VIEW
"Dmitri Shvetsov" <no@.spam.please> wrote in message
news:CL3dg.20313$XV5.19438@.fed1read10...
> All,
> How can we grant the permissions to the user to SELECT from some view on
> one database which is pulling the data from several tables on another
> database but hide the structure of these tables for this user? The problem
> is the following, if we don't grant the permission to SELECT from these
> tables then the user can't run these views, but if the user can select
> from these tables then he sees the table structure, that's what we wanted
> to avoid.
> The view itself is encrypted, so it's safe to expose it to the user.
> Any good ideas?
> Just D.
>|||Uri,
Thanks for your answer but that doesn't work, the SQL engine barks when I
try to select anything from these views explaining that the user has no
permissions on the target DB or if even if it doesn't complaint then it
doesn't show anything, just column names and no data at all. So it doesn't
work. That was the very first idea that I tried. Adding the SP and granting
EXEC permissions to these SP is not very good because it's not flexible
enough, although we can add some arguments to these SPs to restrict the data
to avoid pulling the whole DB.
Btw, I found this article below after I posted my question to this
newsgroup.
http://www.databasejournal.com/feat...10894_2246271_2
Maybe this is the way to go, we'll try it tomorrow. It's a little bit
similar to what we were doing, but who knows, there are always some ways
ahead.
Granting the permissions per column for each table will kill me, I tried to
think about it but this is the worst way reserved for "just in case".
Just D.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:epcKo37fGHA.452@.TK2MSFTNGP02.phx.gbl...
> Dima
> Add the user to the "source database" and GRANT them SELECT permissions
> on VIEW
>|||Yes, have you read my post?
I said you need to add the user to the taget database and GRANT to them
SELECT PERMISSION on VIEW
ps . create a view on target database as well
"Just D" <no@.spam.please> wrote in message
news:97ddg.20579$XV5.8839@.fed1read10...
> Uri,
> Thanks for your answer but that doesn't work, the SQL engine barks when I
> try to select anything from these views explaining that the user has no
> permissions on the target DB or if even if it doesn't complaint then it
> doesn't show anything, just column names and no data at all. So it doesn't
> work. That was the very first idea that I tried. Adding the SP and
> granting EXEC permissions to these SP is not very good because it's not
> flexible enough, although we can add some arguments to these SPs to
> restrict the data to avoid pulling the whole DB.
> Btw, I found this article below after I posted my question to this
> newsgroup.
> http://www.databasejournal.com/feat...10894_2246271_2
> Maybe this is the way to go, we'll try it tomorrow. It's a little bit
> similar to what we were doing, but who knows, there are always some ways
> ahead.
> Granting the permissions per column for each table will kill me, I tried
> to think about it but this is the worst way reserved for "just in case".
> Just D.
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:epcKo37fGHA.452@.TK2MSFTNGP02.phx.gbl...
>
Permissions
s
only to some users. If a make Deny to all users in domain and if a create th
e
necessary users with Grant Access to some databases, the can access the
databases?
Best RegardsCreate a group and add the users you want tio deny access
Take a look at below stored procedure in the BOL.
sp_revokedbaccess [ @.name_in_db = ] 'name'
"icrp@.msn.com" <icrpmsncom@.discussions.microsoft.com> wrote in message
news:9F945ED7-1C19-44CC-A15E-C44D30CCEB65@.microsoft.com...
> How can i Deny access to my domain users to my sql databases and grant
> access
> only to some users. If a make Deny to all users in domain and if a create
> the
> necessary users with Grant Access to some databases, the can access the
> databases?
> Best Regards|||Hi,
what happen if you create seprate user and assign each of them a
permissions , it will be hectic if # users are large , rather if you create
a
ROLE(department wise) and then assign them a proper permissions and then map
a user / group ( it could be sql or windows user/group) . it will save your
time and purpose tooo.
HTH
Regards
--
Andy Davis
Activecrypt Team
---
SQL Server Encryption Software
http://www.activecrypt.com
"Uri Dimant" wrote:
> Create a group and add the users you want tio deny access
> Take a look at below stored procedure in the BOL.
> sp_revokedbaccess [ @.name_in_db = ] 'name'
>
> "icrp@.msn.com" <icrpmsncom@.discussions.microsoft.com> wrote in message
> news:9F945ED7-1C19-44CC-A15E-C44D30CCEB65@.microsoft.com...
>
>
Wednesday, March 7, 2012
Permission to execute specific jobs only
Is there a way to grant a group of users the ability to execute some jobs on a server, but restrict their access to others.
We'd like to grant our developers the permission to execute their jobs (many developers and we'd like to avoid a shared account) without giving them the ability to execute our backup, reindex, etc jobs.
Is there a way to grant execute on some jobs, but not all to a Windows group?
We're using the new msdb SQLAgent role to allow them to see all jobs and view output, but there doesn't seem to be a way to grant execute on specific jobs only.
Thanks
Under normal circumstances, a user will be able to start a Job that he/she 'owns'.
Of course, success depends upon have permissions to execute each step of the Job.
|||You could consider having a table populated that indicates what the groups can do. Then make the first step of the job a query which raises an error if the permission shouldn't apply. Only continue the job if the query succeeds.Alternatively, you could fake this by having a tiny table for each job. So you have a "sec_backup" table (with a single column and row), which is only queryable by those who also have permission to run the job.
It's not particularly elegant, but you could quite easily produce the security model you're after this way.
Rob