TCS
SMC Corporation Interview Questions and Answers
Q1. How will you fix log space issue and tempdb issues.
To fix log space and tempdb issues, I would increase the size of the log file and move tempdb to a separate drive.
Increase the size of the log file to prevent it from filling up too quickly
Move tempdb to a separate drive to improve performance and prevent it from competing with other databases for space
Regularly monitor and manage log space and tempdb usage to prevent future issues
Q2. What are the high availability techniques
High availability techniques ensure system uptime and minimize downtime.
Redundancy of hardware and software components
Load balancing to distribute traffic across multiple servers
Clustering to provide failover capabilities
Disaster recovery planning to ensure business continuity
Automated monitoring and alerting to quickly identify and resolve issues
Q3. Difference between blockings and dead locks.
Blocking occurs when one transaction holds a lock on a resource that another transaction needs, while a deadlock occurs when two or more transactions are waiting for each other to release locks.
Blocking occurs when a transaction is waiting for a resource that is locked by another transaction.
Deadlock occurs when two or more transactions are waiting for each other to release locks.
Blocking can be resolved by allowing the first transaction to complete and release the lock.
Deadl...read more
Q4. What is cluster in Sql server.
A cluster in SQL Server is a group of servers that work together to provide high availability and scalability.
A cluster is used to ensure that a database is always available, even if one server fails.
It allows for load balancing across multiple servers to improve performance.
SQL Server supports two types of clusters: failover clusters and active-active clusters.
Failover clusters have one active server and one or more standby servers that take over if the active server fails.
A...read more
Q5. What is fragmentation
Fragmentation is the process of breaking something into smaller pieces or parts.
Fragmentation can occur in various fields such as computer storage, memory, and databases.
In computer storage, fragmentation happens when files are broken into smaller pieces and scattered across different parts of the hard drive, making it slower to access the data.
In memory, fragmentation occurs when there are small gaps between blocks of memory that cannot be used, leading to inefficient use of...read more
Q6. Explain Replication in SQL server
Replication is a process of copying and distributing data and database objects from one database to another.
Replication is used to improve the availability and scalability of databases.
It can be used for disaster recovery, reporting, and load balancing.
There are three types of replication: snapshot, transactional, and merge.
Snapshot replication copies the entire database to another server.
Transactional replication copies only the changes made to the database.
Merge replication...read more
Q7. Performance tuning in sql server
Performance tuning in SQL Server
Identify slow queries using SQL Profiler or DMVs
Optimize query execution plan using indexes and statistics
Reduce network latency by minimizing data transfer
Use stored procedures instead of ad-hoc queries
Consider partitioning large tables
Regularly monitor and maintain database health
More about working at TCS
Reviews
Interviews
Salaries
Users/Month