Wednesday, June 24, 2026

Top 100 SQL Server Interview Questions and Answers for Experienced Developers

 

Introduction

SQL Server is one of the most widely used relational database management systems in enterprise applications. Whether you are a fresher or an experienced professional, SQL Server interview questions are commonly asked in software development, database administration, and data engineering interviews.

This article covers the most frequently asked SQL Server interview questions with clear and concise answers.


1. What is SQL Server?

SQL Server is a Relational Database Management System (RDBMS) developed by Microsoft. It is used to store, manage, retrieve, and secure data.

Features:

  • High Availability

  • Security

  • Backup and Recovery

  • Performance Tuning

  • Reporting Services


2. What are the different editions of SQL Server?

  • Enterprise Edition

  • Standard Edition

  • Web Edition

  • Developer Edition

  • Express Edition


3. What is a Database?

A database is an organized collection of related data stored electronically and managed by a database management system.


4. What are Primary Keys?

A Primary Key uniquely identifies each row in a table.

Example

CREATE TABLE Employee
(
    EmployeeId INT PRIMARY KEY,
    Name VARCHAR(100)
);

Characteristics

  • Unique

  • Cannot contain NULL values

  • One Primary Key per table


5. What is a Foreign Key?

A Foreign Key establishes a relationship between two tables.

Example

CREATE TABLE Department
(
    DepartmentId INT PRIMARY KEY,
    DepartmentName VARCHAR(100)
);

CREATE TABLE Employee
(
    EmployeeId INT PRIMARY KEY,
    DepartmentId INT,
    FOREIGN KEY(DepartmentId)
    REFERENCES Department(DepartmentId)
);

6. What is the difference between Primary Key and Unique Key?

Primary KeyUnique Key
Only one per tableMultiple allowed
Cannot contain NULLCan contain one NULL
Creates clustered index by defaultCreates non-clustered index by default

7. What is Normalization?

Normalization is the process of organizing data to reduce redundancy and improve data integrity.

Benefits

  • Eliminates duplicate data

  • Improves consistency

  • Reduces storage usage


8. What are the Normal Forms?

1NF

Removes repeating groups.

2NF

Removes partial dependency.

3NF

Removes transitive dependency.

BCNF

Advanced version of 3NF.


9. What is Denormalization?

Denormalization combines tables to improve query performance by reducing joins.


10. What is a Clustered Index?

A Clustered Index determines the physical order of data in a table.

Characteristics

  • Only one clustered index per table

  • Faster range queries


11. What is a Non-Clustered Index?

A Non-Clustered Index stores pointers to actual data rows.

Characteristics

  • Multiple indexes allowed

  • Improves search performance


12. Difference Between Clustered and Non-Clustered Index

ClusteredNon-Clustered
Sorts actual dataStores references
One per tableMultiple allowed
Faster range scansFaster lookups

13. What is a View?

A View is a virtual table created from one or more tables.

Example

CREATE VIEW vwEmployees
AS
SELECT EmployeeId, Name
FROM Employee;

14. What is a Stored Procedure?

A Stored Procedure is a collection of SQL statements stored in the database.

Example

CREATE PROCEDURE GetEmployees
AS
BEGIN
    SELECT * FROM Employee;
END

Benefits

  • Reusable

  • Better performance

  • Enhanced security


15. What is a Function?

A Function returns a value and can be used in SQL statements.

Types

  • Scalar Function

  • Table-Valued Function


16. Difference Between Procedure and Function

ProcedureFunction
Can return multiple valuesReturns one value
Can modify dataUsually does not modify data
Cannot be used in SELECTCan be used in SELECT

17. What is a Trigger?

A Trigger automatically executes when INSERT, UPDATE, or DELETE events occur.

Types

  • AFTER Trigger

  • INSTEAD OF Trigger


18. What is a Transaction?

A Transaction is a sequence of operations executed as a single unit of work.

Example

BEGIN TRANSACTION

UPDATE Account
SET Balance = Balance - 1000
WHERE AccountId = 1;

UPDATE Account
SET Balance = Balance + 1000
WHERE AccountId = 2;

COMMIT TRANSACTION;

19. What are ACID Properties?

Atomicity

Either all operations succeed or none.

Consistency

Data remains valid.

Isolation

Transactions do not interfere.

Durability

Committed data remains permanent.


20. What is a Deadlock?

A Deadlock occurs when two transactions wait indefinitely for each other to release resources.

Prevention

  • Access objects in same order

  • Keep transactions short

  • Use proper indexes


21. What are Isolation Levels?

  • Read Uncommitted

  • Read Committed

  • Repeatable Read

  • Serializable

  • Snapshot


22. What is a Cursor?

A Cursor processes rows one at a time.

Note

Avoid cursors when possible because set-based operations are usually faster.


23. What is a Temp Table?

A temporary table stores data temporarily during a session.

Example

CREATE TABLE #TempEmployee
(
    EmployeeId INT,
    Name VARCHAR(100)
);

24. Difference Between Temp Table and Table Variable

Temp TableTable Variable
Supports indexesLimited indexing
Better for large dataBetter for small data
Stored in tempdbStored in tempdb

25. What is SQL Injection?

SQL Injection is a security vulnerability where malicious SQL code is injected into queries.

Prevention

  • Use parameterized queries

  • Use stored procedures

  • Validate inputs

Example

SqlCommand cmd = new SqlCommand(
"SELECT * FROM Users WHERE UserName=@UserName",
connection);

cmd.Parameters.AddWithValue("@UserName", userName);

Frequently Asked Questions

Which SQL Server topics are most commonly asked in interviews?

  • Joins

  • Indexes

  • Stored Procedures

  • Functions

  • Transactions

  • ACID Properties

  • Deadlocks

  • Query Optimization

  • Isolation Levels

  • Performance Tuning

Is SQL Server still relevant?

Yes. SQL Server remains one of the most widely used enterprise databases worldwide.


Conclusion

A strong understanding of SQL Server fundamentals, indexing strategies, transactions, ACID properties, deadlocks, stored procedures, and performance tuning is essential for clearing SQL Server interviews. Mastering these concepts will help both developers and database administrators succeed in real-world projects and technical interviews.

