Difference between data adapter and data reader?


ADO.NET provides two central Data Access Components. They are common across all Databases, be it SQL Server or other competitive databases. Its only the namespace to be used, that differs, while using a Database other than SQL Server.

DataReader 
You can use  DataReader to retrieve a read-only, forward-only stream of data from a database. Results are returned as the query executes, and are stored in the network buffer on the client until you request them using the Read method of the DataReader. Using the DataReader can increase application performance both by retrieving data as soon as it is available, and ?by default? storing only one row at a time in memory, reducing system overhead.

DataAdapter
A DataAdapter is used to retrieve data from a data source and populate tables within a DataSet. The DataAdapter also resolves changes made to the DataSet back to the data source. The DataAdapter uses the Connection object of the .NET Framework data provider to connect to a data source, and it uses Command objects to retrieve data from and resolve changes to the
data source. 

Data Reader
Data Adapter
A DataReader is an object returned from the ExecuteReader method of a DbCommand object. It is a forward only cursor over the rows in the each result set. Using a DataReader, you can access each column of the result set, read all rows of the set, and advance to the next result set if there are more than one.

A DataAdapter is an object that contains four DbCommand objects: one each for SELECT,
INSERT, DELETE and UPDATE commands. It mediates between these commands and a
DataSet though the Fill and Update methods.

Data Reader is an object used in connected Environment.

Data Adapter is an object used in
Disconnected environment using Dataset.
Data reader is an object through which you can read a sequential stream of data. it's a forward only data wherein you cannot go back to read previous data
data set and data adapter object
help us to work in disconnected mode. data set is an in cache memory representation of tables.the data is filled from the data source to the data set thro' the data adapter. once the table in thedataset is modified, the changes are broadcast to the database back thro; the data adapter.




Each .NET Framework data provider included with the .NET Framework has a DbDataReader and a DbDataAdapter object

OLEDB
.NET Framework Data Provider for OLEDB includes an OleDbDataReader and an OleDbDataAdapter object
SQL Server
.NET Framework Data Provider for SQL Server includes a SqlDataReader and a SqlDataAdapter object
ODBC
.NET Framework Data Provider for ODBC includes an OdbcDataReader and an OdbcDataAdapter object
Oracle
.NET Framework Data Provider for Oracle includes an OracleDataReader and an OracleDataAdapter object.



SQL -- OVERVIEW

SQL -- OVERVIEW
What is SQL?
SQL is a language of database, it includes database creation, deletion, fetching rows and modifying rows etc.SQL is Structured Query Language, which is a computer language for storing, manipulating and retrieving data stored in relational database. SQL is the standard language for Relation Database System. All relational database management systems like MySQL, MS Access, Oracle, Sybase, Informix, postgres and SQL Server use SQL as standard database language. Also, they are using different dialects, such as: MS SQL Server using T-SQL,Oracle using PL/SQL, MS Access version of SQL is called JET SQL native format etc.
Why SQL?
ü  Allows users to access data in relational database management systems.
ü  Allows users to describe the data.
ü  Allows to embed within other languages using SQL modules, libraries & pre-compilers.
ü  Allows users to create and drop databases and tables.
ü  Allows users to create view, stored procedure, functions in a database.
ü  Allows users to set permissions on tables, procedures, and views
ü  Allows users to define the data in database and manipulate that data.

History of SQL:
1970 -- Dr. Edgar F. "Ted" Codd of IBM is known as the father of relational databases. He
described a relational model for databases.
1974 -- Structured Query Language appeared.
1978 -- IBM worked to develop Codd's ideas and released a product named System/R.
1986 -- IBM developed the first prototype of relational database and standardized by ANSI.
The first relational database was released by Relational Software and its later becoming
Oracle.

SQL Process:
When you are executing an SQL command for any RDBMS, the system determines the best way to
carry out your request and SQL engine figures out how to interpret the task.
There are various components included in the process. These components are Query Dispatcher,
Optimization Engines, Classic Query Engine and SQL Query Engine, etc. Classic query engine
handles all non-SQL queries but SQL query engine won't handle logical files.

