Microsoft SQL Server - Concepts 2 005

Size: px
Start display at page:

Download "Microsoft SQL Server - Concepts 2 005"

Transcription

1 1 Taught by: Aiman Mobarak Elkhalifa

2 SQL Server Overview SQL Server 2 Overview 2 Taught by: Aiman Mobarak Elkhalifa

3 Microsoft SQL Server 2 is a database platform for large-scale Online Transaction Processing (OLTP) and Online Analytical Processing (OLAP). The following table lists the components that provide various database services in SQL Server 2: Component SQL Server Database Engine SQL Server Analysis Services Description The SQL Server Database Engine is a service that you can use to store, process, and secure your data in a relational or XML format. Starting an instance of SQL Server Database Engine starts the SQL Server service which allows users to connect to the server. SQL Server Database Engine includes features such as: Controlled access Replication Full-text search Relational data management tools XML data management tools Rapid transaction processing for data-consuming applications Outstanding support to sustain availability SQL Server Analysis Services (SSAS) provides Online Analytical Processing (OLAP) and data mining functionality for business intelligence solutions. You can use SSAS to design, create, maintain, and visualize: OLAP multi-dimensional structures that contain aggregated data from relational databases or additional sources. Data mining models that are constructed from data sources by using industrystandard algorithms. SQL Server Reporting Services is an extensible, web-enabled platform that includes server and client components that allow you to: SQL Server Reporting Services SQL Server Notification Services Create, manage, and deploy a variety of reports such as: o Tabular reports o Matrix reports o Graphical reports o Free-form reports Publish reports in a variety of formats Develop report applications Manage security and subscriptions centrally SQL Server Notification Services allow you to develop and deploy applications that generate and send notifications. You can use SQL Server Notification Services to: 3 Taught by: Aiman Mobarak Elkhalifa

4 Generate and send timely, personalized messages to millions of subscribers Deliver messages and notifications to a wide variety of devices SQL Server Integration Services (SSIS) is a platform for building high-performance data integration solutions. SSIS provides tools and programmable objects for extracting, loading, and transforming (ELT) services for data integration and workflow solutions including updating data warehouses, mining data, and processing analytic objects. SSIS includes: SQL Server Integration Services Tools and wizards for building and debugging packages A management service An Integrations service Tasks for performing workflow functions such as: o FTP operations o Executing SQL statements o Sending messages Application programming interfaces for programming the Integration Services object model Data sources and destinations for extracting and loading data Transformers for cleaning, aggregating, merging, and copying data 4 Taught by: Aiman Mobarak Elkhalifa

5 SQL Server Editions SQL Server 2 has different editions to meet the needs of businesses of varying sizes and varying database requirements. The table below describes the various SQL Server 2 editions. Edition SQL Server 2 Enterprise Edition SQL Server 2 Standard Edition SQL Server 2 Workgroup Edition SQL Server 2 Express Edition SQL Server 2 Developer Edition SQL Server 2 Mobile Edition Description Enterprise Edition includes the complete set of enterprise data management and business intelligence features. SQL Server Enterprise offers the highest levels of scalability and availability. Enterprise Edition supports: Data warehousing systems Enterprise online transaction processing (OLAP) Large Web sites Enterprise Edition is optimized to run on x64- and Itanium-based servers and is typically used on a production database server. Standard Edition is an affordable option for small- and medium-sized organizations. It includes the core functionality needed for non-critical e-commerce, data warehousing, and line-ofbusiness solutions. Standard Edition is optimized to run on win32, x64, and Itanium-based servers. Workgroup Edition is the data management solution for small organizations or workgroups within larger entities. It includes all the core database features needed for data management. Workgroup Edition is available only on a 32-bit platform. Express Edition is a replacement for Microsoft Desktop Engine (MSDE). SQL Server Express is free and can be redistributed (subject to agreement). It functions as the client database, as well as a basic server database. Express Edition is available only on a 32-bit platform. Developer Edition is designed for application developers. It includes all the functionality of Enterprise Edition. License restrictions limit the use of this version to application development and testing only. It is not for use as a production server. Developer Edition runs on win32, x64, and Itanium-based servers. Mobile Edition allows organizations to extend enterprise data management and business intelligence capabilities to mobile devices. Mobile Edition can replicate to a SQL 2 Enterprise or Standard Edition environment. Mobile Edition is only available on a 32-bit platform. 5 Taught by: Aiman Mobarak Elkhalifa

6 Ma na gem ent T ool s SQL Tool Facts 6 Taught by: Aiman Mobarak Elkhalifa

7 SQL Server 2 has enhanced tools for easier, more efficient management. SQL Server 2 tools can manage all features of SQL Server 2000; however, you cannot use SQL Server 2000 tools to manage SQL Server 2. When SQL Server 2 and SQL Server 2000 are installed on the same computer, both of their respective tool sets remain fully functional. The following table identifies SQL Server 2 management tools and their respective features. It also identifies any SQL Server 2000 tools that have been replaced. Tool SQL Server Management Studio Description SQL Server Management Studio provides an integrated environment to manage a SQL Server implementation. Using its graphical interface and script editors, you can use SQL Server Management Studio to perform such tasks as: Create databases, tables, indexes, views, etc. Perform database maintenance Perform server maintenance on servers Manage security Register multiple servers Build SQL Server projects SQL Server Business Intelligence Development Studio SQL Server Management Studio replaces the following tools in previous versions of SQL Server: SQL Server Enterprise Manager SQL Query Analyzer Analysis Manager SQL Server Business Intelligence Development Studio provides tools, wizards, and templates to enable organizations to gather business intelligence and create business solutions. It integrates into Microsoft Visual Studio with project types specifically designed for business intelligence. The primary components of SQL Server Business Intelligence Development Studio are: Analysis Services Integration Services SQL Server Configuration Manager Reporting Services SQL Server Configuration Manager enables you to manage SQL Server services. SQL Server Configuration Manager is a Microsoft Management Console snap-in that is available from the Start menu, or can be added to any other Microsoft Management Console display. Tasks you can perform with SQL Server Configuration Manager are: 7 Taught by: Aiman Mobarak Elkhalifa

8 Change the account used by the SQL Server or SQL Server Agent services. Configure network protocols. Manage network connectivity configuration from SQL Server client computers. SQL Server Configuration Manager replaces the following SQL Server tools: Server Network Utility Client Network Utility Service Manager SQL Server Profiler provides a graphical user interface to SQL Trace. It is a valuable tool for analyzing database performance issues. You can use it for: SQL Server Profiler Monitoring an instance of the SQL Server Database Engine or Analysis Services. Analyzing query patterns. Capturing event data to a file or table. Surface area refers to the exposure of the SQL System by enabled components, services, protocols, and open ports. Using the SQL Server Surface Area Configuration Tool you can: SQL Server Surface Area Configuration Tool Database Engine Tuning Advisor Enable and disable features, services, and network protocols for remote connections to help reduce the surface area of your SQL Server installations. Export SQL surface area settings created using SQL Server Surface Area Configuration Tool to another server. The SQL Server Surface Area Configuration Tool works in conjunction with the Surface Area Configuration (SAC) utility to export settings. The Database Engine Tuning Advisor analyzes the performance effects of workloads ran against one or more databases and provides recommendations to improve performance. Tuning your databases with Database Engine Tuning Advisor requires no expertise in database structure, workloads, or the internal workings of SQL Server. Database Engine Tuning Advisor provides two interfaces: A standalone graphical user interface tool for tuning databases and for 8 Taught by: Aiman Mobarak Elkhalifa

9 viewing tuning recommendations and reports. A command-line utility program, dta.exe, for Database Engine Tuning Advisor functionality in software programs and scripts. Report Manager is a Web-based report access and management tool that you can use to manage a report server over an HTTP connection. You can use Report Manager to: Report Manager View, search, and subscribe to reports. Configure site properties and defaults. Configure role-based security that determines access to items and operations. Configure report execution properties, report history, and report parameters. Create report models. Create linked reports to reuse and repurpose an existing report in different ways. 9 Taught by: Aiman Mobarak Elkhalifa

10 Database Concepts Relational Database Concepts Relational databases apply mathematical theories to efficiently organize and retrieve data within a database. Database information is stored in tables, which are made up of rows and columns. The following graphic shows several components of a database. 10 Taught by: Aiman Mobarak Elkhalifa

11 The following table describes common relational database components. Component Table Description A table is a collection or set of related data within a database and is known as a database object. A database can contain one or more tables. Data within the table is organized as follows: The table itself defines an object class. Data within the table is a collection of discrete items that share common characteristics. In the example above, the table contains data related to employees. Rows represent unique records in the database. In the above example, each row identifies a distinct employee. Columns represent fields within the record. Columns identify attributes that describe, define, or are associated with the record. In this example, each employee has common attributes of EmployeeID, LastName, FirstName, and Extension. Primary Key Foreign key Database Objects Values for each row and column identify the exact characteristics of each record. For example, the LastName of the second employee in the table is King. A primary key is a column guaranteed to have a unique value for each row in a table. A primary key can be multiple columns which together have a unique value. In the table above, the EmployeeID column is the primary key. The primary key column in each row identified will contain a unique ID number for each employee. A foreign key defines the relationship and correspondence between a column in one table and primary key in another table. For example, another table might use the Extension value as its primary key. In this situation, the Extension value would be a foreign key for the table in the example. The database organizes logical entities into database objects such as tables, indexes, views, and other objects. Tables, indexes, text data, ntext data, or image data are associated with a filegroup. 11 Taught by: Aiman Mobarak Elkhalifa

12 The data that is part of the database object is then striped across all physical files in the filegroup. In addition to the database itself, a relational database system includes a Database Management System (DBMS). The role of the DBMS is to define the database structure, maintain relationships within the database, control data access and modification, interact with physical server resources, and define data recovery methods. The following table describes several common features of a DBMS. Feature Queries Searching and Indexing Locking Transactions Description A query is a statement containing one or more commands for a database. The commands typically are a request to view or modify data. Queries are: Written in a structured language that is understood by the DBMS. For example, SQL server uses Transact-SQL as the query language. Submitted by client applications to the DBMS. For example, database management tools are client applications that connect to and submit queries to the DBMS. Executed by the DBMS and returns the result to the client. A search is performed by the DBMS for information requested in a query. The data might be stored in multiple rows within a table or across tables or databases. An index is used by a DBMS to organize data for frequent searches to improve performance and data access. Locking is used to coordinate changes in data management systems that support multiple user access to a single database. At any time, the host system can have multiple clients connected, all accessing different portions of the same database. Locking: Prevents multiple users from changing the same piece of data at the same time. Allows only one client at a time to make changes to a table or row. Other clients will be unable to modify the data while it is locked, although in many cases they will still be able to see it while it is locked. Is released after the changes are made, at which time other clients can lock the data for modification. A transaction is a group of actions that are treated as a single unit. Transactions ensure data integrity. The success of the entire transaction depends on the success of each of the actions that are part of a transaction. None of the changes are made if errors are encountered in any part of the transaction. When using transactions: The application signals the start of the transaction. The application submits the series of actions that are part of the transaction. 12 Taught by: Aiman Mobarak Elkhalifa

13 Each action is executed by the DBMS. All actions performed by the application are considered part of the same transaction. The application signals the end of the transaction. If the end of the transaction has been reached without error, the transaction is committed and the changes become permanent. If there is an error during the transaction, the DBMS rolls back the changes, putting the database in its original (unchanged) state. Transactions are particularly useful in processing changes that are made across databases or across servers. For example, if you were transferring money from one bank account to another account, the transaction might involve servers at two different banks. The transaction would not be completed unless the withdrawal from one account and the deposit into the other account were both successful. SQL Databases SQL Server has two types of databases: System databases are used to store information about SQL Server and are essential for the operation of a server instance. User databases are the databases created by users for storing their unique data. The following table identifies specific databases used by SQL Server. 13 Taught by: Aiman Mobarak Elkhalifa

14 Database Type System User Database Name master model msdb resource (RDB) tempdb Distribution Description The master database records all system-level information for the SQL Server system, including the existence of all other databases and the location of their files, login account information, and system configuration settings. A backup of this database should always be available. The model database is used as the template for all new databases. A backup of this database should always be available. The msdb database is used by SQL Server Agent for recording operators and scheduling jobs and alerts. This database also contains backup and restore history tables. A backup of this database should always be available. The resource database contains all objects that ship with SQL Server. You must use a filebased or disk-based backup for this database and you cannot restore the file using SQL Server restore. The tempdb database is a temporary database that is used as a holding area for all temporary tables, stored procedures, and temporary worktables used by the relational database engine. This database is recreated each time SQL Server is started no data is saved from one session to another. The distribution database stores metadata and history data used in replication. A distribution database is not created during installation instead, it is created when SQL Server is configured for replication activities. In some instances, multiple distribution databases may be used. A backup of this database should always be available. User databases are created for use in your organization and hold data that you supply. A sample user database, AdventureWorks, is provided during installation as a learning tool and model for creating user databases. AdventureWorks contains sample sales data for a fictitious multinational manufacturing company. These databases and their tables are frequently used as examples in SQL Server Books Online. Database Objects The various components of a database are known as objects. Databases can contain the following objects: Object Tables Views Description Database tables typically consist of columns and rows of data. The rows represent unique records in the database, while the columns represent fields within the record. Views identify the specific data that is displayed at any given time. Views can: 14 Taught by: Aiman Mobarak Elkhalifa

