a) SQL Injection security
- Input data must be in correct format.
- We must use stored procedure in our database, if we are not using stored procedure then we must safe parameter of SQL commands
- We must use four stored procedure for a table insert, update, delete and read.
- The “sa” account or other privileged accounts that are members of the “sysadmin” or “db_owner” roles are not used for application logins.
- Strong password required for authentication.
- Connection string must be encrypted and must be stored in a secure location
c) Authorization
- We must use business logic layer or tire architecture in our application for security purpose.
- For multiple queries we must use commit and rollback transaction.
- Windows authentication is used to avoid credential management.
- Security of sensitive data in necessary that include password and other things.
- Proper error handing is necessary in the stored procedure.
comments
0 Responses to "SQL Server Security"Post a Comment