Top 100 Microservices Interview Questions and Answers for Experienced Developers

 

Introduction

Microservices architecture has become one of the most popular approaches for building scalable, maintainable, and cloud-native applications. Companies such as Netflix, Amazon, Uber, and Spotify use microservices to develop highly available and independently deployable systems.

In this article, we will cover the top Microservices interview questions and answers that are frequently asked in software development interviews.


1. What are Microservices?

Microservices is an architectural style where an application is divided into small, independent services. Each service focuses on a specific business capability and can be developed, deployed, and scaled independently.


2. What are the advantages of Microservices?

Advantages:

  • Independent deployment

  • Independent scaling

  • Technology flexibility

  • Better fault isolation

  • Faster development

  • Improved maintainability


3. What are the disadvantages of Microservices?

Disadvantages:

  • Increased complexity

  • Network latency

  • Distributed transactions

  • Monitoring challenges

  • Data consistency issues


4. Difference between Monolithic and Microservices Architecture?

MonolithicMicroservices
Single deploymentMultiple deployments
Shared databaseSeparate databases
Tight couplingLoose coupling
Difficult scalingEasy scaling
Single technology stackMultiple technologies

5. What is Service Discovery?

Service Discovery helps services locate and communicate with each other dynamically.

Examples:

  • Eureka

  • Consul

  • Kubernetes Service Discovery


6. What is an API Gateway?

An API Gateway acts as a single entry point for all client requests.

Responsibilities:

  • Authentication

  • Authorization

  • Routing

  • Rate limiting

  • Logging

Examples:

  • Kong

  • NGINX

  • Azure API Management

  • AWS API Gateway


7. What is the Database per Service pattern?

Each microservice owns its own database.

Benefits:

  • Independent deployment

  • Better isolation

  • Loose coupling


8. Why should Microservices avoid a shared database?

A shared database introduces:

  • Tight coupling

  • Deployment dependency

  • Scalability limitations


9. What is Bounded Context?

Bounded Context is a Domain Driven Design concept that defines clear boundaries for business domains.

Example:

  • User Service

  • Product Service

  • Order Service

  • Payment Service


10. What is Domain Driven Design (DDD)?

DDD focuses on modeling software around business domains and business rules.

Benefits:

  • Better maintainability

  • Clear domain boundaries

  • Easier microservice identification


11. What is the Strangler Pattern?

A migration strategy where parts of a monolithic application are gradually replaced by microservices.


12. What is Event-Driven Architecture?

Services communicate using events instead of direct API calls.

Examples:

  • Kafka

  • RabbitMQ

  • Azure Service Bus


13. What is Synchronous Communication?

Services communicate and wait for an immediate response.

Examples:

  • REST APIs

  • gRPC


14. What is Asynchronous Communication?

Services communicate without waiting for immediate responses.

Examples:

  • Kafka

  • RabbitMQ

  • Azure Service Bus


15. What is Eventual Consistency?

Data becomes consistent across services after a certain period rather than immediately.


16. What is a Distributed Transaction?

A transaction involving multiple microservices or databases.


17. Why are Distributed Transactions difficult?

Challenges include:

  • Network failures

  • Data consistency

  • Service failures

  • Performance issues


18. What is the Saga Pattern?

A pattern used to manage distributed transactions across multiple services.

Types:

  • Choreography-based Saga

  • Orchestration-based Saga


19. What is Choreography-based Saga?

Services communicate through events without a central coordinator.

Example:

Order Created → Payment Service → Inventory Service → Shipping Service


20. What is Orchestration-based Saga?

A central orchestrator coordinates all services.

Benefits:

  • Better visibility

  • Easier monitoring

  • Simpler debugging


21. What is Circuit Breaker Pattern?

Prevents repeated calls to failing services.

States:

  • Closed

  • Open

  • Half-Open

Tools:

  • Polly

  • Hystrix

  • Resilience4j


22. What is Bulkhead Pattern?

Isolates resources to prevent failures from affecting the entire system.

Example:

Separate thread pools for different services.


23. What is Retry Pattern?

Automatically retries failed operations.

Used for:

  • Temporary network failures

  • Service unavailability


24. What is Timeout Pattern?

Stops waiting after a specified duration.

Benefits:

  • Prevents resource exhaustion

  • Improves system stability


25. What is Idempotency?

Executing the same request multiple times should produce the same result.

Example:

POST Payment Request with TransactionId

Even if retried, payment should be processed only once.


Frequently Asked Questions

Is Microservices architecture suitable for every application?

No. Small applications often benefit more from a monolithic architecture due to lower complexity.

Which companies use Microservices?

  • Netflix

  • Amazon

  • Uber

  • Spotify

  • LinkedIn

Which messaging systems are commonly used?

  • Kafka

  • RabbitMQ

  • Azure Service Bus

  • AWS SQS


Conclusion

Microservices architecture enables organizations to build scalable, resilient, and independently deployable applications. Understanding concepts such as API Gateway, Service Discovery, Saga Pattern, Eventual Consistency, Circuit Breakers, and Event-Driven Architecture is essential for modern software development interviews.

Sunday, June 14, 2026

Complete Resume Preparation Guide for Freshers and Experienced Professionals (2026) and FAQ's

I've rewritten your article into a modern, SEO-friendly Blogger post with additional tips, updated best practices, and better structure.

Complete Resume Preparation Guide for Freshers and Experienced Professionals

📄 Resume Preparation: Your First Step Towards a Successful Career

A well-crafted resume is one of the most important documents when applying for software jobs. Your resume acts as your personal marketing tool and creates the first impression on recruiters. Whether you are a fresher looking for your first job or an experienced professional seeking better opportunities, having a professional resume can significantly increase your chances of getting shortlisted.

In this article, we will discuss how to prepare an effective resume for both freshers and experienced professionals, along with useful tips and sample sections.


🎯 Why Is a Resume Important?

A resume helps recruiters quickly understand:

  • Your educational background

  • Technical skills

  • Work experience

  • Projects and achievements

  • Certifications

  • Career objectives

Most recruiters spend only a few seconds reviewing a resume. Therefore, it should be clear, professional, and easy to read.


