You are on page 1of 5


Microsoft SQL Server

Microsoft SQL Server

Developer(s) Stable release

Microsoft SQL Server 2008 R2 (10.50.2500.0 Service Pack 1) / July 11, 2011; 7 months ago

Development status Active Operating system Windows XP Windows Server 2003 Windows Vista Windows Server 2008 Windows 7 Windows Server 2008 R2 IA-32, x64 or IA-64 .NET Framework 3.5[1] Available in English, Chinese, French, German, Italian, Japanese, Korean, Portuguese (Brazil), Russian and Spanish[2] Relational database management



Microsoft. Later. About the time Windows NT was released. Sybase and Microsoft parted ways and each pursued its own design and marketing schemes.system License Proprietary software.0 onUnix. be it those on the same computer or those running on another computer across a network (including the Internet). and did not include any direction from Sybase. . True to its name. etc. Later Microsoft SQL Server 4. History Prior to version 7. Sybase changed the name of its product to Adaptive Server Enterprise to avoid confusion with Microsoft SQL Server. and was Microsoft's entry to the enterprise-level database market. to millions of users and computers that access huge amounts of data from the Internet at the same time). VMS. Sybase and Ashton-Tate originally teamed up to create and market the first version named SQL Server Until 1994. Microsoft SQL Server's primary query languages are T-SQL and ANSI SQL.21 for Windows NT was released at the same time as Windows NT 3.3).0 was the first version designed for NT. competing againstOracle. Microsoft negotiated exclusive rights to all versions of SQL Server written for Microsoft operating systems. later.0 the code base for MS SQL Server was sold by Sybase SQL Serverto Website Microsoft SQL Server is a relational database server.2 was shipped around 1992 (available bundled with IBM OS/2version 1. developed by Microsoft: it is a software product whose primary function is to store and retrieve data as requested by other software applications. Microsoft SQL Server 4.0 forOS/2 (about 1989) which was essentially the same as Sybase SQL Server 3. There are at least a dozen different editions of Microsoft SQL Server aimed at different audiences and for different workloads (ranging from small applications that store and retrieve data on the same computer. Microsoft's SQL Server carried three Sybase copyright notices as an indication of its origin. and.Sybase. Microsoft SQL Server v6. IBM.1. bothcommercial and freewareeditions are available www.

. DELETE.BUT.What is SQL?    SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National Standards Institute) standard What Can SQL do?           SQL can execute queries against a database SQL can retrieve data from a database SQL can insert records in a database SQL can update records in a database SQL can delete records from a database SQL can create new databases SQL can create new tables in a database SQL can create stored procedures in a database SQL can create views in a database SQL can set permissions on tables..e. Note: Most of the SQL database programs also have their own proprietary extensions in addition to the SQL standard! Using SQL in Your Web Site To build a web site that shows some data from a database. MySQL) A server-side scripting language. Although SQL is an ANSI (American National Standards Institute) standard. WHERE) in a similar manner.. they all support at least the major commands (such as SELECT. However. procedures. SQL Server. INSERT. MS Access. you will need the following:     An RDBMS database program (i. like PHP or ASP SQL HTML / CSS . and views SQL is a Standard . to be compliant with the ANSI standard. there are many different versions of the SQL language. UPDATE.

specifically Service Broker and Notification Services. and several complementary systems that are packaged with SQL Server 2005. the client IDE tools. and Microsoft Access. We are using MS Access and SQL Server 2000 and we do not have to put a semicolon after each SQL statement.0 and SQL Server 2000 included modifications and extensions to the Sybase code base. a Reporting Server. and for all modern database systems like MS SQL Server. The data in RDBMS is stored in database objects called tables. In the ten years since release of Microsoft's previous SQL Server product (SQL Server 2000). Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server. IBM DB2. advancements have been made in performance. adding support for the IA-64 architecture. MySQL. SQL Server 7. but some database programs force you to use it. By SQL Server 2005 the legacy Sybase code had been completely rewritten. A table is a collection of related data entries and it consists of columns and rows. . The following SQL statement will select all the records in the "Persons" table: SELECT * FROM Persons Semicolon after SQL Statements Some database systems require a semicolon at the end of each SQL statement. SQL Statements Most of the actions we need to perform on a database are done with SQL statements. and several messaging technologies. an OLAP and data mining server (Analysis Services). These include: an ETL tool (SQL Server Integration Services or SSIS).RDBMS RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL. Oracle.

creates a new table ALTER TABLE .deletes a table CREATE INDEX .modifies a database CREATE TABLE .deletes an index .creates an index (search key) DROP INDEX .modifies a table DROP TABLE .updates data in a database DELETE .deletes data from a database INSERT INTO . The most important DDL statements in SQL are:        CREATE DATABASE . specifies links between tables.inserts new data into a database The DDL part of SQL permits database tables to be created or deleted. The query and update commands form the DML part of SQL:     SELECT .SQL DML and DDL :SQL can be divided into two parts: The Data Manipulation Language (DML) and the Data Definition Language (DDL).creates a new database ALTER DATABASE . and imposes constraints between tables.extracts data from a database UPDATE . It also defines indexes (keys).