SQL Server Security model is integrated with Windows Operating System login modelSupports more number of concurrent user accessFeatures that are tied to the operating system such as password aging, role management, user activity logging are available with SQL Server
In case of MS-Access, it supports few number of usersFrequent database lockingUsers have to log in twice - once for windows logging and the other for the password protected database
In SQL Server, "Authentication" refer to the process of validating a user while "Permission Validation" refers to the process of validating the user activities.
Two types of Authentication* SQL Server and Windows (mixed authentication)* Windows only
SA login is a special login. Ensure to give a password for that account if it cannot be deleted from the database. You might not be able to delete this account, if the database is created with mixed-model authentication and the SA account will have super powers in managing the database.
If you have a database in a server different from the application server, then check SQL Server configuration properties for the values set for the IP address and its port numbers. Ensure that these values are correctly set.
If you find it difficult to connect to SQL server then follow these basic steps to understand where the problem might be
- ping >IP Address of SQL Server<
- telnet >IP Address of SQL Server< >port number< (you should get blank results if it is connecting to the server and port)
- Run the command netstat -an from the command prompt to check if there are any firewall blocks
- Goto SQL Server and check the server logs to see if there are any entries
- Check the log files of IIS/Apache/Tomcat depending on the server on which you run the application
The above steps should get you started in identifying where the source of the problem might be.
Creating roles in a database and adding users under each role is like creating a group in windows environmnet and adding users to it.
This helps in managing the database and hence its security.
There are basically four types of roles available: Fixed server roles, Fixed database roles, User-defined database roles and Application roles.
Thursday, February 26, 2009
Subscribe to:
Posts (Atom)