🆕 Resume Preparation for Freshers

If you are a fresher, focus on your education, skills, projects, and achievements.

1️⃣ Resume Header

Place the following details at the top of your resume:

  • Full Name (Bold and Center Aligned)

  • Email Address

  • Mobile Number

  • LinkedIn Profile URL

  • GitHub Profile (if applicable)

  • Portfolio Website (optional)

  • Location (City, State)

Avoid Including:

  • PAN Number

  • Passport Number

  • Aadhaar Number

  • Bank Details

These details are generally not required during the application process.


2️⃣ Career Objective

Write a short and professional career objective.

Example

Motivated and detail-oriented Computer Science graduate seeking an opportunity to apply technical skills and contribute to innovative software development projects while continuously learning and growing professionally.


3️⃣ Academic Qualifications

Present educational details in a table format.

QualificationInstitutionUniversity/BoardYearPercentage/CGPA
B.TechXYZ CollegeJNTU20268.5 CGPA
IntermediateABC Junior CollegeBoard of Intermediate202292%
SSCDEF SchoolState Board202095%

This format makes it easier for recruiters to review your academic background.


4️⃣ Technical Skills

Programming Languages

  • C#

  • Java

  • Python

Web Technologies

  • HTML

  • CSS

  • JavaScript

  • Angular

Databases

  • SQL Server

  • MySQL

Tools

  • Visual Studio

  • Git

  • Azure DevOps


5️⃣ Achievements and Extracurricular Activities

Mention notable accomplishments.

Examples

  • First Prize in Essay Writing Competition

  • Winner of College Coding Contest

  • Organized Technical Fest Events

  • Active NSS Volunteer


6️⃣ Academic Projects

Projects are very important for freshers.

Include:

  • Project Name

  • Technologies Used

  • Team Size

  • Duration

  • Description

  • Achievements

Sample Project

Online Library Management System

Technologies: ASP.NET Core, SQL Server, Angular

Team Size: 4

Description:
Developed a web-based application that enables students to search, borrow, and manage books online.

Achievements:

  • Reduced manual book management process.

  • Improved search performance using optimized database queries.


7️⃣ Personal Details

Include only necessary information:

  • Name

  • Date of Birth

  • Address

  • Languages Known

Avoid unnecessary personal information.


8️⃣ Declaration

Sample Declaration

I hereby declare that the information provided above is true and correct to the best of my knowledge.

Place: Hyderabad

Date: __________

Signature: __________


💼 Resume Preparation for Experienced Professionals

Experienced candidates should focus more on professional achievements, projects, and technical expertise.


1️⃣ Professional Summary

Write a powerful summary highlighting your experience.

Example

Senior .NET Developer with 8+ years of experience in designing, developing, and deploying enterprise-level applications using ASP.NET Core, Angular, SQL Server, Azure, and Microservices architecture. Strong expertise in performance optimization, API development, and cloud-based solutions.


2️⃣ Certifications

Include relevant certifications.

Examples:

  • Microsoft Certified Azure Developer

  • Azure Solutions Architect

  • AWS Certified Developer

  • Scrum Master Certification


3️⃣ Technical Summary

Backend

  • ASP.NET Core

  • Web API

  • Microservices

Frontend

  • Angular

  • TypeScript

  • JavaScript

Database

  • SQL Server

  • PostgreSQL

Cloud

  • Azure

  • AWS

DevOps

  • Azure DevOps

  • Docker

  • Kubernetes


4️⃣ Professional Experience

Mention each company in reverse chronological order.

Include:

  • Company Name

  • Company Website

  • Designation

  • Duration

  • Technologies Used


Example

Senior Software Engineer

Company: ABC Technologies

Website: https://www.abctech.com

Duration: Jan 2022 – Present


Responsibilities

  • Developed scalable REST APIs using ASP.NET Core.

  • Designed Microservices architecture.

  • Implemented CI/CD pipelines using Azure DevOps.

  • Optimized SQL queries and improved application performance.

  • Mentored junior developers.


5️⃣ Client Projects

Include:

  • Client Name

  • Project Name

  • Technologies Used

  • Responsibilities

  • Achievements

Recruiters are highly interested in real-time project experience.


📧 Cover Letter Sample

A cover letter increases your chances of getting noticed.

Sample Cover Letter

Dear Hiring Manager,

I am writing to express my interest in the Software Developer position at your organization.

I have extensive experience in ASP.NET Core, Angular, SQL Server, Azure, and Microservices development. Throughout my career, I have successfully delivered enterprise applications, optimized system performance, and collaborated with cross-functional teams to achieve business objectives.

I believe my technical expertise and passion for software development make me a strong candidate for this role.

Thank you for your time and consideration. I look forward to discussing how my skills can contribute to your organization.

Sincerely,

Umamaheswar Rao B


🚀 Additional Resume Tips

Keep Resume Length Appropriate

  • Freshers: 1-2 Pages

  • Experienced: 2-4 Pages

Use Keywords

Many companies use Applicant Tracking Systems (ATS).

Include keywords such as:

  • ASP.NET Core

  • Angular

  • SQL Server

  • Azure

  • Microservices

  • REST API

  • Docker

  • Kubernetes

Use Professional Formatting

  • Consistent font style

  • Clear headings

  • Proper spacing

  • Bullet points instead of lengthy paragraphs

Proofread Before Sending

Check for:

  • Spelling mistakes

  • Grammar errors

  • Incorrect dates

  • Broken links


❓ Frequently Asked Questions

How many pages should a resume be?

Freshers should keep it within 1-2 pages, while experienced professionals can have 2-4 pages depending on their experience.

Should I include a photograph?

Only if specifically requested by the employer.

Should I mention hobbies?

Yes, but keep them relevant and professional.

Should I include certifications?

Absolutely. Certifications add value and increase credibility.


🎯 Conclusion

A well-structured resume can significantly improve your chances of landing interviews. Focus on presenting your skills, achievements, projects, and experience clearly and professionally. Keep your resume updated regularly and tailor it according to the job role you are applying for.

Remember: Your resume is your first impression. Make it count!


Saturday, June 13, 2026

Sql Server Imp Queries and FAQ's