15 Specify that only certain rows or columns are visible. Aggregate (summarize) data. Collect data from more than one table and present it as though it were from a single table. A database index is a structured list of the values in the table or view and the row location of the value. Indexes Stored procedures Constraints Defaults Roles Assemblies Triggers User-defined data types User-defined functions Indexes can be clustered, where the data is sorted and stored based on the index key. A nonclustered index is separate from the data rows. Row locators in the index point to the location of the data in either a clustered index key or in a heap. A table that is created with no index is called a heap, and the data rows are stored in no particular order. A stored procedure is a group of Transact-SQL statements compiled into a single execution plan. Stored procedures are typically used to achieve consistent implementation, improved performance, and a single point of control for commonly performed tasks. Constraints allow you to define the rules for the values allowed in columns. While there are other methods of enforcing data integrity (i.e., triggers, rules, and defaults), using constraints is the standard method for enforcing data integrity. Defaults specify the values to be used in a column when no value is specified when a row is inserted. A role is a profile that defines the security access controls and permissions. Assigning a user to a role, gives that user the security privileges for the role. An assembly is a.dll file created using.net Framework common language runtime (CLR). Assemblies are used in an instance of SQL Server to deploy functions, stored procedures, triggers, user-defined aggregates, and user-defined types. Triggers are a special class of stored procedures defined to execute automatically whenever an UPDATE, INSERT, or DELETE statement is issued against a table or view. Tables can have multiple triggers. Triggers can be used to enforce business rules and automate processing for a company. User-defined data types are based on pre-defined SQL Server 2 data types. Userdefined data types are typically used when columns holding similar classes of data must have the same base data type, length, and nullability. User-defined data types are not supported in table variables. User-defined functions are uniquely-named subroutines made up of one or more Transact-SQL statements customized by the user for a specific purpose. Additional objects are used by Analysis Services. The following table lists these objects. 15 Taught by: Aiman Mobarak Elkhalifa

16 Object Data Sources Data Source Views Cubes Dimensions Description A data source is used by Analysis Services to identify the connection string that defines how Analysis Services connects to a physical data store using a managed Microsoft.NET Framework or native OLE DB provider. A data source view is a metadata definition of the schema objects used by Analysis Services. These schema elements are used by Unified Dimensional Model (UDM) and by the mining structures. A cube is an arrangement of data in an array that allows for fast analysis. The arrangement of data into cubes avoids a limitation of relational databases which are not well suited for analysis of large amounts of data almost instantaneously. A database dimension is a collection of attributes. These attributes provide information about fact data in one or more cubes. The attributes are bound to one or more columns in one or more tables in a data source view. A data mining model defines the algorithm used for data mining and how each column is used by the model. A mining model inherits the values of the properties that are Mining Model defined by the mining structure. The model can use all the columns that the mining structure contains or a subset of the columns. Mining Structures Roles Assemblies Measures Measure groups Hierarchies A mining structure defines the data domain from which mining models are built. A single mining structure can contain multiple mining models that share the same domain. A role is a profile that defines the security access controls and permissions. Assigning a user to a role, gives that user the security privileges for the role. An assembly is a.dll file created using.net Framework common language runtime (CLR). Assemblies are used in an instance of SQL Server to deploy functions, stored procedures, triggers, user-defined aggregates, and user-defined types. A measure represents a column of data (usually numeric) that can be aggregated -- processed as a set of values rather than as individual data values. A measure group contains multiple measures that associate dimensions with measures. You can also use measure groups for measures that have distinct count as their aggregation behavior. You can optimize aggregation processing by putting each distinct count measure into its own measure group. A hierarchy establishes the priority of entities used. Hierarchies can be established for attributes, data types, dimensions, cubes, etc. 16 Taught by: Aiman Mobarak Elkhalifa

17 Data Type Facts As you define tables and other database objects and as you construct Transact SQL statements, the data type is identified by using a keyword. The following table lists many common data type keywords. Note: This list is not comprehensive. Class Keyword Description Integer bigint int Integer (whole number) data from (-9,223,372,036,854,775,808) through (9,223,372,036,854,775,807). Integer (whole number) data from (-2,147,483,648) through (2,147,483,647). smallint Integer data from (-32,768) through (32,767). tinyint Integer data from 0 through Taught by: Aiman Mobarak Elkhalifa

18 Bit, Decimal, Numeric, and Approximate Numerics Money Date/Time Character Strings and Characters bit decimal numeric float real money smallmoney datetime smalldatetime char varchar text nchar nvarchar ntext Integer data with either a 1 or 0 value. Fixed precision and scale numeric data from through Fixed precision and scale numeric data from through Floating precision number data with the following valid values: -1.79E through -2.23E - 308, 0 and 2.23E through 1.79E Floating precision number data with the following valid values: -3.40E + 38 through -1.18E - 38, 0 and 1.18E - 38 through 3.40E Monetary data values from (-922,337,203,685, ) through (+922,337,203,685, ), with accuracy to a ten-thousandth of a monetary unit. Monetary data values from -214, through +214, , with accuracy to a ten-thousandth of a monetary unit. Date and time data from January 1, 1753, through December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds. Date and time data from January 1, 1900, through June 6, 2079, with an accuracy of one minute. Fixed-length non-unicode character data with a maximum length of 8,000 characters. Variable-length non-unicode data with a maximum of 8,000 characters. Variable-length non-unicode data with a maximum length of (2,147,483,647) Fixed-length Unicode data with a maximum length of 4,000 characters. Variable-length Unicode data with a maximum length of 4,000 characters. sysname is a system-supplied user-defined data type that is functionally equivalent to nvarchar(128) and is used to reference database object names. Variable-length Unicode data with a maximum length of (1,073,741,823) characters. 18 Taught by: Aiman Mobarak Elkhalifa

19 Binary Strings Other Data Types binary varbinary image cursor sql_variant table timestamp Fixed-length binary data with a maximum length of 8,000 bytes. Variable-length binary data with a maximum length of 8,000 bytes. Variable-length binary data with a maximum length of (2,147,483,647) bytes. A reference to a cursor. A data type that stores values of various SQL Server-supported data types, except text, ntext, timestamp, and sql_variant. A special data type used to store a result set for later processing. A database-wide unique number that gets updated every time a row gets updated. uniqueidentifier A globally unique identifier (GUID). In addition to the system-supplied data types, user-defined data types, which are based on system data type, can be created for specific needs. When you create a column, you can specify the maximum size of the data type using precision and scale. Precision is the total number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number has a precision of 5 and a scale of 2. A column created as a numeric data type containing values similar to would be designated as Col_name (5,2). A column created as an integer containing values similar to 5324 would be designated as Col_name (4). Note: The primary and foreign keys of a table must be the same data type. Transact-SQL Overview 19 Taught by: Aiman Mobarak Elkhalifa

20 Query Facts A query is a request for data from a database. Client computers, whether running on the same computer as SQL Server 2 or on a separate client computer, do not access SQL Server directly. Instead, they use applications written to access the data stored in SQL Server databases. Client applications submit queries to SQL Server using one of the following formats: Format Transact-SQL Extensible Markup Language (XML) Multidimensional Expressions Description The primary database query and programming language used by SQL Server. A hypertext programming language used to return data from queries and stored procedures using URLs or templates over HTTP. Also used to insert, delete, and update database values. The results from these queries are returned as XML documents. Syntax used to define multidimensional objects and queries and 20 Taught by: Aiman Mobarak Elkhalifa

21 (MDX) OLE DB and ODBC APIs ActiveX Data Objects (ADO) and ActiveX Data Objects (Multidimensional) (ADO MD) English Query manipulate this data in an OLAP database. Programming interfaces used to send Transact-SQL commands to a database. ADO wraps OLE DB for use in other programming languages; used to access data in OLTP databases. ADO MD is a language-independent set of object-based data access interfaces optimized for multidimensional data applications; used to access data in Analysis Services data cubes. Application type using an automation API that lets users use natural language questions instead of more complex queries to access database information. Transact-SQL statements are a common way to interact with SQL server, view or modify data, or change the configuration of the server. Queries are built using a series of statements, much like lines of programming code. Even when you use a graphical management tool or submit queries using another supported language, the queries are translated into Transact-SQL statements and then executed. SQL Server 2 uses the SQL-92 standard. Queries can be simple or quite complex. The following example shows a simple query statement that selects all columns from the Customers table for rows that match USA as the country: SELECT * FROM Customers WHERE Country = 'USA' Note: The example shown above is a single query statement. Statements can be written all on one line or broken into several lines as shown above. When SQL server parses the query, it identifies all elements that are part of the statement and executes one statement at a time. Query statements can contain the following elements: Component Description Commands perform functions on the server or the database. Each statement begins with a command. Four common commands are: Commands Keywords SELECT retrieves rows from a table. UPDATE changes data in a table. INSERT adds a row to a table or a view. DELETE removes rows from a table. Keywords are commands or command parameters used by SQL. In the example shown above, the FROM and WHERE are keywords. 21 Taught by: Aiman Mobarak Elkhalifa

22 Identifiers Functions Note: Within documentation, keywords are written in all capital letters. When you write Transact-SQL statements, case does not matter. Identifiers are names of objects such as the server, a database, a table, or an index. In the example above, Customers is an identifier that identifies the table used within the query. Functions are collections of commands defined on the SQL server. When functions are executed, they return a value. SQL Server comes with pre-defined functions (called system functions), or you can define your own functions. Examples of functions include: DB_ID and DB_NAME return the database ID or name. OBJECT_ID and OBJECT_NAME return the object ID or name. COL_NAME returns the column name. COL_LENGTH returns the length of a column. INDEX_COL returns an index column name. Expressions Operators Datatypes Comments When calling functions, follow the function name with parenthesis ( ). Inside include any parameters that must be passed to the function. For example: The SELECT SUSER_NAME() statement returns the currently logged on user. The SELECT DB_ID('AdventureWorks') statement returns the ID of the AdventureWorks database. An expression is a combination of identifiers, values, and operators that SQL server can evaluate to get a result. In example above, both * and Country = 'USA' are expressions. Operators perform actions on data. For example, you can use arithmetic operators to perform mathematical operations on the data. Datatypes define the format of the data used by table columns or variables. Each data type is identified by a keyword. In some cases, you have to identify the data type of any variables used within the statement. Comments are nonexecuting remarks in a statement. Comments are indicated in one of two ways: Double hyphens ( -- ). Any text on a line following the double hyphen will not be included as part of the statement. Text on a new line that is not preceded by the double hyphens is not commented. Forward slash-asterisk pairs ( /*... */ ). Any text inside the character pair will not be executed, even if it spans multiple lines. For example, the following statement: --get the list of names SELECT Firstname /*, Lastname */ FROM Customers 22 Taught by: Aiman Mobarak Elkhalifa

23 WHERE Language = 'Spanish' --test for language With the comments removed becomes: SELECT Firstname FROM Customers WHERE Language = 'Spanish' Be aware of the following when working with command syntax in documentation: Keywords are in all capital letters. Italics indicate identifiers, expressions, or functions. Items in brackets [ ] are optional. Do not type the brackets. Item in braces { } are required. Do not type the braces. Bolded items indicate items that must be typed exactly as shown such as databases, tables, stored procedures, and utilities. Underline indicates the default value applied. Vertical bar separates keywords enclosed in brackets or braces. You select only one. [,...n] indicates the preceding item can be repeated n number of times, separated by commas. [...n] indicates the preceding item can be repeated n number of times, separated by blank spaces. <label>::= specifies the name for a block of syntax. Batch Facts A batch is a set of Transact-SQL statements that are executed together. For example, when you submit a query from SQL Server Management Studio, the statements in the query are processed as a batch. SQL server processes the batch as follows: 1. The batch statements are compiled into a single executable unit called an execution plan. During compilation, the syntax of each statement is checked. If any statement has a syntax error, the execution plan cannot be created and none of the statements are executed. 2. After the execution plan is created, each statement in the batch is executed one at a time, in order. If a runtime error occurs, one of the following actions may be taken: o o Most run-time statements stop the current statement and the statements that follow it. Some run-time errors, such as constraint violations, stop the statement with the runtime error and execute the remaining statements. 3. The statements executed before the runtime error are not affected unless the batch is a transaction and the error causes the transaction to be rolled back. 4. SQL Server 2 provides statement-level recompilation--the statement triggering a recompilation is recompiled and not the whole batch. You can save groups of SQL statements for later use by using one of the following methods: 23 Taught by: Aiman Mobarak Elkhalifa