SQL Commands:
The standard SQL commands  are CREATE, SELECT, INSERT,UPDATE, DELETE and DROP. These commands can be classified into  three groups

DDL - Data Definition Language
CREATE
CREATE Creates a new table, a view of a table, or other object in database
ALTER
ALTER Modifies an existing database object, such as a table.
DROP
DROP Deletes an entire table, a view of a table or other object in the
database


DML - Data Manipulation Language
SELECT
SELECT Retrieves certain records from one or more
tables
INSERT
INSERT Creates a record
UPDATE
UPDATE Modifies records
DELETE
DELETE Deletes records

DCL - Data Control Language
GRANT
GRANT Gives a privilege to user
REVOKE
REVOKE Takes back privileges granted from user

What is the difference between a 32bit and 64bit CPU?

What is the difference between a 32bit and 64bit CPU?

The two main categories of processors are 32bit and 64bit. The type of
processor a computer has not only affects it's overall performance, but it
can also dictate what type of software it uses.

32bit processor

64bit processor

The 32bit processor was the primary processor used in all computers until the early 1990s. Intel Pentium processors and early AMD processors were 32bit processors. The Operating System and                software on a computer with a 32bit processor is also 32bit based, in that they work with data units that are 32 bits wide. Windows 95, 98, and XP are all 32bit operating systems that were common on computers with 32bit processors.

TIP: A computer with a 32bit processor cannot have a 64bit version of an operating system installed. It can only have a 32bit

version of an operating system installed.
The 64bit computer has been around since 1961 when IBM created the IBM 7030 Stretch supercomputer. However, it was not
put into use in home computers until the early 2000s. Microsoft released a 64bit version of Windows XP to be used on computers with a 64bit processor. Windows Vista, Windows 7, and Windows 8 also come in 64bit versions. Other software has been
developed that is designed to run on a 64bit
computer, which are 64bit based as well, in that they work with data units that are
64 bits wide.



TIP: A computer with a 64bit processor can have a 64bit or 32bit version of an operating system installed. However, with a 32bit operating system, the 64bit processor would not run at its full capability.

TIP: On a computer with a 64bit processor, you cannot run a 16bit legacy program. Many 32bit programs will work with a 64bit processor and operating system, but some older 32bit programs may not function properly, or at all, due to limited or no compatibility.





Differences between a 32bit and 64bit CPU

A big difference between 32bit processors and 64bit processors is the number of calculations per second they can perform, which affects the speed at which they can complete tasks. 64bit processors can come in dual core, quad core, six core, and eight core versions for home computing. Multiple cores allow for an increased number of calculations per second that can be performed, which can increase the processing power and help make a computer run faster. Software programs that require many calculations to function smoothly can operate faster and more efficiently on the multicore 64bit processors, for the most part.

Another big difference between 32bit processors and 64bit processors is the maximum amount of memory (RAM) that is supported. 32bit computers support a maximum of 34GB of memory, whereas a 64bit computer can support memory amounts over 4 GB. This is important for software programs that are used for graphical design, engineering design or video editing, where many calculations are performed to render images, drawings, and video footage. One thing to note is that 3D graphic programs and games do not benefit much, if at all, from switching to a 64bit computer, unless the program is a 64bit program. A 32bit processor is adequate for any program written for a 32bit processor. In the case of computer games, you'll get a lot more performance by upgrading the video card instead of getting a 64bit processor.


Now 64bit processors are becoming more and more commonplace in home computers. Most manufacturers build computers with 64bit processors due to cheaper prices and because more users are now using 64bit operating systems and programs. Computer parts retailers are offering fewer and fewer 32bit processors and soon may not offer any at all.

Make Ajax 'GET' request with parameters from MVC view

Make Ajax GET request with parameters from MVC view in mvc  
  
   function GetLocationDetailByPincode(pinCode)
                {
        var locationDetail = null;
        var actionUrl = '@Url.Action("GetLocationDetailByPincode", "SiteCommon")';
        debugger;
        $.ajax({
            type: "GET",
            url: actionUrl + "?pinCode=" + pinCode,
            data: null,
            async: false,
            processData: false,
            success: function (response) {
                debugger;
                locationDetail = response;
            }
        });
        return locationDetail;
    }