1 Introduction - SQL

Embed Size (px)

DESCRIPTION

1 Introduction - SQL

Citation preview

  • Introduction to SQL Server

  • Definition of Database A database is a collection of related information that is organized so that it can easily be accessed, managed, and updated.DBA?

    Definition of DBMS The Database Management System, or DBMS, is a computer software program that is designed as the means of managing all databases that are currently installed on a system hard drive or network.

    Definition of RDBMS RDBMS also provides what DBMS provides but above that it provides relationship integrity. So in short we can sayRDBMS = DBMS + REFERENTIAL INTEGRITY

  • Meaning of SQLSQL 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, procedures, and views

  • DMLDML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database.Examples: SELECT, UPDATE, INSERT statementsDDLDDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database.Examples: CREATE, ALTER, DROP statementsDCLDCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it.Examples: GRANT, REVOKE statementsTCLTCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database.Examples: COMMIT, ROLLBACK statements

  • The History of SQL ServerMicrosoft initially developed SQL Server (a database product that understands the SQL language) with Sybase Corporation for use on the IBM OS/2 platform. Oh what a tangled web we weave! When Microsoft and IBM split, Microsoft abandoned OS/2 in favor of its new network operating system, Windows NT Advanced Server. At that point, Microsoft decided to further develop the SQL Server engine for Windows NT by itself. The resulting product was Microsoft SQL Server 4.2, which was updated to 4.21. After Microsoft and Sybase parted ways, Sybase further developed its database engine to run on Windows NT (Sybase System 10 and now System 11), and Microsoft developed SQL Server 6.0then SQL Server 6.5, which also ran on top of Windows NT. SQL Server 7.0 now runs on Windows NT as well as on Windows 95 and Windows 98.

  • SQL Server builds

    VersionYearRelease Name1.0 ()1989 SQL Server 1.0 4.21() 1993 SQL Server 4.21 6.0 1995 SQL Server 6.0 6.51996 SQL Server 6.5 7.0 1998 SQL Server 7.0 - 1999 SQLServer 7.0 Tools 8.02000SQL Server 2000 8.02000SQL Server 2000 64-bit Edition9.02005SQL Server 2005 10.02008SQL Server 2008

  • SQL Server buildsAll the service packs are cumulative, meaning that each new service pack contains all the fixes that are included with previous service packs and any new fixes

  • SQL Server comparisons