🔹 SQL Server Interview Questions with Keywords, Functions & Transactions

1. Main SQL Server Keywords

These are frequently asked in interviews:

  • DDL (Data Definition Language): CREATE, ALTER, DROP, TRUNCATE, RENAME

  • DML (Data Manipulation Language): SELECT, INSERT, UPDATE, DELETE, MERGE

  • DCL (Data Control Language): GRANT, REVOKE, DENY

  • TCL (Transaction Control Language): BEGIN TRAN, COMMIT, ROLLBACK, SAVEPOINT

  • Other Important Keywords:
    WHERE, GROUP BY, HAVING, ORDER BY, DISTINCT, TOP, JOIN (INNER, LEFT, RIGHT, FULL), UNION, EXCEPT, INTERSECT, WITH (CTE), OVER, PARTITION BY

👉 Interview Tip: Be ready to explain differences, e.g., DELETE vs TRUNCATE vs DROP.


2. SQL Server Functions

SQL Server provides different types of functions. Common interview focus:

a) Aggregate Functions

  • COUNT(), SUM(), AVG(), MIN(), MAX()

b) String Functions

  • LEN(), SUBSTRING(), CHARINDEX(), REPLACE(), UPPER(), LOWER(), LTRIM(), RTRIM()

c) Date & Time Functions

  • GETDATE(), SYSDATETIME(), DATEADD(), DATEDIFF(), DATENAME(), CONVERT()

d) Mathematical Functions

  • ABS(), ROUND(), CEILING(), FLOOR(), POWER()

e) Ranking & Window Functions

  • ROW_NUMBER(), RANK(), DENSE_RANK(), NTILE(), LEAD(), LAG(), OVER(PARTITION BY...)

f) System Functions

  • ISNULL(), COALESCE(), CAST(), CONVERT(), NULLIF()

👉 Interview Tip: Be ready to write queries using ROW_NUMBER() or LAG() for solving ranking or difference problems.


3. Transactions in SQL Server

A transaction is a sequence of operations performed as a single logical unit of work.

Key Components

  • BEGIN TRANSACTION → Start a transaction

  • COMMIT → Save all changes

  • ROLLBACK → Undo all changes

  • SAVEPOINT → Rollback partially to a specific point

  • @@TRANCOUNT → Check active transaction count

Transaction Properties (ACID)

  • Atomicity – All or nothing

  • Consistency – Data remains valid

  • Isolation – Transactions execute independently

  • Durability – Committed data is permanent

Transaction Isolation Levels

  • READ UNCOMMITTED – Dirty reads allowed

  • READ COMMITTED – Prevents dirty reads (default in SQL Server)

  • REPEATABLE READ – Prevents dirty & non-repeatable reads

  • SNAPSHOT – Provides version-based reads

  • SERIALIZABLE – Highest isolation, prevents all anomalies

👉 Interview Tip: Expect a question like
"If two users update the same row at the same time, what happens?"
Answer involves locking, blocking, and isolation levels.


4. Sample Interview Questions

  1. Difference between DELETE, TRUNCATE, DROP?

  2. What is a CTE (Common Table Expression) and where do you use it?

  3. Explain Clustered vs Non-Clustered Index.

  4. What are Aggregate Functions? Give examples.

  5. Explain ROW_NUMBER() vs RANK() vs DENSE_RANK().

  6. What are ACID properties of a transaction?

  7. Explain Deadlock and how to handle it.

  8. What are isolation levels in SQL Server?

  9. Explain savepoint in a transaction.

  10. How do you optimize queries in SQL Server?


✅ With this, you’re ready for keywords, functions, and transaction-based questions in SQL Server interviews.

🔹 SQL Server Interview Questions & Answers

1. What is the difference between DELETE, TRUNCATE, and DROP?

Answer:

  • DELETE: Removes rows one by one, can have WHERE clause, logs each row. Rollback possible.

  • TRUNCATE: Removes all rows, no WHERE, faster, minimal logging, resets identity.

  • DROP: Deletes entire table structure + data. Cannot rollback once executed.


2. What are SQL Server functions and their types?

Answer:
Functions in SQL Server are built-in methods used to perform operations on data.

  • Aggregate: COUNT(), SUM(), AVG()

  • String: LEN(), SUBSTRING(), REPLACE()

  • Date & Time: GETDATE(), DATEDIFF(), DATEADD()

  • Math: ROUND(), ABS(), CEILING()

  • Ranking/Window: ROW_NUMBER(), RANK(), DENSE_RANK(), LAG()

  • System: ISNULL(), COALESCE(), CAST(), CONVERT()


3. What are ACID properties in SQL Server transactions?

Answer:

  • Atomicity – Entire transaction succeeds or fails.

  • Consistency – Ensures data integrity after transaction.

  • Isolation – Transactions do not affect each other.

  • Durability – Committed data is permanent even after a crash.


4. What are the different types of joins in SQL Server?

Answer:

  • INNER JOIN – Returns only matching rows.

  • LEFT JOIN – All from left + matched from right.

  • RIGHT JOIN – All from right + matched from left.

  • FULL OUTER JOIN – All rows from both tables.

  • CROSS JOIN – Cartesian product of two tables.


5. What are transaction control commands in SQL Server?

Answer:

  • BEGIN TRAN → Starts a transaction.

  • COMMIT → Saves changes permanently.

  • ROLLBACK → Reverts changes.

  • SAVEPOINT → Marks a point to rollback partially.

  • @@TRANCOUNT → Returns active transaction count.


6. What are isolation levels in SQL Server?

Answer:

  • Read Uncommitted → Dirty reads allowed.

  • Read Committed → No dirty reads (Default).

  • Repeatable Read → Prevents dirty + non-repeatable reads.

  • Serializable → Prevents all anomalies, strictest.

  • Snapshot → Provides version-based consistent reads.


7. What is the difference between ROW_NUMBER(), RANK(), and DENSE_RANK()?

Answer:

  • ROW_NUMBER() → Unique sequential numbers (no duplicates).

  • RANK() → Skips numbers if there are ties.

  • DENSE_RANK() → No gaps in ranking, even with ties.


8. What is a CTE (Common Table Expression)?

