In this article Sagar Jaybhay explain what is View. What is the use of View. what is the advantages of views in SQL server. View The view is saved SQL query or we can call it a virtual table. We have these 2 tables and by joining these 2 tables we want to output. By joining these 2 tables we get the above result. Now we want to create a view, like other create statement like create a table, create procedure we have to create view statement Below is a…Read More
In this article we will understand what is the use of IDisposable interface and how Finalize Dispose pattern will implement in C# By Sagar Jaybhay. Idisposable interface and Finalize Dispose pattern Garbage collector only cleans managed code and if any unmanaged code it finds it doesn’t reclaim its memory so to remove unused objects we need something. In this case, at least we have a responsibility to call these kinds of which free unmanaged code objects. In C# application there is a place where we can manage these unmanaged objects…Read More
In this article you will understand what is Index In SQL Server. How To Create Index and Different Types of Indexes In SQL By Sagar Jaybhay. Also You will leran Unique and Non Unique Index what is the difference between them. Index In SQL Server Index is used to find data from the table quickly. An index is created on views and tables. It is similar to the book index. If you apply index it will improve the query performance drastically. If there is no index then the query engine…Read More
What is the difference between Managed code and Unmanaged code Garbage Collector and Generations in C#? In this article you will understand What is the difference between Managed code and Unmanaged code Garbage Collector and Generations in C# Interview Questions Part 1 – https://sagarjaybhay.com/interview-questions-for-experienced-beginner-net-professionals-series-part-1/ Managed Code: The code which runs under the control of CLR is called a managed code. The code which is written in the .NET framework is managed code. Managed code uses CLR which looks after your applications by managing your application memory handling security and allow…Read More
What is IL code, CLR, CTS, CLS, JIT ? How Exactly Dot Net application compiles and Run? We write our code in C# or VB.net Then we compile our program then the compiler will convert our C# or VB.Net program into half compile code i.e IL (Intermediate Language ). When you click on Exe .net execution engine start then CLR gets this half compile code and gives to JIT A machine can’t understand Intermediate code so JIT goes line by line and convert half compile code into machine-specific instruction. Finally,…Read More
In this article, you will able to understand Temporary table in detail in SQL, with how many different types of Temporary table present in SQL server. What is the difference between these Temporary tables. Temporary Tables In Detail Temporary tables are similar to permanent tables. When you create a permanent table they will create the database you specify and remain in that database permanently until you delete it. Temporary tables get created in tempdb automatically and deleted automatically when no longer used them. There are 2 different types of temporary…Read More
In this article, we will understand User Defined Function in sql server with different types of function in sql server a) Scalar function b) Inline table-valued functions c) Multi-statement table-valued functions User-defined Functions In SQL Server User-defined functions also called UDF. In SQL server there are 3 different types of User-Defined functions Scalar function. Inline table-valued functions. Multi-statement table-valued functions. You can find these functions folder in SQL Server Management studio see below image Scalar Functions The scalar function is a function that may or may not have parameters but…Read More
In this article we will understand case and convert function in sql server in detail and what is the difference between case and convert function in sql server. Previous SQL Articles :- https://sagarjaybhay.com/category/sql-server/ When we want to convert from one data-type to another data-type we have Case and Convert function In SQL server. Cast function in SQL Server This Cast function can convert an expression to the provided datatype. In short, it is used to convert one data type to another data-type. General syntax: In the above function, we will…Read More
What is a Stored Procedure? SQL query you want to reuse again and again save it as stored procedure and call this whenever you need.Read More
Union and Union all are used to combine the result from two tables. It means when you want data from 2 different tables or 2 different queries and wants to combine the result you can use Union and Union All.
In SQL the Union and Union all operators are used to combine the results set into a single result set. But both operators have some key differences.