Posts

Operating System (OS) OR Platform Dependency

In  this case whenever the source code is compiling, it generates machine code (executable code/native code) which will be generate targeting the operating system on which the compilation is made because the responsibility of executing machine code these on the hands of operating system. So machine code generated for one operating system cannot execute on other operating system. For example: C++ on Windows operating system when Source Code Compile then we gets Machine Code (executable file) In the above case because the source code is complied on windows operating system the generated machine code can execute only on windows operating system. Note: java virtual machine (JVM) is also dependent and common language runtime (CLR) is also dependent but intermediate language (IL) & Byte code only two things are independent.

Operating System (OS) OR Platform Independency

In this case whenever we compile the source code it gets converted into intermediated code (semi-finished code) which can be carried to any operating system for execution. They special software takes the responsibility of converting intermediate code into machine code according to operating system. Note: Independency is available under both java and .net languages.

Independency in Object Oriented Programming(OOP’S) languages

In case of Independency in java language: java language on windows operating system when Source Code Compile then we gets Byte Code but special software takes the responsibility of converting byte code into machine code according to operating system. In java the semi finished code is known as Byte Code and the software which converts byte code into machine code is known as Java Virtual Machine is capable of converting byte code into machine code according to the operating system on which the execution takes place. Case of Independency in .NET: .NET on windows operating system when Source Code Compile then we gets machine code. .NET is a collection of languages which allows to write the source code in any .NET language but ones we compile it gets converts into Common Intermediate Language (CIL) can be executed on any machine with the help of Common Language Runtime (CLR) which takes the responsibility of Intermediate Language (IL) code into machine code specific to operating s...

How do you create a stored procedure?

/****** Object:  StoredProcedure [dbo].[Procedure_Syntax]    Script Date: 05/01/2018 12:23:08 PM ******/ SET   ANSI_NULLS   ON GO SET   QUOTED_IDENTIFIER   ON GO -- ============================================= -- Author: <Manoj Kumar,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE   PROCEDURE  [dbo] . [Procedure_Syntax] -- Add the parameters for the stored procedure here AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET   NOCOUNT   ON ;   -- Insert statements for procedure here BEGIN   TRY --BEGIN TRAN SELECT  1 --COMMIT END   TRY BEGIN   CATCH IF   @@TRANCOUNT   >  0 ROLLBACK INSERT   INTO  ErrorLogDetail   ( [Error_Number...

How to Set Default Controller in asp.net MVC 4 & MVC 5 ?

Image
As per my knowledge we can set two way first one is  i) Go to in your project root directory. ii) Go to App_Start folder inside this RouteConfig.cs file open and set as like this RouteConfig.cs And second one is  i) Go to in your project root directory. ii) Go to project property window(Short cut key click on root directory and press  "Alt +Enter") a console window open. iii) Click on Web tab and set as like this Property console

List all employee's names and their managers by manager name using an join

DROP TABLE Employees GO -- STEP 1 CREATE A TABLE NAME AS Employees WITH THREE FIELDS EmpId,EmpName,MgrId CREATE TABLE Employees ( EmpId INT NOT NULL ,EmpName VARCHAR (50) DEFAULT NULL ,MgrId INT DEFAULT NULL , PRIMARY KEY (EmpId) ) -- STEP 2 INSERT INTO VALUES Employees WITH THREE FIELDS EmpId,EmpName,MgrId INSERT INTO Employees ( EmpId ,EmpName ,MgrId ) VALUES ( 1 , 'Manoj' , NULL ); INSERT INTO Employees ( EmpId ,EmpName ,MgrId ) VALUES ( 2 , 'Yogesh' ,1 ); INSERT INTO Employees ( EmpId ,EmpName ,MgrId ) VALUES ( 3 , 'Ajay' , '2' ); INSERT INTO Employees ( EmpId ,EmpName ,MgrId ) VALUES ( 4 , 'Vijay' , '3' ); INSERT INTO Employees ( EmpId ,EmpName ,MgrId ) VALUES ( 5 , 'Vinay' , '4' ); INSE...