Answer:
A temporary result set defined with WITH keyword, used for recursive queries and improving readability.

Example:

WITH EmpCTE AS (
   SELECT EmpId, ManagerId, Name
   FROM Employee
)
SELECT * FROM EmpCTE;

9. What is the difference between ISNULL() and COALESCE()?

Answer:

  • ISNULL(expr, replacement) → Replaces NULL with replacement, only 2 parameters.

  • COALESCE(expr1, expr2, expr3, …) → Returns first non-NULL value, supports multiple parameters.


10. What is a deadlock and how do you prevent it?

Answer:

  • Deadlock occurs when two or more transactions wait for each other’s locks, causing infinite blocking.

  • Prevention methods:

    • Access tables in same order.

    • Keep transactions short.

    • Use proper indexing.

    • Use SET DEADLOCK_PRIORITY to control victim selection.


11. What are indexes and their types in SQL Server?

Answer:

  • Clustered Index: Stores data physically sorted (only one per table).

  • Non-Clustered Index: Separate structure with pointer to data (multiple allowed).

  • Other types: Unique Index, Filtered Index, Full-text Index, Columnstore Index.


12. What are Savepoints in a transaction?

Answer:
Savepoints allow rollback to a specific point within a transaction.

Example:

BEGIN TRAN;
INSERT INTO Orders VALUES (1, 'Test1');
SAVE TRAN SavePoint1;
INSERT INTO Orders VALUES (2, 'Test2');
ROLLBACK TRAN SavePoint1; -- Rolls back only second insert
COMMIT;

✅ This covers most common SQL Server interview questions with answers around keywords, functions, and transactions.


Friday, June 12, 2026

Frequently asked interview questions for Dot net developers

 

Dot Net Interview FAQ's

Some of the Frequently asked questions for Dot net developers

What is .NetFrameWork ?
  .Net Frame work for building and developing the  application by using .net
  it contains to major parts
  1. Common Language Runtime
  2.Class Libraries
OOPS Concepts 
   
Ans:  Object Oriented Programming (OOP) All Programming Language will support this OOP there are Three main concepts in OOP
    a)Abstraction
   b)Encapsulation
   c)Inheritance
   d)Polymorphism
Abstraction :
Reducing the Complexity and generalization
Encapsulation  :
Encapsulation is the process of Keeping the data and method together into Objects
OR
Simple Putting Together into one simple class Like.
OR
Means that a group of related properties, methods, and other members are treated as a single unit or object.
___________________________________________________________________________________
Class My Class
{
public MyClass()
{

}
int a;
int b;
Public void GetAdd()
{
 int C=a+b;
}

}
___________________________________________________________________________________
Inheritance:
Inheritance Enables  you to Create Class that Reuses
OR
Acquiring the Properties of Base Class(Parent Class)
OR
Means Provide Further Implementation ,Reusing of  Base Class
__________________________________________________________
Public Class MyClass
{
Public MyClass()
{
}
int a;
int b;
Public void GetMyMethod()
{
int c=a+b;
}
}
Public Class MyChildClass : MyClass
{
 Public MyChildClass()
{}
}
C# Doesn't Support Multiple Inheritance By Using Interfaces We Can 
_______________________________________________

Polymorphism
Polymorphism means same operation may Behave Differently in Different Classes

Example of Compile Time Polymorphism: Method Overloading
Example of Run Time Polymorphism: Method Overriding

Method Overloading- Method with same name but with different arguments is called method overloading.
- Method Overloading forms compile-time polymorphism.
- Example of Method Overloading:
class MyClass
{
Public string hello()
{
return "Hello";
}
public string hello(string s)
{
return "Hello"+S.Tostring();
}
}

Method Overriding- Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass.
- Method overriding forms Run-time polymorphism.
-Virtual Key word is required for Overriding
- Example of Method Overriding:
Public Class MyClass
{
virtual void hello()
{
Console.WriteLine(“Hello from MyClass”);
}
}
Public Class MyChildchild : MyClass
{
override void hello()
{
Console.WriteLine(“Hello from Child”); }
}
}__________________________________________________________________

3.Differences between Interface and Abstract Class?
Interfaces :
--An interface is not a class.
--It is an entity that is defined by the word Interface.
--An interface has no implementation;
--it only has the signature or in other words, just the definition of the methods without the body. As one of the similarities to Abstract class
 ____________________________________
Public Interface ImyInterface

{
String Method1();
int Method2();


}
Public Class myClass :ImyInterface
{
string Method1()
{
//Code
}
int Method2()
{
//Code
}
}
____________________________________________________________________________
---Requires more time to find the actual method in the corresponding classes. (Slow )


The main difference between them is that a class can implement more than one interface but can only inherit from one abstract class. Since C# doesn't support multiple inheritance, interfaces are used to implement multiple inheritance

  Abstract Class:
   These Classes Cannot be instantiated, 
 ---These are used if additional functionality is needed in derived classes,
 ---These Implemented partially or No Implementation
--Fast In Operation
 ____________________________________________________________
abstract class MyAbstractClass
{
public MyAbstractClass()
{
// Code to initialize the class goes here.
}

abstract public void Method1();
abstract public void Method2(int A);
abstract public long Method3(int B);
}
class MyClass : MyAbstractClass
{
public MyClass ()
{
// Initialization code goes here.
}

override public void Method1()
{
// code goes here.
}

override public void Method2(int A)
{
// code goes here.
}

override public long Method3(int B)
{
//code goes here.
}
}____________________________________________________________
Override and Overloading
  Override and Overloading Comes under Polymorphism
  --The Run time Polymorphism  Override
  --The Compile time polymorphism is Overloading Check it out in Above Polymorphism
Virtual Key
  --If U use virtual key before method it means we can able to Override method check the Polymorphism
Access modifiers in C #
    --Access Modifiers Specify the Accessibility of type or Member when u declare before the Class
    --Five Access Modifiers in C#
   Private :The Type or  Member Can be accessed by the in the Same Class
            --like With In Class
   Public  : The Type or Member Can be accessed by any other code with in same assembly or any
     other  assembly which reference it
    -- Like any where in the class and assembly,
   Protect: The type or member can be accessed only by code in the same class or struct, or in a class
              that is  derived from that class.
