![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello! Assume I use Integrated Security. I have two windows accounts one account Tony that I use when logging in to the machine and the other is ASPNET that IIS is using. Now to my question will these two windows account(Tony and ASPNET) have the same access rights to Sql Server ? I mean that every windows account that you use with Integrated Secirity have full right to Sql Server. If not how can you control these accounts(Tony and ASPNET) in Sql Server when none of these two account exist in sql server. //Tony |
#3
| |||
| |||
|
|
Assume I use Integrated Security. I have two windows accounts one account Tony that I use when logging in to the machine and the other is ASPNET that IIS is using. Now to my question will these two windows account(Tony and ASPNET) have the same access rights to Sql Server ? I mean that every windows account that you use with Integrated Secirity have full right to Sql Server. If not how can you control these accounts(Tony and ASPNET) in Sql Server when none of these two account exist in sql server. |
#4
| |||
| |||
|
|
Tony Johansson (johansson.andersson (AT) telia (DOT) com) writes: Assume I use Integrated Security. I have two windows accounts one account Tony that I use when logging in to the machine and the other is ASPNET that IIS is using. Now to my question will these two windows account(Tony and ASPNET) have the same access rights to Sql Server ? I mean that every windows account that you use with Integrated Secirity have full right to Sql Server. If not how can you control these accounts(Tony and ASPNET) in Sql Server when none of these two account exist in sql server. There are lots of details missing about your setup. But if both Tony and ASPNET are members of the same Windows group, and this group have been granted access to SQL Server, they will have the same rights. Not necessarily full rights though! -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#5
| |||
| |||
|
|
Background information. I use windows XP pro and sql server express 2005 everything is located on the same machine. For me it seems that when I use Windows authentication every user account on XP have access to Sql Server and can start Sql Server management Studio express. |
|
I can also list data from the Customer table in the Northwind database using a SqlDataSource and a DataGrid. I just tested to create a new user with name Test and added this user to the Guest group and this worked perfect. I want to test this. Create a user account that use Windows authentication that doesn't have access to Sql Server. Can somebody help me to guide me how I can do this ? |
#6
| |||
| |||
|
|
Tony Johansson (johansson.andersson (AT) telia (DOT) com) writes: Background information. I use windows XP pro and sql server express 2005 everything is located on the same machine. For me it seems that when I use Windows authentication every user account on XP have access to Sql Server and can start Sql Server management Studio express. Well, starting SSMSE is not strange - that's just another applicaiton. I can also list data from the Customer table in the Northwind database using a SqlDataSource and a DataGrid. I just tested to create a new user with name Test and added this user to the Guest group and this worked perfect. I want to test this. Create a user account that use Windows authentication that doesn't have access to Sql Server. Can somebody help me to guide me how I can do this ? Could you run this query and post the results: SELECT name FROM sys.server_principals WHERE type IN ('U', 'G') -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#7
| |||
| |||
|
|
Background information. I use windows XP pro and sql server express 2005 everything is located on the same machine. For me it seems that when I use Windows authentication every user account on XP have access to Sql Server and can start Sql Server management Studio express. I can also list data from the Customer table in the Northwind database using a SqlDataSource and a DataGrid. I just tested to create a new user with name Test and added this user to the Guest group and this worked perfect. I want to test this. Create a user account that use Windows authentication that doesn't have access to Sql Server. Can somebody help me to guide me how I can do this ? //Tony "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> skrev i meddelandet news:Xns9CE9F38BEECACYazorman (AT) 127 (DOT) 0.0.1... Tony Johansson (johansson.andersson (AT) telia (DOT) com) writes: Assume I use Integrated Security. I have two windows accounts one account Tony that I use when logging in to the machine and the other is ASPNET that IIS is using. Now to my question will these two windows account(Tony and ASPNET) have the same access rights to Sql Server ? I mean that every windows account that you use with Integrated Secirity have full right to Sql Server. If not how can you control these accounts(Tony and ASPNET) in Sql Server when none of these two account exist in sql server. There are lots of details missing about your setup. But if both Tony and ASPNET are members of the same Windows group, and this group have been granted access to SQL Server, they will have the same rights. Not necessarily full rights though! -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx . |
![]() |
| Thread Tools | |
| Display Modes | |
| |