24 Method Scripts Stored Procedures Description A script is a series of Transact-SQL statements stored in a file. The file can be used as input to the sqlcmd utility or SQL Server Management Studio Code editor. The utilities then execute the Transact-SQL statements stored in the file. A stored procedure is a set of defined precompiled SQL statements stored on the server. When you create the stored procedure, the execution plan is created and saved. When you call the stored procedure, the saved execution plan is run. The stored procedure can accept parameters, and can return result sets, return codes, and output parameters to the calling application. Key facts about stored procedures are: SQL server comes with many pre-defined stored procedures (called system stored procedures) for common tasks. System stored procedures begin with sp_. Common system stored procedures include: o sp_helpdb returns information about databases on the server. o sp_help returns a list of objects for the current database. o sp_helpindex obj_name returns a list of indexes for the object. You can also define your own custom stored procedures. Do not name stored procedures you create beginning with sp_. Use another unique prefix that will allow you to distinguish between system stored procedures and the ones you create. Triggers User-defined functions To run a stored procedure, use the EXECUTE (or EXEC) command. A trigger is a special type of stored procedure that is not called directly by a user. When the trigger is created, it is defined to fire when a specific type of data modification (such as when a DELETE action takes place) is made against a specific table or column. A user-defined function is a routine that you can create to accept parameters, perform a task, and return a result set. User-defined functions are stored in the database as reusable code. A table valued function is a special type of user-defined function that returns results formatted in a table. The advantage of using table-valued user-defined functions is that they can be referenced in a FROM clause of a Transact-SQL transaction whereas stored procedures cannot. Also, you can use table-valued user-defined functions to perform more complex logic than views. Keep in mind the following when working with batches of commands: If a stored procedure is the first or only statement in a batch, you can omit the EXECUTE statement. Some statements must be the first statement in a batch and cannot follow other statements in a batch. These include CREATE DEFAULT, CREATE PROCEDURE, CREATE RULE, 24 Taught by: Aiman Mobarak Elkhalifa

25 CREATE TRIGGER, and CREATE VIEW. All other statements that follow in that batch will be interpreted as part of the definition of the first CREATE statement. You cannot alter a table and then reference the new columns in the same batch. You can write scripts or create sets of statements in SQL Server Management Studio that include multiple batches. Use the GO command to signal the end of a batch. Batch files may contain credentials stored in plain text. Credentials may be echoed to the user's screen during batch execution. When you look up stored procedures in the SQL documentation, you will see something like the following: sp_defaultlanguage [@loginame = ] 'login' [,[@language = ] 'language'] Be aware of the following when working with commands and documentation: Items in brackets [ ] are optional. In this example, only the 'login' parameter is required. Parameters are values passed to the program. Parameters can be identified by a name and value (such = 'login'), or the parameter name can be omitted. If you omit the parameter name, you must enter parameters in the order shown. SQL S er ver Installa tio n 25 Taught by: Aiman Mobarak Elkhalifa

26 Installation Requirements SQL Server 2 must run on a computer that has a version of the Windows operating system installed. The following table summarizes the operating system requirements for a 32-bit installation of SQL Server. Windows Version(s) Windows 2003 Web Edition SP1 Windows XP Home Edition SP2 Windows 2000 Professional Edition SP4 Windows XP Professional Edition SP2 Windows XP Media Edition SP2 Windows XP Tablet Edition SP2 Windows 2000 Server SP4 Windows 2000 Advanced Server SP4 Windows 2000 Datacenter Edition SP4 Windows 2003 Server SP1 Windows 2003 R2 Windows 2003 Datacenter Edition SP1 Windows Small Business Server 2003 Standard Edition SP1 Windows Small Business Server 2003 Premium Edition SP1 Supported SQL Version(s) Express Edition and Express with Advanced Services Developer Edition Express Edition and Express with Advanced Services Developer Edition Standard Edition Workgroup Edition Express Edition and Express with Advanced Services Evaluation Edition Enterprise Edition Developer Edition Standard Edition Workgroup Edition Express Edition and Express with Advanced Services Evaluation Edition 26 Taught by: Aiman Mobarak Elkhalifa

27 Windows Bit X64 Standard Edition SP1 1 Windows Bit X64 Datacenter Edition SP1 1 Windows Bit X64 Enterprise Edition SP1 1 Windows XP x64 Professional You can install SQL Server on Windows on Windows (WOW64) 32-bit subsystem of a 64-bit server. Developer Edition Standard Edition Workgroup Edition Express Edition and Express with Advanced Services The following table summarizes the operating system requirements for a 64-bit installation of SQL Server. Windows Version(s) Windows Bit Itanium Datacenter Edition SP1 Windows Bit Itanium Enterprise Edition SP1 Supported SQL Version(s) Enterprise Edition (IA64) Developer Edition (IA64) Standard Edition (IA64) Evaluation Edition (IA64) Enterprise Edition (X64) Windows Bit X64 Standard Edition SP1 5 Developer Edition (X64) Windows Bit X64 Datacenter Edition Standard Edition (X64) SP1 5 Express Edition and Express with Advanced Windows Bit X64 Enterprise Edition SP1 5 Services Windows XP x64 Professional 2003 Evaluation Edition (X64) Other requirements for a SQL Server 2 installation are identified in the following table. Component Client Software Installation Software Supported SQL Version(s) Client software requirements are: SQL Server 2 32-bit client components can be installed on Windows 2000 Professional SP4 or later. SQL Server 2 64-bit client components can be installed on Windows 2003 (64-bit). SQL Server Setup requires: Microsoft Windows Installer 3.1 or later and Microsoft Data Access Components (MDAC) 2.8 SP1 or later. Microsoft Windows.NET Framework 2.0. (Automatically installed by SQL Server 2). Microsoft SQL Server Native Client. (Automatically installed by SQL 27 Taught by: Aiman Mobarak Elkhalifa

28 Clustering Programming Native Web Service (SOAP/HTTP) Server 2). Microsoft SQL Server Setup support files. (Automatically installed by SQL Server 2). Failover clusters require Microsoft Cluster Server (MSCS) on at least one node of the server cluster. MSCS must be installed on a hardware configuration that has been tested for compatibility with the MSCS software. Integration Services (SSIS) programming, Analysis Management Objects (AMO), and ADOMD.NET require Windows XP, Windows 2000, or Windows Windows 2003 is required for Native Web Service (SOAP/HTTP). SQL Server (32-Bit and 64-Bit) requires the following hardware: Hardware Internet Software Monitor - SQL Server graphical tools require VGA or higher resolution: at least 1,024x768 pixel resolution. Pointing Device - A Microsoft mouse or compatible pointing device is required. CD or DVD Drive - A CD or DVD drive, as appropriate, is required for installation from CD or DVD media. Cluster Hardware Requirements - On both 32-bit and 64-bit platforms, up to eight-node clusters are supported. Processor (32-bit) - Pentium III-compatible processor or higher. Processor (64-bit) - exact requirements vary by edition. General requirements are: IA64 minimum; Itanium processor or higher; X64 minimum: AMD Opteron, AMD Athlon 64, Intel Xeon with Intel EM64T support, Intel Pentium IV with EM64T support. Processor speed 1 GHz or higher recommended. RAM - 1 GB recommended. For SQL Server 2 Express Edition, 512 MB or higher is recommended. Hard disk space GB. The following Internet software is required: Microsoft Internet Explorer 6.0 SP1 or later is required for all installations of SQL Server 2. Internet Explorer 4.01 with Service Pack 2 or higher is required when you are installing client components only and you are connecting to a server that does not require encryption. Internet Information Services (IIS) 5.0 or later is required for Reporting Services (SSRS) installations. ASP.NET 2.0 is required for Reporting Services. When installing Reporting Services, SQL Server Setup will enable ASP.NET if it is not already enabled. 28 Taught by: Aiman Mobarak Elkhalifa

29 The 64-bit version of ASP.NET must be installed for a 64-bit installation of Reporting Services on a 64-bit server. For (32-bit) installations of Reporting Services on the 32-bit subsystem (WOW64) of a 64-bit server, the 32-bit version of ASP.NET must be installed. Installation Facts Microsoft SQL Server 2 Setup provides an integrated environment in which you can install a new instance of SQL Server, upgrade existing instances, or perform maintenance tasks. As part of the installation process: A system configuration check ensures that the computer has all required components for the SQL Server installation. You can create a report that identifies the components required for installation and the results of the configuration check. SQL Server Component Update installs the following components required for SQL Server Setup: o.net Framework 2.0. o Microsoft SQL Native Client - client network tool used by applications interfacing with SQL Server and the SQL Server Management Tools. o Microsoft SQL Server 2 Setup Support Files. By default, the SQL service runs under the MSSQLAct user account. The following table identifies permissions required for installation based on the installation type. Type of installation Installing on the local computer Installing on a remote share Installing a failover cluster Permissions Administrator permission on the computer on which SQL Server is being installed. Domain account with read and execute permissions on the remote share. Local administrator with permission to logon as a service and act as part of the operating system for all nodes of the virtual server. Before installation, select the method you will use for the installation. With a Standard installation, you are physically present, entering your selections directly during the installation process. This type of installation allows you to select between a typical and a custom installation, and make selections during the installation regarding specific components to be installed. You can run the installation directly at the command prompt or by using an.ini file to specify installation options. With SQL Server 2, you can use scripts to perform remote installations. 29 Taught by: Aiman Mobarak Elkhalifa

30 During the installation process, you will need to be prepared to make the following choices: Installation Step Components Instance Description You use the same setup program to install SQL Server as well as additional services and client components. During installation, you can choose to install any of the following components: SQL Server Database Services Analysis Services Reporting Services Notification Services Integration Services Client components Management tools SQL Server Books Online Sample databases, code, and applications For example, to install the workstation components and management tools, run the setup program and choose only those components (do not install the database engine or other services). You can install multiple instances (occurrences or installations) of SQL Server 2 on the same computer. Each instance will operate independently, with its own program and data files. All instances on a computer also share a set of common files. Each instance is identified as either the default or a named instance. The default instance is called MSSQLServer. Only one default instance per server is allowed. Service Accounts and Services A named instance is identified by a custom instance name. Multiple named instances may run on the same server, together with the default instance. SQL Server runs as a set of services. As part of the installation process, you identify the user account that will be used for running the various services. By default, you configure a single service account to be used by all services. When configuring the service account, you have the following options: Domain user account a dedicated domain user account, created exclusively for the SQL Server and SQL Server Agent services. This account allows communication with other SQL Server installations, Microsoft Exchange Servers, and network resources within the domain environment. This account needs special access rights on the local computer, but does not need to be a domain administrator. Built-in system account the two types of built-in system accounts are: o Local Service account has the same level of access to resources and 30 Taught by: Aiman Mobarak Elkhalifa

31 o objects as members of the Users group. Services using this account access network resources as a null session with no credentials. This account has no network access rights. Network Service account Microsoft recommends that you do not use this account. You can also configure the following service options during setup: By default, all services use the same service account. During setup, you can configure each service to use a different user account. You can selectively identify the services that will start up automatically following the SQL Server installation. The SQL Server authentication mode controls how SQL server validates server login credentials. You configure the server to use one of two authentication modes. Authentication Mode Collation Setting Windows Authentication Mode Only users who have been previously authenticated by the Windows operating system will be able to connect to SQL Server 2. This is the recommended mode. Mixed Mode Users connecting through a Microsoft Windows account will be authenticated by the Windows operating system; other users will use SQL Server Authentication which will require them to enter a username and password to login to SQL Server 2. The collation type defines the language-based rules for your locale that will determine how Unicode and non-unicode data (which is specific to a particular language) is sorted based on character sequence, character width, case-sensitivity, accent marks, kana character types, etc. It also determines the rules for comparing Unicode and non-unicode data. The collation setting you choose during installation becomes the default collation type for all databases and tables. Choose the collation type for the server based on the language and region by most users. When you create a database, you can choose a collation setting that is different from the default setting. To change the server default setting after installation, run Setup.exe with the REBUILDDATABASE option. All databases that are created without specifying the Windows collation name are assigned Latin1_General, the default collation. Security for your database is important. Consider the following to protect your data and your network: 31 Taught by: Aiman Mobarak Elkhalifa

32 Enhance physical security for servers and computers on which databases reside. Use firewalls between the server and the Internet. Create service accounts with least privileges. Require strong passwords. Implement strict ACL control. Disable server message block (SMB), NetBIOS, and ports used by NetBIOS. It is especially important to disable these protocols and ports on servers. Never install databases on computer connected directly to the Internet. Whenever possible, do not install SQL Server on a domain controller. Ensure that all application backdoors are closed and default passwords are changed or disabled. Maintain physical access control for device backdoors. Use Windows authentication mode. 32 Taught by: Aiman Mobarak Elkhalifa

33 Databases 33 Taught by: Aiman Mobarak Elkhalifa

34 Data File Facts The following diagram shows the logical and physical components that make up a SQL database. The various database components are described in the following table: Component Description Database File A database is a logical collection of related data, organized into one or more tables. Databases also include additional objects that are used by SQL server for defining the database structure, improving performance, and performing locking and transactions. A file is a physical allocation of space on disk. Each database has two or more files, and each file can be part of only one database. Data files hold the actual database objects and the data. Data files can be one of two types: o The primary data file is required. 34 Taught by: Aiman Mobarak Elkhalifa

