![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only the employee his/her manager the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? |
#4
| |||
| |||
|
|
You can set a group policy in the active directory of the windows server and then set sql server permissions for that group - *add the names of the desired users to this group, then that group inherits the permissions set at the sql server. *Or you can set individual permissions on the sql server per user. *I think you are thinking of the groups. *That is done at the windows server level. *Don't forget - it's all Microsoft, and it is all integrated. Rich *** Sent via Developersdexhttp://www.developersdex.com*** |
#5
| |||
| |||
|
|
I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only the employee his/her manager the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? |
#6
| |||
| |||
|
|
"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message news:8f5a433b-bec3-43fd-9f00-c43f9a75ee39 (AT) j18g2000yqd (DOT) googlegroups.com... I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only * *the employee * *his/her manager * *the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? On the FE, why not adjust the form or report query to show only information available to the user? That way they will not get error messages about the special table/row/column permissions setup in SQL server. |
#7
| |||
| |||
|
|
"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message news:8f5a433b-bec3-43fd-9f00-c43f9a75ee39 (AT) j18g2000yqd (DOT) googlegroups.com... I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only the employee his/her manager the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? On the FE, why not adjust the form or report query to show only information available to the user? That way they will not get error messages about the special table/row/column permissions setup in SQL server. because smart users can link tables to another mdb and see the data so permission must done on sql server at the table / field level my employee table already stores the windows login, SUSER_SNAME() should work I just need to test it all |
#8
| |||
| |||
|
|
"Roger" <lesperancer (AT) natpro (DOT) com> wrote in message news:78305427-1f66-4d77-b541-f26ae79002c4 (AT) a36g2000yqc (DOT) googlegroups.com... On Oct 12, 9:43 am, "paii, Ron" <n... (AT) no (DOT) com> wrote: "Roger" <lesperan... (AT) natpro (DOT) com> wrote in message news:8f5a433b-bec3-43fd-9f00-c43f9a75ee39 (AT) j18g2000yqd (DOT) googlegroups.com... I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only the employee his/her manager the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? On the FE, why not adjust the form or report query to show only information available to the user? That way they will not get error messages about the special table/row/column permissions setup in SQL server. because smart users can link tables to another mdb and see the data so permission must done on sql server at the table / field level my employee table already stores the windows login, SUSER_SNAME() should work I just need to test it all You may have other security issues if someone can link to SQL server with any old copy of Access and see tables/rows/columns to which you have not given them rights. |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
paii, Ron wrote: "Roger" <lesperancer (AT) natpro (DOT) com> wrote in message news:78305427-1f66-4d77-b541-f26ae79002c4 (AT) a36g2000yqc (DOT) googlegroups.com... On Oct 12, 9:43 am, "paii, Ron" <n... (AT) no (DOT) com> wrote: "Roger" <lesperan... (AT) natpro (DOT) com> wrote in message news:8f5a433b-bec3-43fd-9f00-c43f9a75ee39 (AT) j18g2000yqd (DOT) googlegroups.com... I'm using sql server 2005 with windows authentication and I have a table tblEmployee now I want to add a field called homeAddress varchar(200), but I want to set its permissions so that only the employee his/her manager the HR group can view/edit the data I'm using access2007 with a linked table to tblEmployee how would I set the permissions in sql server ? I'm thinking of a trigger, but how, within the trigger, do I capture 'who is trying to access the data', ie the windows user running the ms- access application ? On the FE, why not adjust the form or report query to show only information available to the user? That way they will not get error messages about the special table/row/column permissions setup in SQL server. because smart users can link tables to another mdb and see the data so permission must done on sql server at the table / field level my employee table already stores the windows login, SUSER_SNAME() should work I just need to test it all You may have other security issues if someone can link to SQL server with any old copy of Access and see tables/rows/columns to which you have not given them rights. Not true if permissions are set within the SQL Server. -- HTH, Bob Barrows I hope it's not true, but Roger stated above that "smart users can link |
![]() |
| Thread Tools | |
| Display Modes | |
| |