--Like Private But also Derived Class
   Internal: The type or member can be accessed by any code in the same assembly, but not from
      another assembly
   Protected Internal:
    The type or member can be accessed by any code in the assembly in which it is declared, or from within  a  derived class in another assembly. Access from another assembly must take place within a class         declaration that derives from the class in which the protected internal element is declared, and it must
    take place through an instance of the derived class type.


Constructors
 ---Constructors are Class Methods that are executed when a object  of a given type is created
 --- Constructors are have the same name as the  Class
 ---Initialize the data members of  the new Object
public class Myclass()
{
public bool mybool;
public Myclass()
{
 mybool=true;
}
}
--With parameters also we can create constructors 
Static Constructors :
A static Constructor is used to initialize any static data or perform a particular action that needs to be performed once only
______________________
public class  Myclass
{
static string time;
static myclass()
{
 time=DateTime.Now.Tostring();
}
}
______________________

--A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced.




Delegates :
Delegates holds method signature.
it passes the method as argument to another method

Generics
  Generic Classes and Methods combine re-usability 

10.New Features In C #

11.Sealed Class
     Restrict the class to inheritance 

12.Asp.Net Life Cycle
     Page Request
     Start
     Page Initializing
     Load
     Validation
     PostBack Event handling
     Rendering
     Unloading
    

Directives in Asp.Net

Session Management
    View state
    Hidden fields
    ControlState
    QueryString
    Cookies
    Application State
    Session State
    Profile Properties
  

15.Get and Post Method

16.Session Management in IIS

17.Authentication and Autherization

18.MasterPages

19.Cookies,Caching and View State

Caching :
It is a way to store the frequently used data into the server memory which can be retrieved very quickly. And so provides both scalability and performance. For example if user is required to fetch the same data from database frequently then the resultant data can be stored into the server memory and later retrieved in very less time (better performance). And the same time the application can serve more page request in the same time scalability. 

  1. Output caching - The rendered html page is stored into the cache before sending it to the client. Now, if the same page is requested by some other client the already rendered htm page is retrieved from the server memory and sent to the client, which saves the time requires rendering and processing the complete page.
  2. Data Caching - The important pieces of information, that are time consuming and frequently requested, are stored into the cache. For example a data set retrieved from the database. It is very similar to application state but it is more server friendly as the data gets removed once the cache is filled.
There are two more models which are built on the above two types:
  1. Fragment caching - Instead of caching the complete page, some portion of the rendered html page is cached. E.g.: User Control used into the page is cached and so it doesn’t get loaded every time the page is rendered. 
  2. Data Source Caching - It is caching built into the data source controls (eg. XmlDataSource, sqlDataSource etc). It is very similar to data caching but here the caching is not handled explicitly but the data source control manages it as per the settings made on the data controls.
Declaration
<@ OutputCache Duration="20" VaryByParam="None">

Cookies :
A cookie is a small bit of text that accompanies requests and pages as they go between the Web server and browser. The cookie contains information the Web application can read whenever the user visits the site.
---Most browsers support cookies of up to 4096 bytes.
----Also, number of cookies is limited to 20 per website. If we create more than this it browser will delete ole Cookie





20.Gridview Events 
      --DataBinding
      --DataBound
      --Dispose
      --init
     --Load
     --PageIndexChanged
    --PageIndexChanging
    --PreRender
    --RowCancelEditing
    --RowCommand
    --RowCreated
   ---RowDataBound
    --RowDeleting
    ---RowDeleted
    ---RowEditing
    ---RowUpdated
     --RowUpdating
     --SelectIndexChanged
     --SelectIndexChanging
     --Sorting
     --Sorted
    -- unload

21.Ajax Controls and About Ajax

22.Validation Controls
23.JavaScript
24.Html/DHtml/CSS

25.Server.Transfer and Response.Redirect

26.Webservices,WindowServices,RemotingWCF,WPF

27.XML
28.SilverLight,
29.SharePoint
31.Extension Methods
32.HTTP Handlers/HTTP Modules
33.Sql Profiler
34.Union and Union All
35.Event and Delegates
36.How to Display Duplicate Values In SqlServer

37.IIS Life Cycle


38.Enterprise Library –Microsoft
     Microsoft Enterprise Library is a collection of reusable application blocks designed to assist software    developers with common enterprise development challenges
This release includes:
--Caching Application Block

--Cryptography Application Block
--Data Access Application Block
--Exception Handling Application Block
--Logging Application Block
--Application Block
--Validation Application Block
--Unity Application Block

39.What is the difference between ScriptManager and ScriptManagerProxy ?
Ans :

Complete TypeScript Tutorial: From Beginner to Experienced Developer

 

🚀 Introduction

As JavaScript applications grow larger, managing code becomes difficult. Developers often face problems such as:

  • Runtime errors

  • Difficult debugging

  • Poor code maintainability

  • Lack of type safety

To solve these problems, TypeScript was created by Anders Hejlsberg and is maintained by Microsoft.

TypeScript is a superset of JavaScript that adds:

✅ Static Typing
✅ Object-Oriented Features
✅ Better IDE Support
✅ Compile-Time Error Checking
✅ Improved Code Maintainability


What is TypeScript?

TypeScript is an open-source programming language that builds on JavaScript by adding type definitions.

JavaScript Example

let age = 25;
age = "Twenty Five";

console.log(age);

Output:

Twenty Five

No error occurs.

TypeScript Example

let age: number = 25;

age = "Twenty Five";

Output:

Type 'string' is not assignable to type 'number'

TypeScript catches the error before execution.


Why Use TypeScript?

1. Type Safety

let salary: number = 50000;

Only numbers are allowed.


2. Better IntelliSense

Modern editors provide:

  • Auto-completion

  • Suggestions

  • Refactoring support


3. Easier Maintenance

Large projects become easier to maintain.

Examples:

  • Angular Applications

  • Enterprise Applications

  • Microservices Frontends

  • E-commerce Platforms


4. Early Error Detection

Errors are caught during compilation instead of production.


Installing TypeScript

Install Node.js

Download from:

