What are the authentication modes available in SQL Server?
Three types of authentication available,
1. Windows authentication - SQL Server authenticates based on the login windows user.
2. SQL Server authentication - A specific user leve authentication will be available to login into SQL Server.
3. Mixed mode authentication - It's a combination of windows and SQL Server authentication.
What are indexes, types and uses:
Indexes are nothing but a short cuts or high level idea about the table. SQL Server will have a high level idea about the data located. Its used to retrieve the data faster.
Two types of indexes available,
1. Clustered Indexes. - Only one index is available and it will physically sort the table.
This will hold the data in the leaf level and if a primary key is created. It will automatically create a clustered index. Clustered index is too heavy and took more memory.
2. Non- clustered indexes - 249 index can be created for a table.
This will hold the reference in the leaf level. Comparatively non clustered index will occupy less memory.
Rebuild index Vs Reorganize index:
Its a very important question and we need to know it for freshing up our knowledge.
- Rebuilding index is nothing but, scapping all the indexes and create fresh index so that the pages will be compressed and all the datas will be formatted (Storage wise) Where as reorganizing the index will do a high level compaction and it wont delete the existing index.
- We should not rebuild the index duing production time and it can be done during system downtime where as reorganising can be done during run time.
What do you mean by acid property?
Atomicity : The value should be atomic.
Consistency : The data in the database should be consistent. It indicates, if we are maintaining data in two different places. Those data should resemble. If it differs, then it will create confusions. Am I right?
Isolation : Transaction should be isolated and it should not affect the other transactions. If the transactions occured on the same data. Appropriate locks should be posted before starting the transactions.
Durability: The data should be stable.
Regards,
Venkatesan Prabu .J
No comments:
Post a Comment