35 o It contains startup information for the database catalog and points to the other database files. The primary data file can also contain objects and user data. The recommended extension is.mdf. A secondary data file is optional, user-defined and stores user data. Each secondary data file can be put on a different disk drive to boost performance. A database can contain a maximum of 32,766 secondary data files. The recommended extension is.ndf. You can reduce disk access contention by storing all data and objects in secondary files. Note: Use a RAID 10 or a RAID 5 configuration to protect data files. Log files contain the transaction log for recovering the database's transactions. o You must have at least one log file for each database. o You can create multiple log files per database to facilitate faster recovery. o The recommended extension for log files is.ldf. Note: Create log files on a different disk than data files. Use disk mirroring (RAID) to protect log files. A filegroup is collection of data files that are managed as a single unit. You can increase performance by assigning different database objects (tables, indexes, etc.) across several filegroups on different disk subsystems. Multiple filegroups allow for selective back up and restore. You can also assign data files within the same filegroup to different disks. The types of filegroups are: Filegroup A primary filegroup contains the primary data file and secondary data files not stored in another filegroup. All system tables are allocated to the primary filegroup. A secondary filegroup contains secondary data files and database objects. A database can contain up to 32,767 user-defined filegroups. The default filegroup contains objects that were created without an assigned filegroup. The primary filegroup is the default filegroup unless another filegroup is specified. You can specify the default filegroup by using the ALTER DATABASE command. Note: If a default filegroup other than the primary filegroup is specified, system objects and tables are still created in the primary filegroup. The placement of these files plays a key role in: 35 Taught by: Aiman Mobarak Elkhalifa

36 Performance of your system. The capacity to provide data and operational processing even during a disruptive event (high availability). The ability to function seamlessly in the event of a component failure (fault tolerance). 36 Taught by: Aiman Mobarak Elkhalifa

37 Create Database Facts You can use one of the following methods to create a database: Create Database Wizard SQL Server Management Studio Scripts Transact-SQL To create a database using Transact SQL, use the CREATE DATABASE statement followed by the database name (all other parameters are optional). The following example creates a database called MyDataBase: CREATE DATABASE MyDataBase ON ( NAME = 'DataFile1', FILENAME = 'd:\dbfiles\mydatafile.mdf', SIZE = 10, MAXSIZE = 100, FILEGROWTH = 10 ) LOG ON ( NAME = 'LogFile1', FILENAME = 'e:\logfiles\mylogfile.ldf', SIZE = 512KB, MAXSIZE = 2MB, FILEGROWTH = 512KB ) The following table describes each option in the CREATE DATABASE statement for creating data and log files. Other options, such as specifying collation type, can be entered in the CREATE DATABASE statement. Transact-SQL Keyword ON NAME FILENAME Description The ON keyword is followed by blocks (surrounded by parenthesis) that define the datafile(s) for the database. The ON portion is optional. If not specified, the database will be created with a single data file in the default location. Use the PRIMARY keyword after the ON keyword to identify the primary data file. If PRIMARY is not used, the first file listed will be the primary. Identifies the logical name for the file. Identifies the path and filename for the database or log file. 37 Taught by: Aiman Mobarak Elkhalifa

38 Configures the size of the data or log file. Note: The SIZE, MAXSIZE, and FILEGROWTH values have the following common characteristics: Numbers must be whole numbers (no decimals). Numbers can be followed by a suffix that identifies the unit of measure (KB, MB, GB, or TB). If no suffix is used, MB is assumed. SIZE Following are additional considerations for the SIZE parameter: If the parameter is not included, the size for the primary datafile comes from the size of the model database. Secondary files and log files default to 1 MB. If included, the size for the primary datafile must be equal to or larger than the primary datafile for the model database. MAXSIZE FILEGROWTH LOG ON The minimum size is 512 KB. Configures the maximum size of the file. If no maximum size is specified, the file can grow until the disk is full. Note: If a transaction log file runs out of space, no further transactions can be performed on that database until more space is made available. Identifies the amount that a file can grow. In addition to unit suffixes (KB, MB, etc.), you can also specify a percentage (%). If a suffix is not included, the default is MB. If the parameter is not included, the default is 10%. The minimum value is 64 KB. The maximum value is the same as MAXSIZE. Set this value to 0 to prevent a file from growing automatically. The LOG ON section identifies the log file(s) for the database. If not specified, a single log file will be created in the default location. Create Database Facts 38 Taught by: Aiman Mobarak Elkhalifa

39 You can use one of the following methods to create a database: Create Database Wizard SQL Server Management Studio Scripts Transact-SQL To create a database using Transact SQL, use the CREATE DATABASE statement followed by the database name (all other parameters are optional). The following example creates a database called MyDataBase: CREATE DATABASE MyDataBase ON ( NAME = 'DataFile1', FILENAME = 'd:\dbfiles\mydatafile.mdf', SIZE = 10, MAXSIZE = 100, FILEGROWTH = 10 ) LOG ON ( NAME = 'LogFile1', FILENAME = 'e:\logfiles\mylogfile.ldf', SIZE = 512KB, MAXSIZE = 2MB, FILEGROWTH = 512KB ) The following table describes each option in the CREATE DATABASE statement for creating data and log files. Other options, such as specifying collation type, can be entered in the CREATE DATABASE statement. Transact-SQL Keyword ON NAME FILENAME SIZE Description The ON keyword is followed by blocks (surrounded by parenthesis) that define the datafile(s) for the database. The ON portion is optional. If not specified, the database will be created with a single data file in the default location. Use the PRIMARY keyword after the ON keyword to identify the primary data file. If PRIMARY is not used, the first file listed will be the primary. Identifies the logical name for the file. Identifies the path and filename for the database or log file. Configures the size of the data or log file. 39 Taught by: Aiman Mobarak Elkhalifa

40 Note: The SIZE, MAXSIZE, and FILEGROWTH values have the following common characteristics: Numbers must be whole numbers (no decimals). Numbers can be followed by a suffix that identifies the unit of measure (KB, MB, GB, or TB). If no suffix is used, MB is assumed. Following are additional considerations for the SIZE parameter: If the parameter is not included, the size for the primary datafile comes from the size of the model database. Secondary files and log files default to 1 MB. If included, the size for the primary datafile must be equal to or larger than the primary datafile for the model database. MAXSIZE FILEGROWTH LOG ON The minimum size is 512 KB. Configures the maximum size of the file. If no maximum size is specified, the file can grow until the disk is full. Note: If a transaction log file runs out of space, no further transactions can be performed on that database until more space is made available. Identifies the amount that a file can grow. In addition to unit suffixes (KB, MB, etc.), you can also specify a percentage (%). If a suffix is not included, the default is MB. If the parameter is not included, the default is 10%. The minimum value is 64 KB. The maximum value is the same as MAXSIZE. Set this value to 0 to prevent a file from growing automatically. The LOG ON section identifies the log file(s) for the database. If not specified, a single log file will be created in the default location. 40 Taught by: Aiman Mobarak Elkhalifa

41 Database Objects Table Facts 41 Taught by: Aiman Mobarak Elkhalifa

42 After the database has been designed, you can then add the tables that will hold the data. Tables can be created using SQL Server Management Studio, Transact-SQL scripting, or Table Objects (SQL-SMO). When you create a table, you define the columns on the table. A table can have up to 1,024 columns. The following table describes some properties you can set for a column. Property Name Data type Data length NULL/NOT NULL DEFAULT IDENTITY Description Column names must be unique within a specific table (however, you may have the same column name in a different table). While table names must be unique for each owner in the database, different owners can have tables of the same name. Column names must follow SQL Server 2 naming rules. The data type defines the characteristic of the data that is stored in the column. Data types are defined using the standard SQL data type keywords (see Data Type Facts). The data type should be chosen based on the information you wish to store. For example, you would not use an integer data type for an employee name column. The data length defines the size of the data string that can be held in the column. The data length is automatically defined for most data types. You may modify the data length property for binary, char, nchar, varbinary, varchar, and nvarchar data types. When turned on, the NULL value property allows the rows in that table to have a null value for that column. NULL is not the same thing as a zero (0) or blank data. Instead, NULL represents a value that is as yet undefined. You can allow or disallow NULL values for columns. When NOT NULL is defined, users must enter a value when a new row is added. If NULL is allowed, SQL Server automatically supplies NULL when you insert a row with no value for a column that allows null values. A user can also explicitly enter NULL. Allowing NULL values in columns can cause problems with data integrity. It also makes queries and updates more complex. However, you can only modify an existing column to disallow NULL if no null values exist in the column and there is no index created on the column. The DEFAULT property defines a value that is automatically added to the column when a new row is defined. Use the IDENTITY property to define an identifier column. An identifier column holds system-generated sequential values that identify each row in the table. Use the following two values with the IDENTITY property: 42 Taught by: Aiman Mobarak Elkhalifa

43 The seed property defines the starting number. The increment property defines the increment to be added to the seed for each subsequent identity number. Be aware of the following when using the IDENTITY value: Each table can have only one identifier column, and the column cannot allow NULL values or contain a DEFAULT. If you choose not to define the seed and increment values, the default for each is 1. However, if you define the seed value, you must define the increment value (and vice versa). An IDENTITY column must use one of the following data types: decimal, int, numeric, smallint, bigint, or tinyint. SQL Server ensures that each value in the IDENTITY column is unique. However, uniqueness is enforced only within the column. Uniqueness is not enforced between other columns or tables. The ROWGUIDCOL property identifies a column as a global identifier column. This means that the values in the column can be used across tables within the database. ROWGUIDCOL You can only have one ROWGUIDCOL column. The data type must be set to uniqueidentifier. The setting does not automatically generate values. You must use a DEFAULT with a NEWID function to generate automatic values if desired. ROWGUIDCOL does not guarantee uniqueness. You must use a UNIQUE constraint to ensure uniqueness. The following example creates a table called Tbl_BldgStarts with five columns. Note the data type and length specified for each. CREATE TABLE Tbl_BldgStarts ( Col_StAddr nvarchar (20), Col_City nvarchar (20), Col_State nvarchar (12), Col_BlgdNum int IDENTITY (1001,1) NOT NULL, --Create global identifier column. Values are generated automatically Col_MyConstrNum uniqueidentier ROWGUIDCOL NOT NULL DEFAULT (newid ()) ) 43 Taught by: Aiman Mobarak Elkhalifa

44 Constraint Facts A constraint is a table column property that performs data validation. Using constraints, you can maintain database integrity by preventing invalid data from being entered. 44 Taught by: Aiman Mobarak Elkhalifa

45 Note: Rules are objects used in previous versions of SQL Server to enforce data integrity. You should use constraints instead of rules. Data validation can be performed on the row level or the column level. The row-level constraints are PRIMARY KEY and FOREIGN KEY. The column-level constraints are NOT NULL, DEFAULT, UNIQUE, and CHECK. The table below describes the classes of constraints: Constraint Class NOT NULL CHECK Description A NOT NULL constraint restricts users from entering null values into the column. Do not confuse a NULL with a zero (0) or a blank space. A NULL represents an unknown value. A CHECK constraint limits the values that are accepted by a column. CHECK constraints determine the acceptable value by using a logical expression that evaluates to a true or false condition. If the conditions are not met, the input is rejected. For example, you can define a CHECK constraint to make sure that the value contains the correct number of digits (such as 5 digits for a zip code) or that the value is within a certain range (such as between 1 and 1,000). When using CHECK constraints: You can have multiple CHECK constraints for a column. Create the constraint at the table level to apply a single CHECK constraint to multiple columns. Note: If necessary, you can temporarily disable a CHECK constraint. However, data integrity will not be enforced while the constraint is disabled. A PRIMARY KEY constraint enforces unique values for each row in a column (or set of columns). If a value is entered that already exists in the column, it is rejected. Facts about PRIMARY KEY constraints are: PRIMARY KEY PRIMARY KEY constraints do not support NULL values. The PRIMARY KEY setting defines the identity column. Because the values are guaranteed to be unique, the PRIMARY KEY can be used for row identifiers. Each table can have only a single PRIMARY KEY (although the key may use multiple columns as long as the combination of column values is unique for each row). The PRIMARY KEY is used when defining inter-table relationships. 45 Taught by: Aiman Mobarak Elkhalifa

46 A UNIQUE constraint enforces unique values for each entry in a column. If a value is entered that already exists in the column, it is rejected. Facts about UNIQUE constraints are: UNIQUE FOREIGN KEY UNIQUE constraints are implemented as unique indexes. A UNIQUE constraint allows one NULL value per column. You can have multiple UNIQUE constraints for a table. Columns included in the UNIQUE constraint cannot be part of the PRIMARY KEY. UNIQUE constraints are also used when defining inter-table relationships. UNIQUE constraints can be referenced by FOREIGN KEY constraints. A FOREIGN KEY is a column (or set of columns) used to establish a relationship between columns in two different tables. Click Foreign Key Relationship to view a diagram of two related tables. The FOREIGN KEY identifies a column that is linked to another column with a PRIMARY KEY or a UNIQUE constraint. All columns in the relationship must be the same data type, but they do not need to have the same name. FOREIGN KEY constraints are used to coordinate data between the columns defined in the relationship. You can use a FOREIGN KEY to specify that a column allows only the values contained in the referenced table column. A self-referencing table is a table with a foreign key that references columns in other tables in the same database or other columns in the same table. When configuring a FOREIGN KEY constraint, you can use the following settings to customize how referential integrity is enforced: Check Existing Data on Creation or Re-Enabling ensures that data integrity exists when the FOREIGN KEY is first established. Enforce for Replication applies the constraint when a replication agent performs an insert, update, or delete. Enforce Foreign Key Constraint prevents changes that would invalidate the integrity of the foreign key relationship. Enforce for INSERTS and UPDATES specifies what happens if a user tries to insert or update a row with data that is involved in a foreign key relationship. o No Action generates an error message and rolls the delete or update back. o Cascade inserts or updates data in one column when data is changed in the other column. 46 Taught by: Aiman Mobarak Elkhalifa