Node.js Official Website

Verify installation:

node -v
npm -v

Install TypeScript

npm install -g typescript

Check version:

tsc -v

Your First TypeScript Program

Create:

hello.ts
let message: string = "Hello TypeScript";

console.log(message);

Compile:

tsc hello.ts

Generated:

hello.js

Run:

node hello.js

Output:

Hello TypeScript

TypeScript Data Types

Number

let age: number = 30;

String

let name: string = "John";

Boolean

let isActive: boolean = true;

Array

let scores: number[] = [90, 80, 70];

Alternative:

let scores: Array<number> = [90, 80, 70];

Tuple

let employee: [number, string];

employee = [101, "David"];

Enum

enum Role {
    Admin,
    Manager,
    User
}

let userRole = Role.Admin;

Any

let data: any = "Hello";

data = 100;
data = true;

Avoid excessive use of any.


Unknown

let value: unknown;

value = "Hello";
value = 100;

Safer than any.


Void

function printMessage(): void {
    console.log("Hello");
}

Never

function throwError(): never {
    throw new Error("Something went wrong");
}

Variables

Let

let age = 25;

Can be reassigned.


Const

const pi = 3.14;

Cannot be reassigned.


Functions

Simple Function

function add(a: number, b: number): number {
    return a + b;
}

Optional Parameters

function greet(name: string, city?: string) {
    console.log(name, city);
}

Default Parameters

function greet(name: string = "Guest") {
    console.log(name);
}

Arrow Functions

const multiply = (a: number, b: number): number => {
    return a * b;
};

Interfaces

Interfaces define contracts.

interface Employee {
    id: number;
    name: string;
}

Usage:

let emp: Employee = {
    id: 1,
    name: "John"
};

Type Aliases

type Employee = {
    id: number;
    name: string;
};

Union Types

let id: string | number;

id = 101;
id = "EMP101";

Intersection Types

type Person = {
    name: string;
};

type Employee = {
    salary: number;
};

type Staff = Person & Employee;

Classes

Creating Class

class Employee {

    id: number;
    name: string;

    constructor(id: number, name: string) {
        this.id = id;
        this.name = name;
    }

    display() {
        console.log(this.name);
    }
}

Access Modifiers

Public

public name: string;

Default access.


Private

private salary: number;

Accessible only inside class.


Protected

protected department: string;

Accessible in derived classes.


Inheritance

class Person {
    name: string = "";
}

class Employee extends Person {
    salary: number = 0;
}

Polymorphism

class Animal {
    makeSound() {
        console.log("Animal Sound");
    }
}

class Dog extends Animal {
    makeSound() {
        console.log("Bark");
    }
}









Abstract Classes

abstract class Shape {
    abstract draw(): void;
}

Generics

Generics provide reusable code.

function getValue<T>(value: T): T {
    return value;
}

Usage:

getValue<string>("Hello");
getValue<number>(100);

Generic Interface

interface ApiResponse<T> {
    data: T;
    success: boolean;
}

Modules

Export:

export class Employee {
}

Import:

import { Employee } from "./employee";

Type Assertions

let value: any = "Hello";

let len = (value as string).length;

Decorators (Advanced)

function Logger(constructor: Function) {
    console.log("Logging...");
}

@Logger
class Employee {
}

Common in:

  • Angular

  • NestJS


Async Programming

Promise

let promise = new Promise((resolve) => {
    resolve("Success");
});

Async Await

async function getData() {
    let result = await fetch("/api/users");

    return result.json();
}

TypeScript with Angular

TypeScript is the primary language used in:

Angular Official Website

Example Component:

@Component({
 selector:'app-home'
})
export class HomeComponent {
 title:string="Welcome";
}

TypeScript with React

type Props = {
    name: string;
};

function Welcome({name}: Props) {
    return <h1>{name}</h1>;
}

TypeScript Best Practices

Use Strict Mode

{
 "strict": true
}

Avoid Any

let data: any;

let data: string;

Prefer Interfaces

interface User {
    id:number;
}

Use Readonly

readonly id:number;

Use Generics

Avoid duplicate code.


Common Interview Questions

What is TypeScript?

TypeScript is a strongly typed superset of JavaScript that compiles to JavaScript.


Difference Between Any and Unknown?

AnyUnknown
No Type CheckingType Safe
Less SecureMore Secure

Difference Between Interface and Type?

InterfaceType
ExtendableFlexible
Object ContractsUnions & Intersections

What are Generics?

Generics allow reusable and type-safe code.


What are Decorators?

Decorators add metadata and behavior to classes, methods, and properties.


Real-World Enterprise Usage

TypeScript is heavily used in:

  • Angular Applications

  • React Applications

  • Node.js APIs

  • NestJS Applications

  • Enterprise Portals

  • E-commerce Systems

  • Banking Applications

  • Microservices Dashboards

Companies using TypeScript include:


Conclusion

TypeScript has become the preferred language for modern web development because it combines JavaScript's flexibility with strong typing and enterprise-grade tooling. Whether you're building Angular applications, React frontends, Node.js APIs, or large-scale enterprise systems, learning TypeScript can significantly improve code quality, maintainability, and developer productivity.

Learning Path:

  1. Basics & Data Types

  2. Functions & Objects

  3. Interfaces & Types

  4. Classes & OOP

  5. Generics

  6. Modules

  7. Async Programming

  8. Advanced Types

  9. Decorators

  10. Angular/React/NestJS Integration

Master these topics, and you'll be ready for both TypeScript interviews and real-world enterprise development.

Tuesday, June 2, 2026

Generative AI vs AI Agents vs Agentic AI: Understanding the Evolution of Artificial Intelligence

 

Introduction

Artificial Intelligence is evolving rapidly. Over the last few years, terms such as Generative AI, AI Agents, and Agentic AI have become increasingly popular. While they are related, they represent different stages in the evolution of AI systems.

Think of it this way:

  • Generative AI can create content.

  • AI Agents can perform tasks.

  • Agentic AI can independently plan, decide, and execute complex goals.

Understanding these differences is important for developers, architects, business leaders, and technology enthusiasts.


1. What is Generative AI?