47 o Set Null sets the value to null if all foreign key columns for the table can accept null values. DEFAULT o Set Default sets the value to the default value for the column if all foreign key columns for the table have defined defaults (SQL Server 2 only). The DEFAULT keyword defines a value that is used if the user doesn't specify a value for the column. The default value can be a constant or the result of a built-in function or mathematical expression (getdate( ) for example). You should know the following facts about constraints: Constraints can be created when the table is created or added later using the ALTER TABLE statement. SQL Server will automatically create a randomly generated name for each constraint unless you specify a name. The recommended approach is to add the constraints later with ALTER TABLE statements and name the constraints. It is easier to modify or drop constraints if they were added using ALTER TABLE. This example uses the ADD CONSTRAINT keyword to create a PRIMARY KEY constraint: ALTER TABLE MyTable ADD CONSTRAINT PK_MyTable_CustID PRIMARY (custid) Constraints can be created on columns or on tables. A table constraint is the only way to apply a single constraint to more than one column. A column cannot be deleted if it is referenced by a FOREIGN KEY constraint. Drop the FOREIGN KEY constraint in order to delete columns (including columns with a PRIMARY KEY constraint) referenced by a FOREIGN KEY. If you change the data type in one column, the data type in the other column will be changed as well. Use constraints to enforce data integrity. Data integrity includes the following types: Entity integrity ensures that all database rows have a PRIMARY KEY value, that the value is not NULL, and that the values are not duplicated (are unique). Entity integrity is enforced by setting a PRIMARY KEY for the table. Domain integrity ensures that values within a column are valid (for example, data type, format, and value range). Use CHECK constraints to enforce the format or the range of possible values. You can also use FOREIGN KEY and NOT NULL constraints to restrict the range of possible values. Referential integrity ensures that defined relationships between tables are preserved when rows are updated or deleted. In SQL Server 2, relationships are defined between 47 Taught by: Aiman Mobarak Elkhalifa

48 foreign keys and primary keys or between foreign keys and unique keys, using FOREIGN KEY and CHECK constraints. Referential integrity prevents user changes that would affect the relationship between the tables, such as dropping a foreign key table while the FOREIGN KEY constraint exists. User-defined integrity ensures that data meets specific user-defined business rules that are added to the constraints. Constraint Management Facts You can use constraints to create rules that allow SQL Server 2 to maintain the integrity of your database automatically. You can create constraints using: The CONSTRAINT keyword in the CREATE TABLE statement as you create the table. The CONSTRAINT keyword in the ALTER TABLE statement after you have created the table. 48 Taught by: Aiman Mobarak Elkhalifa

49 The table below gives you code examples for creating each type of constraint supported by SQL Server 2. Method Create a PRIMARY KEY constraint Create a UNIQUE constraint Description In the following example, the photos table uses photo_id as the primary key. CREATE TABLE photos ( photo_id int PRIMARY KEY, photo_title char(50), type char(10), date_prod date, camera char(25), lens char(15), publisher_id int, pub_date date, ); You can also use the ALTER TABLE statement. ALTER TABLE photos ADD PRIMARY KEY (photo_id); In the following example, the photos table is created with a UNIQUE constraint for the photo_title, date_prod, and pub_date columns. CREATE TABLE photos ( photo_id int, photo_title char(50), type char(10), date_prod date, camera char(25), lens char(15), publisher_id int, pub_date date, CONSTRAINT PhotoConstraint UNIQUE (photo_title, date_prod, pub_date) ); You can also use the ALTER TABLE statement. ALTER TABLE photos ADD CONSTRAINT PhotoConstraint UNIQUE (photo_title, date_prod, pub_date); Create a CHECK In the following example, the photos table is created with a CHECK constraint constraint named colortype for the type column. CREATE TABLE photos ( photo_id int, photo_title char(50), type char(10), date_prod date, camera char(25), lens char(15), publisher_id int, pub_date date, 49 Taught by: Aiman Mobarak Elkhalifa

50 Create a FOREIGN KEY constraint Create a NULL constraint CONSTRAINT colortype CHECK (type IN ('bw','color')) ); You can also use the ALTER STATEMENT table. ALTER TABLE photos ADD CONSTRAINT colortype CHECK (type IN ('bw','color)); In the following example, a FOREIGN KEY constraint is created for the photos table by referencing a pub_id column in the publishers table. Deleting rows from this column is not allowed. Transactions that would delete rows from the table with the PRIMARY KEY are rolled back. CREATE TABLE photos ( photo_id int, photo_title char(50), type char(10), date_prod date, camera char(25), lens char(15), publisher_id int FOREIGN KEY REFERENCES publishers(pub_id) ON DELETE NO ACTION, pub_date date, ); You can also use the ALTER TABLE statement. ALTER TABLE photos ADD CONSTRAINT publisher_id FOREIGN KEY (pub_id) REFERENCES publishers (pub_id) MATCH FULL; This creates two NULL constraints. CREATE TABLE photos ( photo_id int NO NULL, photo_title char(50) NO NULL, type char(10), date_prod date, camera char(25), lens char(15), publisher_id int, pub_date date, ); You can also use the ALTER TABLE statement. ALTER TABLE photos ALTER COLUMN photo_id SET NOT NULL, photo_title SET NOT NULL; 50 Taught by: Aiman Mobarak Elkhalifa

51 DML Trigger Facts A DML trigger is a type of stored procedure that executes when the DML (Data Manipulation Language) statements UPDATE, INSERT, or DELETE run against a table or a view. You can use DML triggers in the following ways: To define error messages and display them if a particular action is performed. To perform additional inserts into tables. To store application logic. To compare data before modification (for example, verifying that an action is allowed, and if it is not, to perform a rollback of the database to the previous values). 51 Taught by: Aiman Mobarak Elkhalifa

52 To enforce complex data integrity, such as looking at other values in the database before completing an action. The table below describes the types of DML triggers you can execute. Trigger Type AFTER trigger Description An AFTER trigger executes after the statement that triggered it completes. Multiple AFTER triggers can be specified for each INSERT, UPDATE, or DELETE triggering action. AFTER triggers can be specified for tables but not for views. When creating a trigger, the trigger is created as an AFTER trigger unless you specify INSTEAD OF. An AFTER trigger executes after the successful execution of a Transact- SQL statement including all referential cascade actions and constraint checks associated with the object updated or deleted. An INSTEAD OF trigger executes in place of the triggering action. INSTEAD OF trigger Only one INSTEAD OF trigger can be specified for each INSERT, UPDATE, or DELETE triggering action. When the action takes place, the trigger executes instead of the normal action that would take place for the action. Unlike AFTER triggers, INSTEAD OF triggers can be specified for both tables and views. Much like constraints, it is possible to enforce data integrity through triggers. However, you should use constraints whenever possible. Listed below are some conditions when you might need to use a trigger instead of a constraint: A CHECK constraint uses a true/false condition to allow or reject changes. Triggers can execute more complex checking that does not evaluate to a true/false condition or that can take multiple actions besides a simple accept or reject. A CHECK constraint can accept or reject changes based on a simple comparison between data in two columns within a table. A trigger can compare values in columns in different tables. A FOREIGN KEY constraint can accept or reject updates based on data comparison between tables, but can only look for an exact match unless cascading referential actions are used. Triggers can implement more complex conditions. 52 Taught by: Aiman Mobarak Elkhalifa

53 Constraints can use system messages only for reporting errors. With triggers, you can customize error messages and mechanisms. For example, you can send a message through when the trigger executes. You should also know the following facts about triggers: Triggers run automatically when the specified action takes place. You must have permissions to all objects referenced by the trigger. Triggers can be linked, if necessary, to perform a series of actions in a particular situation. Triggers are reactive (meaning the action has already taken place before the trigger is fired). When an INSERT or DELETE trigger is associated with a table, any data inserted or deleted from the table will be written to a corresponding temporary table. Use ALTER TRIGGER to modify a trigger. Use ENABLE and DISABLE TRIGGER to control whether a trigger fires without dropping the trigger. For DML triggers, you can also use ALTER TABLE to enable or disable a trigger. Use DROP TRIGGER to delete a trigger. You should not use a trigger on a system table. In the following example, a trigger fires when the specified conditions are met. GO --create trigger CREATE TRIGGER BlgComplete.EscrowReturn ON Tbl_Complete AFTER UPDATE (EscrowAmt) AS tinyint --specify conditions for firing trigger = = w.workorders FROM BldgComplete.Tbl_Complete AS b, BldgProgress.Tbl_Workorders AS w >= 1 BEGIN --specify actions when trigger is fired INSERT INTO BldgComplete.Tbl_Funds (EscrowHold) END When implementing triggers, be aware of the following: Triggers perform in the following ways when a constraint exists on the table the trigger is acting on: o The constraint is checked after the INSTEAD OF trigger execution. If constraints are violated, the actions executed by the INSTEAD OF trigger are rolled back. 53 Taught by: Aiman Mobarak Elkhalifa

54 o The constraint is checked before the AFTER trigger execution. The AFTER trigger is not fired if the constraint has been violated. You can specify the first and last trigger to execute on a table by using the sp_settriggerorder stored procedure. When using AFTER triggers, only one first and one last trigger for each INSERT, UPDATE, and DELETE operation is allowed. Triggers not specified as first or last are randomly executed. Using ALTER TRIGGER eliminates first and last trigger designations. The UPDATE( ) function allows you to define a trigger based on an update or insertion into a column. The COLUMNS_UPDATED keyword allows you to define a trigger based on an update or insertion into multiple columns. You cannot use INSTEAD OF DELETE/UPDATE triggers when a table has a foreign key with a cascade on DELETE/UPDATE action defined. Qualify the table name in the same way that you qualify the trigger name. For example, when you use MySchema.MyTrigger, use MySchema.MyTable. A SET statement in a trigger, reverts to its former setting after the trigger is executed. A DELETE trigger will not catch a TRUNCATE TABLE statement. The following Transact-SQL statements are not allowed in a DML trigger: ALTER DATABASE CREATE DATABASE DROP DATABASE LOAD DATABASE LOAD LOG RECONFIGURE RESTORE DATABASE RESTORE LOG In SQL Server 2, you cannot use the following Transact-SQL statements inside the body of a DML trigger used against the table or view that is the target of the triggering action. CREATE INDEX ALTER INDEX DROP INDEX DBCC DBREINDEX ALTER PARTITION FUNCTION DROP TABLE ALTER TABLE when used to do the following: o Add, modify, or drop columns o Switch partitions o Add or drop PRIMARY KEY or UNIQUE constraints 54 Taught by: Aiman Mobarak Elkhalifa

55 View Facts A view is a stored SELECT statement that works like a virtual table. The data available through the view continues to reside in the base table (or tables). When the view is referenced, it returns a virtual table that can be referenced and manipulated much like an actual table. Common uses for views include the following: 55 Taught by: Aiman Mobarak Elkhalifa

56 Hiding the complexity of the database by showing only the data a user needs instead of entire tables. Securing the database by granting permissions to the view. Users need permissions only to the view, not to the underlying table objects. Combining data from multiple tables, columns, or sources into what looks like a single table. Aggregate data by, for example, showing the sum of a column rather than individual values in the column. Exporting data by using the bcp (bulk copy) utility to send the view results to an outside application (such as a spreadsheet application). Be aware of the following when using views: Views are objects stored in the database. When a view is used, it is compiled and executed at the server, returning the data. Views can reference data in multiple tables and across multiple databases on the same or even remote servers. In addition, views can reference other views. Modifying a view does not change the permissions of the view. If you drop a view, however, the permissions must be reassigned. Views have the following restrictions: o Views cannot use ORDER BY, COMPUTE, or COMPUTE BY clauses. o Views cannot use the INTO keyword. o Views cannot update data if the update affects more than one base table referenced in the view. You can bind the view to the table schema with the SCHEMABINDING keyword. When using SCHEMABINDING: o You must include the owner name with SELECT statements (such as dbo.tbl_composers). One, three, or four-part names are not allowed. o o Tables cannot be altered if the changes affect columns referenced in the view. You must drop the view before modifying the table structure. Other views used by the view cannot be dropped. Remove the schema binding first. Views simplify data access and can be used for security administration. They do not, however, increase performance by themselves. To improve performance, you can create an index of the view. Keep in mind the following when using indexes for views: Indexes for views are clustered. Once the index is created, SQL Server may use the index for other queries, not just for accessing the view. Because of the system load imposed in maintaining indexes for views, you should limit their use to views that reference columns that change infrequently. Do not index views where the data has many writes or updates. 56 Taught by: Aiman Mobarak Elkhalifa

57 Use indexes for views that include many JOIN statements across many rows. Indexed views are only supported on the Enterprise or Developer editions of SQL Server. The view must use the SCHEMABINDING statement. Be aware of the following limitations: o You cannot create an index on a view that references tables in more than one database. o You cannot index views that include UNION statements. o You cannot index views that use other views. In the following example, the PhotoSold view is created in the WeingholdGallery schema: CREATE VIEW WeingholdGallery.PhotoSold WITH SCHEMABINDING AS --identify columns to return SELECT (p.pk_photo_id, p.photo_name, p.photographer_name, s.purchaser_name, s.purchase_date ) --identify the table FROM WeingholdGallery.Sales_info AS s INNER JOIN WeingholdGallery.Photos AS p --return where the following two values are equal WHERE p.pk_photo_id = s.fk_photo_id For a view to be updatable, it must meet the following criteria: Changes can be made to only one base table. The table has a primary key defined. You cannot change columns with derived data (e.g., from aggregate functions). The columns being modified are not affected by GROUP BY, HAVING, or DISTINCT clauses. The select statement that creates the view cannot contain a TOP keyword with a WITH CHECK OPTION clause. Stored Procedure Facts A stored procedure is precompiled code that can be reused. It is precompiled, stored as an object in the database under a single name, and is processed as a unit. Like other kinds of programs, a stored procedure can: Use input parameters and return multiple values in the form of output parameters. Contain programming statements that perform operations in the database, including calling other procedures. Perform calculations. 57 Taught by: Aiman Mobarak Elkhalifa

58 Invoke data definition language (DDL) and data manipulation language (DML) statements. Return a status value to a calling procedure or batch to indicate success or failure (and the reason for failure). Stored procedures are useful for: Ensuring consistent implementation of a task across applications. All of the logic needed to perform the task can be created and verified once and then saved as a stored procedure for reuse as necessary. Improving performance. The execution plan is stored in cache. Also, the results of one procedure can be coded to determine which of the subsequent procedures should be performed next and automatically move through the predetermined steps of the execution plan with no user intervention required. Protecting the contents of the database. Users with authorization to run the procedure have no need to view or access underlying tables to find the information they require. The following table describes the types of stored procedures available in Microsoft SQL Server 2. Type System Stored Procedures Description System stored procedures are stored procedures supplied by SQL Server. They perform common administrative activities. System stored procedures are stored in the Resource database and have the sp_ prefix. System stored procedures logically appear in the sys schema of every system- and user-defined database. In SQL Server 2, GRANT, DENY, and REVOKE permissions can be applied to system stored procedures. Commonly used system stored procedures include: sp_help provides information on the specified database object or data type. sp_helpdb provides information on the specified database. User-defined Stored Procedures sp_helpindex provides information on the index for the specified table. User-defined stored procedures are stored procedures created to perform specific tasks to meet the needs of a particular environment. There are two ways to create stored procedures: Using traditional Transact-SQL statements. This method is preferred when the stored procedure accesses data using little or no procedural logic. 58 Taught by: Aiman Mobarak Elkhalifa

59 Extended Stored Procedures Temporary Stored Procedures Using CLR (common language runtime) managed code such as the.net Framework languages Visual Basic,.NET, or Visual C#. This method is preferred when the stored procedure performs CPU-intensive functions, calculations, and complex logic. CLR is also the choice when accessing objects such as the network or file system, or to run processor-intensive code on the client computers. Extended system stored procedures (xp_ prefix) are stored procedures that interface between SQL Server and external programs for maintenance activities. Extended stored procedures can be written using a programming language like C. Note: Extended stored procedures will be dropped in a future release. Use userdefined, CLR-created stored procedures instead of extended stored procedures. SQL Server also supports temporary stored procedures that are deleted automatically when you disconnect from the server. These may occasionally be useful when working with applications that build dynamic Transact-SQL statements that need to be executed multiple times, or for working with earlier versions of SQL Server. CLR stored procedures cannot be created as temporary stored procedures. The following guidelines apply to both CLR managed code and Transact-SQL stored procedures. You can create a stored procedure only in the current database. Validate all user input before you use it. Use the EXEC keyword to call a stored procedure. CREATE PROCEDURE statements cannot be combined with other SQL statements in a single batch. Stored procedures must be recompiled if the database structure changes. If performance begins to decline, recompile stored procedures. Using the sp_recompile system stored procedure forces a recompile of a stored procedure the next time it is run. The following statements cannot be used in a stored procedure: CREATE AGGREGATE CREATE RULE CREATE DEFAULT CREATE SCHEMA CREATE or ALTER FUNCTION CREATE or ALTER TRIGGER CREATE or ALTER PROCEDURE CREATE or ALTER VIEW SET PARSEONLY SET SHOWPLAN_ALL 59 Taught by: Aiman Mobarak Elkhalifa

60 SET SHOWPLAN_TEXT SET SHOWPLAN_XML USE database_name Follow these rules when using stored procedures to create and use database objects: You can reference an object created in the same stored procedure as long as you create it before it is referenced. You can create and reference temporary tables. The temporary table is no longer available when you exit the stored procedure. If you execute a stored procedure that calls another stored procedure, the called stored procedure can access all objects created by the first stored procedure, including temporary tables. If you execute a remote stored procedure that makes changes on a remote instance of Microsoft SQL Server 2, those changes cannot be rolled back. Remote stored procedures do not take part in transactions. If you have permission to execute a stored procedure, you don't need permissions to the underlying tables that the stored procedure uses or modifies. The following example creates a stored procedure called uspdailygallerynumbers. GO --create the stored procedure CREATE PROCEDURE GalleryInfo.uspDailyGalleryNumbers AS BEGIN --variable for storing a date --Recompile the stored procedure WITH RECOMPILE --identify table and columns to insert data into INSERT GalleryDailyFinancial ( Col_SalesForDay, Col_BeginInv, Col_EndInv, Col_NetCash, Col_DateTotal ) GO --join tables and identify columns to choose data from SELECT DailySales, StartInv, EndingInv, NetSales, TotalForDay SUM(SaleTotal) FROM NewYorkGallery n FULL JOIN PhiladelphiaGallery p ON n.saledate = p.saledate FULL JOIN Baltimore b ON p.saledate = b.saledate 60 Taught by: Aiman Mobarak Elkhalifa

61 WHERE SaleDate END GO Note: You can use the WITH ENCRYPTION clause to prevent information about the stored procedure from being returned when sp_helptext is executed. The following example shows how to execute the stored procedure created above. The value '21025' is a constant for the declared variable in the stored procedure. Use ConsolidatedGalleries GO EXEC GalleryInfo.uspDailyGalleryNumbers '21025' GO Managed Code Facts Code that runs in Microsoft's common language runtime (CLR) is called managed code. You can create managed code using a.net Framework language such as Visual Basic.NET or Visual C#. In SQL Server you can use managed code to write: Stored procedures Triggers User-defined functions, aggregates, and types Although you can write the same type of code using Transact-SQL, managed code does a better job of handling calculations and complex execution logic. The table below identifies situations to use managed code and situations to use Transact-SQL. Type of Code Managed Code Transact- SQL Decision Criteria Use managed code when: You want to access the functionality of the.net Framework. The code performs complex logic that is CPU-intensive. You want the code to run on the client side to leverage the processing power of the client computer rather than tax the server. Use Transact-SQL when: 61 Taught by: Aiman Mobarak Elkhalifa

62 The code primarily accesses data and has little or no procedural logic. The code can run on the server without impacting performance. By default, SQL Server does not allow you to run managed code. To run managed code, enable the CLR by running the sp_configure system stored procedure or using the SQL Server Surface Configuration Tool. Permission levels for managed code are specified when the assembly for the code is created. The three permission levels for managed code are specified below. Safe code can be run only by SQL Server. It has programming model and verifiability restrictions and cannot call unmanaged code. External code can run outside of SQL Server against other programs or entities such as the file system. The code has programming model and verifiability restrictions and cannot call unmanaged code. In order to execute managed code that will execute outside of SQL, you must use the ALTER DATABASE statement to set TRUSTWORTHY to on. Unsafe code does not have any access, programming model, or verifiability restrictions. The code has the ability to call unmanaged code. This permission is for highly trusted code. Data Manipulation 62 Taught by: Aiman Mobarak Elkhalifa

63 DML Statement Facts Data Manipulation Language (DML) refers to a family of computer languages of which Transact-SQL is a member. The most commonly used DML statements are INSERT, UPDATE, and DELETE. You can also use SELECT statements with INTO clauses to insert data into a table. The statements have keywords, clauses, and operators that enable you to perform a variety of functions using these four statements. The following table describes actions that maybe commonly used in databases. Action Example 63 Taught by: Aiman Mobarak Elkhalifa

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 1. Introduction to SQL Server Panayiotis Andreou

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 1. Introduction to SQL Server Panayiotis Andreou Department of Computer Science University of Cyprus EPL342 Databases Lab 1 Introduction to SQL Server 2008 Panayiotis Andreou http://www.cs.ucy.ac.cy/courses/epl342 1-1 Before We Begin Start the SQL Server

More information

GETTING 1 STARTED. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

GETTING 1 STARTED. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC. GETTING 1 STARTED hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: SQL Server 2000 features. SQL Server Editions. SQL Server architecture. SQL Server 2000 components. Graphical

More information

Chapter 1: Introducing SQL Server

Chapter 1: Introducing SQL Server Leiter ftoc.tex V3-03/25/2009 1:31pm Page xv Introduction xxvii Chapter 1: Introducing SQL Server 2008 1 A Condensed History of SQL Server 1 In the Beginning 1 The Evolution of a Database 1 Microsoft Goes

More information

Microsoft TechNet Academy UPDATING YOUR SQL SERVER 2005 SKILLS TO

Microsoft TechNet Academy UPDATING YOUR SQL SERVER 2005 SKILLS TO Microsoft TechNet Academy UPDATING YOUR SQL SERVER 2005 SKILLS TO SQL SERVER 2008 An Introduction to SQL Server 2008 The Evolution of SQL Server Preparing for SQL Server 2008 The Evolution of SQL Server

More information

Microsoft SQL Server Training Course Catalogue. Learning Solutions

Microsoft SQL Server Training Course Catalogue. Learning Solutions Training Course Catalogue Learning Solutions Querying SQL Server 2000 with Transact-SQL Course No: MS2071 Two days Instructor-led-Classroom 2000 The goal of this course is to provide students with the

More information

Tables. Tables. Physical Organization: SQL Server Partitions

Tables. Tables. Physical Organization: SQL Server Partitions Tables Physical Organization: SQL Server 2005 Tables and indexes are stored as a collection of 8 KB pages A table is divided in one or more partitions Each partition contains data rows in either a heap

More information

Physical Organization: SQL Server 2005

Physical Organization: SQL Server 2005 Physical Organization: SQL Server 2005 Tables Tables and indexes are stored as a collection of 8 KB pages A table is divided in one or more partitions Each partition contains data rows in either a heap

More information

Constraints. Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers. John Edgar 2

Constraints. Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers. John Edgar 2 CMPT 354 Constraints Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers John Edgar 2 firstname type balance city customerid lastname accnumber rate branchname phone

More information

Lab 4: Tables and Constraints

Lab 4: Tables and Constraints Lab : Tables and Constraints Objective You have had a brief introduction to tables and how to create them, but we want to have a more in-depth look at what goes into creating a table, making good choices

More information

6 SSIS Expressions SSIS Parameters Usage Control Flow Breakpoints Data Flow Data Viewers

6 SSIS Expressions SSIS Parameters Usage Control Flow Breakpoints Data Flow Data Viewers MSBI Training Program [SSIS SSAS SSRS] Duration : 60 Hrs SSIS 1 Introduction to SSIS SSIS Components Architecture & Installation SSIS Tools and DTS 2 SSIS Architecture Control Flow Tasks Data Flow Tasks

More information

M i c r o s o f t S Q L S e r v e r I n s t a l l a t i o n G u i d e for A D S S S e r v e r

M i c r o s o f t S Q L S e r v e r I n s t a l l a t i o n G u i d e for A D S S S e r v e r M i c r o s o f t S Q L S e r v e r I n s t a l l a t i o n G u i d e for A D S S S e r v e r A S C E R T I A LTD S E P T E M B E R 2 0 1 8 D o c u m e n t V e r s i o n - 5.9. 0. 1 Ascertia Limited. All

More information

MCSA SQL SERVER 2012

MCSA SQL SERVER 2012 MCSA SQL SERVER 2012 1. Course 10774A: Querying Microsoft SQL Server 2012 Course Outline Module 1: Introduction to Microsoft SQL Server 2012 Introducing Microsoft SQL Server 2012 Getting Started with SQL

More information

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database Course 6231A: Maintaining a Microsoft SQL Server 2008 Database OVERVIEW About this Course Elements of this syllabus are subject to change. This five-day instructor-led course provides students with the

More information

Acknowledgments Introduction to Database Systems p. 1 Objectives p. 1 Functions of a Database p. 1 Database Management System p.

Acknowledgments Introduction to Database Systems p. 1 Objectives p. 1 Functions of a Database p. 1 Database Management System p. Preface p. xvii Acknowledgments p. xxv Introduction to Database Systems p. 1 Objectives p. 1 Functions of a Database p. 1 Database Management System p. 2 Database Components p. 8 Database Development Process

More information

6 Months Training Module in MS SQL SERVER 2012

6 Months Training Module in MS SQL SERVER 2012 6 Months Training Module in MS SQL SERVER 2012 Module 1 Installing and Configuring Windows Server 2012 Installing and Managing Windows Server 2012 Windows Server 2012 Overview Installing Windows Server

More information

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database Course 6231A: Maintaining a Microsoft SQL Server 2008 Database About this Course This five-day instructor-led course provides students with the knowledge and skills to maintain a Microsoft SQL Server 2008

More information

Replication. Some uses for replication:

Replication. Some uses for replication: Replication SQL Server 2000 Replication allows you to distribute copies of data from one database to another, on the same SQL Server instance or between different instances. Replication allows data to

More information

Contents. Microsoft is a registered trademark of Microsoft Corporation. TRAVERSE is a registered trademark of Open Systems Holdings Corp.

Contents. Microsoft is a registered trademark of Microsoft Corporation. TRAVERSE is a registered trademark of Open Systems Holdings Corp. TPLWPT Contents Summary... 1 General Information... 1 Technology... 2 Server Technology... 2 Business Layer... 4 Client Technology... 4 Structure... 4 Ultra-Thin Client Considerations... 7 Internet and

More information

Administrator s Guide

Administrator s Guide Administrator s Guide 1995 2011 Open Systems Holdings Corp. All rights reserved. No part of this manual may be reproduced by any means without the written permission of Open Systems, Inc. OPEN SYSTEMS

More information

MICROSOFT BUSINESS INTELLIGENCE

MICROSOFT BUSINESS INTELLIGENCE SSIS MICROSOFT BUSINESS INTELLIGENCE 1) Introduction to Integration Services Defining sql server integration services Exploring the need for migrating diverse Data the role of business intelligence (bi)

More information

Code Centric: T-SQL Programming with Stored Procedures and Triggers

Code Centric: T-SQL Programming with Stored Procedures and Triggers Apress Books for Professionals by Professionals Sample Chapter: "Data Types" Code Centric: T-SQL Programming with Stored Procedures and Triggers by Garth Wells ISBN # 1-893115-83-6 Copyright 2000 Garth

More information

2072 : Administering a Microsoft SQL Server 2000 Database

2072 : Administering a Microsoft SQL Server 2000 Database 2072 : Administering a Microsoft SQL Server 2000 Database Introduction This course provides students with the knowledge and skills required to install, configure, administer, and troubleshoot the client-server

More information

Planning the Installation and Installing SQL Server

Planning the Installation and Installing SQL Server Chapter 2 Planning the Installation and Installing SQL Server In This Chapter c SQL Server Editions c Planning Phase c Installing SQL Server 22 Microsoft SQL Server 2012: A Beginner s Guide This chapter

More information

Microsoft. [MS20762]: Developing SQL Databases

Microsoft. [MS20762]: Developing SQL Databases [MS20762]: Developing SQL Databases Length : 5 Days Audience(s) : IT Professionals Level : 300 Technology : Microsoft SQL Server Delivery Method : Instructor-led (Classroom) Course Overview This five-day

More information

Microsoft Exchange Server 2007 Implementation and Maintenance

Microsoft Exchange Server 2007 Implementation and Maintenance Microsoft Exchange Server 2007 Implementation and Maintenance Chapter 1 Exchange Server 2007 Deployment 1.1 Overview, Hardware & Editions 1.2 Exchange Server, Windows & Active Directory 1.3 Administration

More information

SAMPLE. Preface xi 1 Introducting Microsoft Analysis Services 1

SAMPLE. Preface xi 1 Introducting Microsoft Analysis Services 1 contents Preface xi 1 Introducting Microsoft Analysis Services 1 1.1 What is Analysis Services 2005? 1 Introducing OLAP 2 Introducing Data Mining 4 Overview of SSAS 5 SSAS and Microsoft Business Intelligence

More information

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

Microsoft SQL Server 2008 ADMINISTRATION. for ORACLE9 DBAs Microsoft SQL Server" 2008 ADMINISTRATION for ORACLE9 DBAs Contents Acknowledgments *v Introduction xvii Chapter 1 Introduction to the SQL Server Platform 1 SQLServer Editions 2 Premium Editions 3 Core

More information

Developing SQL Databases

Developing SQL Databases Course 20762B: Developing SQL Databases Page 1 of 9 Developing SQL Databases Course 20762B: 4 days; Instructor-Led Introduction This four-day instructor-led course provides students with the knowledge

More information

Venezuela: Teléfonos: / Colombia: Teléfonos:

Venezuela: Teléfonos: / Colombia: Teléfonos: CONTENIDO PROGRAMÁTICO Moc 20761: Querying Data with Transact SQL Module 1: Introduction to Microsoft SQL Server This module introduces SQL Server, the versions of SQL Server, including cloud versions,

More information

Manufacturing Process Intelligence DELMIA Apriso 2017 Installation Guide

Manufacturing Process Intelligence DELMIA Apriso 2017 Installation Guide Manufacturing Process Intelligence DELMIA Apriso 2017 Installation Guide 2016 Dassault Systèmes. Apriso, 3DEXPERIENCE, the Compass logo and the 3DS logo, CATIA, SOLIDWORKS, ENOVIA, DELMIA, SIMULIA, GEOVIA,

More information

$ SQL Server 2000 Database Administration. Course Description. Table of Contents. Pricing and Multi-User Licensing

$ SQL Server 2000 Database Administration. Course Description. Table of Contents. Pricing and Multi-User Licensing Course Description This course is a soup-to-nuts course that will teach you how to choose your edition, install, configure and manage any edition of SQL Server 2000. You ll learn the details of security,

More information

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A)

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A) Duration Five days Introduction Elements of this syllabus are subject to change. This five-day instructor-led course provides students with the knowledge and skills to maintain a Microsoft SQL Server 2008