Generative AI refers to artificial intelligence systems that can generate new content such as:

  • Text

  • Images

  • Audio

  • Video

  • Code

These systems are trained on massive datasets and learn patterns to create content that resembles human-created work.

Examples

  • ChatGPT

  • GitHub Copilot

  • DALL-E

  • Midjourney

  • Google Gemini

How Generative AI Works

  1. User provides a prompt.

  2. AI analyzes the prompt.

  3. AI generates a response based on learned patterns.

  4. Output is returned to the user.

Example

Prompt:

"Write a C# API to fetch employee details."

Output:

Generative AI creates the code and returns it.

The AI does not automatically deploy the application, test it, or monitor production systems.

Characteristics

Advantages

  • Fast content creation

  • Code generation

  • Creative assistance

  • Productivity improvement

Limitations

  • Reactive only

  • Requires human prompts

  • Cannot independently execute tasks

  • Limited memory and planning

Analogy

A Generative AI system is like a highly knowledgeable writer who answers questions whenever asked.


2. What are AI Agents?

An AI Agent is an AI-powered system capable of performing actions on behalf of a user.

Unlike Generative AI, agents can:

  • Use tools

  • Access APIs

  • Query databases

  • Execute workflows

  • Interact with applications

How AI Agents Work

An AI Agent typically follows:

Observe

Collect information from various sources.

Reason

Analyze the situation.

Act

Perform actions using tools.

Repeat

Continue until the task is completed.

Example

Suppose a user says:

"Generate a sales report and email it to management."

An AI Agent can:

  1. Read data from SQL Server.

  2. Generate the report.

  3. Create a PDF.

  4. Send an email.

Generative AI alone would only create the report content.

Real-World Examples

  • Customer support agents

  • IT service desk bots

  • Automated scheduling assistants

  • DevOps automation bots

Characteristics

Advantages

  • Can execute tasks

  • Tool integration

  • Workflow automation

  • Reduced manual effort

Limitations

  • Usually limited to predefined workflows

  • Less autonomous

  • Requires human-defined objectives

Analogy

An AI Agent is like a personal assistant who not only answers questions but also performs assigned tasks.


3. What is Agentic AI?

Agentic AI is the next evolution of AI systems.

It combines:

  • Large Language Models (LLMs)

  • Planning

  • Reasoning

  • Memory

  • Goal management

  • Autonomous decision making

Agentic AI does not simply perform tasks.

It determines:

  • What needs to be done

  • How it should be done

  • Which tools should be used

  • When goals are completed

How Agentic AI Works

Agentic systems continuously:

  1. Understand goals.

  2. Break goals into smaller tasks.

  3. Plan execution strategy.

  4. Use tools.

  5. Evaluate results.

  6. Adjust plans.

  7. Continue until objective is achieved.

Example

A manager says:

"Reduce cloud infrastructure costs by 20%."

An Agentic AI system could:

  • Analyze Azure resources

  • Identify underutilized services

  • Review historical usage

  • Create optimization plans

  • Implement approved changes

  • Monitor outcomes

  • Generate savings reports

No step-by-step instructions are required.

Characteristics

Advantages

  • High autonomy

  • Multi-step planning

  • Goal-oriented behavior

  • Continuous improvement

  • Dynamic decision making

Challenges

  • Governance

  • Security

  • Compliance

  • Risk management

  • Explainability

Analogy

Agentic AI is like a senior project manager who receives a goal and independently organizes resources, plans activities, executes tasks, and delivers results.


Key Differences

FeatureGenerative AIAI AgentsAgentic AI
Generates ContentYesYesYes
Uses ToolsLimitedYesYes
Executes ActionsNoYesYes
Multi-Step TasksLimitedModerateAdvanced
Planning AbilityMinimalBasicAdvanced
Decision MakingUser DrivenSemi-AutonomousAutonomous
Goal ManagementNoLimitedYes
MemoryLimitedModeratePersistent
Human InterventionHighMediumLow

Software Development Example

Consider a .NET development team.

Generative AI

Developer asks:

"Generate a .NET Core Web API."

AI creates code.

Done.


AI Agent

Developer asks:

"Generate a .NET Core API and create unit tests."

Agent:

  • Generates code

  • Creates tests

  • Runs tests

  • Produces results


Agentic AI

Developer says:

"Build an Employee Management System."

Agentic AI:

  • Gathers requirements

  • Designs architecture

  • Creates APIs

  • Generates Angular UI

  • Creates SQL scripts

  • Writes tests

  • Deploys to Azure

  • Monitors performance

  • Suggests improvements

All while continuously adapting to project goals.


Architecture Evolution

Stage 1: Generative AI

Prompt → LLM → Response

Stage 2: AI Agent

Prompt → LLM → Tools/APIs → Response

Stage 3: Agentic AI

Goal → Planning → Reasoning → Tools → Execution → Evaluation → Replanning → Goal Completion


Business Impact

Generative AI

Improves individual productivity.

Examples:

  • Content creation

  • Code generation

  • Documentation


AI Agents

Automates business workflows.

Examples:

  • Customer support

  • Report generation

  • Data processing


Agentic AI

Transforms entire business operations.

Examples:

  • Autonomous software development

  • Autonomous IT operations

  • Supply chain optimization

  • Financial analysis and planning


Future of AI

The AI industry is moving from:

Generative AI → AI Agents → Agentic AI

Today, most organizations use Generative AI for assistance.

The next wave focuses on AI Agents that can automate workflows.

The future belongs to Agentic AI systems capable of independently achieving business goals while collaborating with humans.

Organizations that successfully adopt Agentic AI will gain significant advantages in productivity, innovation, and operational efficiency.


Conclusion

Generative AI, AI Agents, and Agentic AI represent different levels of AI capability.

  • Generative AI creates content.

  • AI Agents perform tasks using tools.

  • Agentic AI autonomously plans and achieves goals.

In simple terms:

Generative AI answers questions.

AI Agents perform actions.

Agentic AI achieves objectives.

As AI technology continues to mature, businesses and software teams will increasingly move from using AI as a tool to collaborating with AI as an autonomous digital workforce.

Don't Copy

Protected by Copyscape Online Plagiarism Checker