More information

SQL Server Development 20762: Developing SQL Databases in Microsoft SQL Server Upcoming Dates. Course Description.

SQL Server Development 20762: Developing SQL Databases in Microsoft SQL Server Upcoming Dates. Course Description. SQL Server Development 20762: Developing SQL Databases in Microsoft SQL Server 2016 Learn how to design and Implement advanced SQL Server 2016 databases including working with tables, create optimized

More information

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow Pipeline Integration Services Creating an ETL Solution with SSIS Module Overview Introduction to ETL with SSIS Implementing Data Flow Lesson 1: Introduction to ETL with SSIS What Is SSIS? SSIS Projects

More information

Course Topics. Microsoft SQL Server. Dr. Shohreh Ajoudanian. 01 Installing MSSQL Server Data types

Course Topics. Microsoft SQL Server. Dr. Shohreh Ajoudanian. 01 Installing MSSQL Server Data types Dr. Shohreh Ajoudanian Course Topics Microsoft SQL Server 01 Installing MSSQL Server 2008 03 Creating a database 05 Querying Tables with SELECT 07 Using Set Operators 02 Data types 04 Creating a table,

More information

20762B: DEVELOPING SQL DATABASES

20762B: DEVELOPING SQL DATABASES ABOUT THIS COURSE This five day instructor-led course provides students with the knowledge and skills to develop a Microsoft SQL Server 2016 database. The course focuses on teaching individuals how to

More information

Certified Enterprise Applications Integration Specialist (With Microsoft BizTalk Server) Sample Material

Certified Enterprise Applications Integration Specialist (With Microsoft BizTalk Server) Sample Material Certified Enterprise Applications Integration Specialist (With Microsoft BizTalk Server) Sample Material 1. INTRODUCTION & INSTALLATION 1.1 Introduction BizTalk is a business process management (BPM) server

More information

SQL Coding Guidelines

SQL Coding Guidelines SQL Coding Guidelines 1. Always specify SET NOCOUNT ON at the top of the stored procedure, this command suppresses the result set count information thereby saving some amount of time spent by SQL Server.

More information

Connectivity Pack for Microsoft Guide

Connectivity Pack for Microsoft Guide HP Vertica Analytic Database Software Version: 7.0.x Document Release Date: 5/2/2018 Legal Notices Warranty The only warranties for Micro Focus products and services are set forth in the express warranty

More information

Microsoft Developing SQL Databases

Microsoft Developing SQL Databases 1800 ULEARN (853 276) www.ddls.com.au Length 5 days Microsoft 20762 - Developing SQL Databases Price $4290.00 (inc GST) Version C Overview This five-day instructor-led course provides students with the

More information

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led Introduction This three-day instructor-led course provides students with product knowledge and skills needed to

More information

MOC 6232A: Implementing a Microsoft SQL Server 2008 Database

MOC 6232A: Implementing a Microsoft SQL Server 2008 Database MOC 6232A: Implementing a Microsoft SQL Server 2008 Database Course Number: 6232A Course Length: 5 Days Course Overview This course provides students with the knowledge and skills to implement a Microsoft

More information

Jet Data Manager 2014 SR2 Product Enhancements

Jet Data Manager 2014 SR2 Product Enhancements Jet Data Manager 2014 SR2 Product Enhancements Table of Contents Overview of New Features... 3 New Features in Jet Data Manager 2014 SR2... 3 Improved Features in Jet Data Manager 2014 SR2... 5 New Features

More information

Many-to-Many One-to-One Limiting Values Summary

Many-to-Many One-to-One Limiting Values Summary page 1 Meet the expert: Andy Baron is a nationally recognized industry expert specializing in Visual Basic, Visual C#, ASP.NET, ADO.NET, SQL Server, and SQL Server Business Intelligence. He is an experienced

More information

MSBI (SSIS, SSRS, SSAS) Course Content

MSBI (SSIS, SSRS, SSAS) Course Content SQL / TSQL Development 1. Basic database and design 2. What is DDL, DML 3. Data Types 4. What are Constraints & types 1. Unique 2. Check 3. NULL 4. Primary Key 5. Foreign Key 5. Default 1. Joins 2. Where

More information

Introduction to SQL Server 2005/2008 and Transact SQL

Introduction to SQL Server 2005/2008 and Transact SQL Introduction to SQL Server 2005/2008 and Transact SQL Week 4: Normalization, Creating Tables, and Constraints Some basics of creating tables and databases Steve Stedman - Instructor Steve@SteveStedman.com

More information

Exact Numeric Data Types

Exact Numeric Data Types SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while

More information

Ebook : Overview of application development. All code from the application series books listed at:

Ebook : Overview of application development. All code from the application series books listed at: Ebook : Overview of application development. All code from the application series books listed at: http://www.vkinfotek.com with permission. Publishers: VK Publishers Established: 2001 Type of books: Develop

More information

MINIMUM HARDWARE AND OS SPECIFICATIONS File Stream Document Management Software - System Requirements for V4.2

MINIMUM HARDWARE AND OS SPECIFICATIONS File Stream Document Management Software - System Requirements for V4.2 MINIMUM HARDWARE AND OS SPECIFICATIONS File Stream Document Management Software - System Requirements for V4.2 NB: please read this page carefully, as it contains 4 separate specifications for a Workstation

More information

SQL Server DBA Course Details

SQL Server DBA Course Details SQL Server DBA Course Details By Besant Technologies Course Name Category Venue SQL Server DBA Database Administration Besant Technologies No.24, Nagendra Nagar, Velachery Main Road, Address Velachery,

More information

SAS Data Integration Studio 3.3. User s Guide

SAS Data Integration Studio 3.3. User s Guide SAS Data Integration Studio 3.3 User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Data Integration Studio 3.3: User s Guide. Cary, NC: SAS Institute

More information

CHAKRA IT SOLUTIONS TO LEARN ABOUT OUR UNIQUE TRAINING PROCESS:

CHAKRA IT SOLUTIONS TO LEARN ABOUT OUR UNIQUE TRAINING PROCESS: chakraitsolutions.com http://chakraitsolutions.com/msbi-online-training/ MSBI ONLINE TRAINING CHAKRA IT SOLUTIONS TO LEARN ABOUT OUR UNIQUE TRAINING PROCESS: Title Duration Timing Method Software Study

More information

KYOCERA Net Admin Installation Guide

KYOCERA Net Admin Installation Guide KYOCERA Net Admin Guide Legal Notes Unauthorized reproduction of all or part of this guide is prohibited. The information in this guide is subject to change without notice. We cannot be held liable for

More information

System Environment of the Database Engine

System Environment of the Database Engine Chapter 15 System Environment of the Database Engine In This Chapter c System Databases c Disk Storage c Utilities and the DB Command c Policy-Based Management 406 Microsoft SQL Server 2012: A Beginner

More information

Get Table Schema In Sql Server 2005 Modify. Column Datatype >>>CLICK HERE<<<

Get Table Schema In Sql Server 2005 Modify. Column Datatype >>>CLICK HERE<<< Get Table Schema In Sql Server 2005 Modify Column Datatype Applies To: SQL Server 2014, SQL Server 2016 Preview Specifies the properties of a column that are added to a table by using ALTER TABLE. Is the

More information

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

More information

Upgrade to and Installation of SQL Server 2008 (R2) in an SAP Environment

Upgrade to and Installation of SQL Server 2008 (R2) in an SAP Environment Upgrade and Installation Guide Document Version: 1.60 2017-11-17 PUBLIC Upgrade to and Installation of SQL Server 2008 (R2) in an SAP Environment Content 1 Document History.... 3 2 Introduction....5 3

More information

LABEL ARCHIVE Administrator s Guide

LABEL ARCHIVE Administrator s Guide LABEL ARCHIVE Administrator s Guide DOC-LAS2015_25/05/2015 The information in this manual is not binding and may be modified without prior notice. Supply of the software described in this manual is subject

More information

Sage SQL Gateway Installation and Reference Guide

Sage SQL Gateway Installation and Reference Guide Sage SQL Gateway Installation and Reference Guide IMPORTANT NOTICE This document and the Sage 300 Construction and Real Estate software may be used only in accordance with the Sage 300 Construction and

More information

InQuira Analytics Installation Guide

InQuira Analytics Installation Guide InQuira Analytics Installation Guide Installing and Configuring InQuira Analytics Applications InQuira Version 8.1.2 Document Number IA80-IG-00 August 27, 2008 InQuira 851 Traeger Ave. Suite 125 San Bruno,

More information

UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS)

UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS) UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS) Installation Guide NEC NEC Corporation October 2010 NDA-30362, Revision 15 Liability Disclaimer NEC Corporation reserves the right

More information

"Charting the Course... MOC C: Developing SQL Databases. Course Summary

Charting the Course... MOC C: Developing SQL Databases. Course Summary Course Summary Description This five-day instructor-led course provides students with the knowledge and skills to develop a Microsoft SQL database. The course focuses on teaching individuals how to use

More information

MSBI Online Training (SSIS & SSRS & SSAS)

MSBI Online Training (SSIS & SSRS & SSAS) MSBI Online Training (SSIS & SSRS & SSAS) Course Content: SQL Server Integration Services Introduction Introduction of MSBI and its tools MSBI Services and finding their statuses Relation between SQL Server

More information

Minimum Hardware and OS Specifications

Minimum Hardware and OS Specifications Hardware and OS Specifications File Stream Document Management Software System Requirements for v4.5 NB: please read through carefully, as it contains 4 separate specifications for a Workstation PC, a

More information

DefendX Software Control-Audit for Hitachi Installation Guide

DefendX Software Control-Audit for Hitachi Installation Guide DefendX Software Control-Audit for Hitachi Installation Guide Version 4.1 This guide details the method for the installation and initial configuration of DefendX Software Control-Audit for NAS, Hitachi

More information

Client Microsoft a workstation.

Client Microsoft a workstation. System Requirements for Dynamics AX ERP v 4.0 Network requirements The following table listss the minimumm network requirements for client/serverr connections in a Microsoft Dynamics AX system. Value Application

More information

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2 Department of Computer Science University of Cyprus EPL342 Databases Lab 2 ER Modeling (Entities) in DDS Lite & Conceptual Modeling in SQL Server 2008 Panayiotis Andreou http://www.cs.ucy.ac.cy/courses/epl342

More information

This document contains information on fixed and known limitations for Test Data Management.

This document contains information on fixed and known limitations for Test Data Management. Informatica LLC Test Data Management Version 10.1.0 Release Notes December 2016 Copyright Informatica LLC 2003, 2016 Contents Installation and Upgrade... 1 Emergency Bug Fixes in 10.1.0... 1 10.1.0 Fixed

More information

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year!

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year! Accurate study guides, High passing rate! Testhorse provides update free of charge in one year! http://www.testhorse.com Exam : 70-467 Title : Designing Business Intelligence Solutions with Microsoft SQL

More information

Number: Passing Score: 800 Time Limit: 120 min File Version:

Number: Passing Score: 800 Time Limit: 120 min File Version: 70-465 Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ Exam A QUESTION 1 You need to recommend a backup process for an Online Transaction Processing

More information

Index. Accent Sensitive (AS), 20 Aggregate functions, 286 Atomicity consistency isolation durability (ACID), 265

Index. Accent Sensitive (AS), 20 Aggregate functions, 286 Atomicity consistency isolation durability (ACID), 265 Index A Accent Sensitive (AS), 20 Aggregate functions, 286 Atomicity consistency isolation durability (ACID), 265 B Balanced (B)-Trees clustered index, 237 non-clustered index, 239 BULK INSERT statement

More information

Information Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language

Information Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language Information Systems Engineering SQL Structured Query Language DDL Data Definition (sub)language 1 SQL Standard Language for the Definition, Querying and Manipulation of Relational Databases on DBMSs Its

More information

Installation Guide of SQL Server Express

Installation Guide of SQL Server Express B Installation Guide of SQL Server Express A. Hardware and Software Requirements for SQL Server Express 3 B. Installation Procedures 6 1. Microsoft.NET Framework 3.5 SP1 6 2. Microsoft.NET Framework 4.0

More information

MSBI( SSAS, SSIS, SSRS) Course Content:35-40hours

MSBI( SSAS, SSIS, SSRS) Course Content:35-40hours MSBI( SSAS, SSIS, SSRS) Course Content:35-40hours Course Outline SQL Server Analysis Services Course Content SSAS: What Is Microsoft BI? Core concept BI is the cube or UDM Example cube as seen using Excel

More information

MSBI. Business Intelligence Contents. Data warehousing Fundamentals

MSBI. Business Intelligence Contents. Data warehousing Fundamentals MSBI CAC Noida is an ISO 9001:2015 certified training center with professional experience that dates back to 2005. The vision is to provide professional education merging corporate culture globally to

More information

Configuring the Oracle Network Environment. Copyright 2009, Oracle. All rights reserved.

Configuring the Oracle Network Environment. Copyright 2009, Oracle. All rights reserved. Configuring the Oracle Network Environment Objectives After completing this lesson, you should be able to: Use Enterprise Manager to: Create additional listeners Create Oracle Net Service aliases Configure

More information

Netwrix Auditor for Active Directory

Netwrix Auditor for Active Directory Netwrix Auditor for Active Directory Quick-Start Guide Version: 8.0 4/22/2016 Legal Notice The information in this publication is furnished for information use only, and does not constitute a commitment

More information

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use

More information

Introduction... xxxi Chapter 1: Introducing SQL Server In Depth... 2

Introduction... xxxi Chapter 1: Introducing SQL Server In Depth... 2 Introduction... xxxi Chapter 1: Introducing SQL Server 2012... 1 In Depth... 2 Why Use SQL Server?... 2 Features Introduced in SQL Server 2008 R2... 3 Master Data Services... 3 StreamInsight... 3 Multi-Server

More information

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX KillTest Q&A Exam : 70-447 Title : UPGRADE:MCDBA Skills to MCITP DB Admin by Using MS SQL 2005 Version : Demo 1 / 10 1.You are a professional level SQL Server 2005 database administrator in an international

More information

Perceptive TransForm E-Forms Manager 8.x. Installation and Configuration Guide March 1, 2012

Perceptive TransForm E-Forms Manager 8.x. Installation and Configuration Guide March 1, 2012 Perceptive TransForm E-Forms Manager 8.x Installation and Configuration Guide March 1, 2012 Table of Contents 1 Introduction... 3 1.1 Intended Audience... 3 1.2 Related Resources and Documentation... 3

More information

Installing SQL Server Developer Last updated 8/28/2010

Installing SQL Server Developer Last updated 8/28/2010 Installing SQL Server Developer Last updated 8/28/2010 1. Run Setup.Exe to start the setup of SQL Server 2008 Developer 2. On some OS installations (i.e. Windows 7) you will be prompted a reminder to install

More information

Jet Data Manager 2014 Product Enhancements

Jet Data Manager 2014 Product Enhancements Jet Data Manager 2014 Product Enhancements Table of Contents Overview of New Features... 3 New Standard Features in Jet Data Manager 2014... 3 Additional Features Available for Jet Data Manager 2014...

More information

Installation Guide: Migrating Report~Pro v20

Installation Guide: Migrating Report~Pro v20 Introduction... 2 Overview... 2 System Requirements... 3 Hardware Requirements... 3 Software Requirements... 4 Assumptions... 4 Notes... 4 Installation Package Download... 5 Package Contents... 5 Pre-Installation

More information

Salesforce Enterprise Edition Upgrade Guide

Salesforce Enterprise Edition Upgrade Guide Salesforce Enterprise Edition Upgrade Guide Salesforce, Spring 16 @salesforcedocs Last updated: February 11, 2016 Copyright 2000 2016 salesforce.com, inc. All rights reserved. Salesforce is a registered

More information

VMware AirWatch Database Migration Guide A sample procedure for migrating your AirWatch database

VMware AirWatch Database Migration Guide A sample procedure for migrating your AirWatch database VMware AirWatch Database Migration Guide A sample procedure for migrating your AirWatch database For multiple versions Have documentation feedback? Submit a Documentation Feedback support ticket using

More information

System Pages (Setup Admins Only)

System Pages (Setup Admins Only) System Pages (Setup Admins Only) 1 Primary System Pages 2 More on Page Views & Sub Page Views 3 4 System Lookup Pages 5 6 7 Distinguishing Tables, Pages, Filtered Pages, & Page Views 8 9 Reasons to Create

More information

System Requirements for Microsoft Dynamics GP 2016

System Requirements for Microsoft Dynamics GP 2016 System Requirements for Microsoft Dynamics GP 2016 Overview This document contains the minimum client hardware requirements, server recommendations and Terminal Server minimum hardware requirements supported

More information

Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p.

Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p. Acknowledgments p. xxiii Introduction p. xxv Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p. 8 Transact-SQL p. 9 SQL

More information

Administering Microsoft SQL Server 2012 Databases

Administering Microsoft SQL Server 2012 Databases Course 10775A: Administering Microsoft SQL Server 2012 Databases Course Details Course Outline Module 1: Introduction to SQL Server 2012 and its Toolset This module introduces the entire SQL Server platform

More information

Inmagic Content Server v9 Workgroup Configuration Technical Guidelines

Inmagic Content Server v9 Workgroup Configuration Technical Guidelines Inmagic Content Server v9 Workgroup Configuration Technical Guidelines Last Updated: January, 2007 Inmagic, Inc. All rights reserved. Inmagic Content Server Today s organizations are depending more and

More information

IBM DB2 Query Patroller. Administration Guide. Version 7 SC

IBM DB2 Query Patroller. Administration Guide. Version 7 SC IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 Before using this information and the product it supports, be sure

More information

$99.95 per user. SQL Server 2008 Integration Services CourseId: 158 Skill level: Run Time: 42+ hours (210 videos)

$99.95 per user. SQL Server 2008 Integration Services CourseId: 158 Skill level: Run Time: 42+ hours (210 videos) Course Description Our is a comprehensive A-Z course that covers exactly what you want in an SSIS course: data flow, data flow, and more data flow. You will learn about transformations, common design patterns

More information

Microsoft. Designing Database Solutions for Microsoft SQL Server 2012

Microsoft. Designing Database Solutions for Microsoft SQL Server 2012 Microsoft 70-465 Designing Database Solutions for Microsoft SQL Server 2012 Download Full Version : https://killexams.com/pass4sure/exam-detail/70-465 QUESTION: 101 You have four databases that are accessed

More information

SQL Server 2005: Each Microsoft SQL Server 2005 component is designed. Preparing for a Smooth Upgrade

SQL Server 2005: Each Microsoft SQL Server 2005 component is designed. Preparing for a Smooth Upgrade SQL Server 2005: Preparing for a Smooth Upgrade To meet a new generation of data-management needs, Microsoft SQL Server 2005 has been reworked extensively to enhance performance and application programmability.

More information

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc.

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc. KB_SQL Release Notes Version 4.3.Q2 Copyright 2003 by All rights reserved., Ashburn, Virginia, USA. Printed in the United States of America. No part of this manual may be reproduced in any form or by any

More information

6232B: Implementing a Microsoft SQL Server 2008 R2 Database

6232B: Implementing a Microsoft SQL Server 2008 R2 Database 6232B: Implementing a Microsoft SQL Server 2008 R2 Database Course Overview This instructor-led course is intended for Microsoft SQL Server database developers who are responsible for implementing a database

More information

POWER BI COURSE CONTENT

POWER BI COURSE CONTENT POWER BI COURSE CONTENT Why Power BI Training? Power BI is one of the newest additions to Office 365. In this course you will learn Power BI from beginner to advance. Power BI Course enables you to perform

More information

Symantec Backup Exec Quick Installation Guide

Symantec Backup Exec Quick Installation Guide Symantec Backup Exec 2010 Quick Installation Guide 20047221 Installing Backup Exec This document includes the following topics: System requirements Before you install About the Backup Exec service account

More information

Recently Updated Dumps from PassLeader with VCE and PDF (Question 1 - Question 15)

Recently Updated Dumps from PassLeader with VCE and PDF (Question 1 - Question 15) Recently Updated 70-467 Dumps from PassLeader with VCE and PDF (Question 1 - Question 15) Valid 70-467 Dumps shared by PassLeader for Helping Passing 70-467 Exam! PassLeader now offer the newest 70-467

More information