Index

images  A

Aggregate and analytic functions

    exercises

    framing clause

    OVER clause

        frame defining

        results

        use of

    windowing specifications

images  B

images  C

CASE expressions

    answers

    CHOOSE function

    COALESCE and NULLIF functions

    control-of-flow statements

        BEGIN and END keywords

        GOTO statement

        IF…ELSE statement

        RETURN statement

        WAITFOR statement

        WHILE, BREAK, and CONTINUE statements

    cursors

        administrative tasks

        ALTER INDEX statement

        comparisons

        cursor-based Index

        DBCCs

        dbo.RebuildIndexes procedure

        design patterns

        @IndexList table

        meaning

        options

        T-SQL extended syntax

    IIF statement

    pivot tables

        dynamic queries

        nvarchar variable

        script grabs

        SELECT queries

        SQL table queries

        static pivot table

        type queries

    search expression

    simple expression

        NULL

        results

        subqueries

        West Coast

    three-valued logic

        CWA

        IS NULL and IS NOT NULL

        NULL

        propositions

        quick reference chart

CLR integration programming

    advantages

    answers

    assemblies

        AUTHORIZATION clause

        CREATE ASSEMBLY statement

        debugging

        .NET namespaces and classes

        project

        steps

    guidelines

    Open Data Services

    stored procedures

        Environment.GetEnvironmentVariables() functions

        exception

        execution

        GetEnvironmentVars() method

        namespaces

        SampleProc class

        SendResultsStart() method

    triggers

        INSERT/UPDATE statement

        namespaces

        results

        Transaction.Current.Rollback() method

        validation

    user-defined aggregates

        advanced creation

        creation

        methods

    user-defined data types

        advantages

        attributes

        complex number

        declaration

        demonstration

        IsNull and Null properties

        math operator methods

        NULL

        Parse method

        static properties

        ToString() method

        UDT

    user-defined functions

        CREATE FUNCTION statement

        EmailMatch function

        expression

        EXTERNAL_ACCESS

        fill-row method

        GetYahooNews() function

        results

        YahooRSS

Common table expressions (CTE)

    answers

    benefits

    definition and declaration

    exercises

    multiple CTEs

        GetNamesCTE and GetContactCTE

        joins

        WITH keyword

        queries

        readablility benefits

    overloading

    recursive queries

        anchor query

        BOM

        declaration

        MAXRECURSION option

        name and column list

        relationship

        restrictions

        SELECT statement

        UNION ALL

    syntax

images  D

Data Manipulation Language (DML)

    CREATE TRIGGER statement

    database audit

        action tables

        CASE expression

        CDC

        CREATE TRIGGER statement

        logging table

        @@ROWCOUNT function

        row insertion

        SELECT statement

        SET NOCOUNT

        sharing data

        testing

        trigger logging table

        UPDATE Statement

    disable and enable

    HumanResources.Employee table

    INSERT and DELETE statement

    multiple triggers

    nested and recursive triggers

    @@ROWCOUNT function

    SELECT and UPDATE

    SET NOCOUNT ON statement

    statement

    UPDATE() and COLUMNS_UPDATED() functions

        COLUMNPROPERTY() function

        NOCOUNT ON

        @@ROWCOUNT

        standard size

        testing

        trigger definition

        validation

    UPDATE statement

    views

Data services. See also Service Oriented Architecture (SOA); SQL Server 2012 Express LocalDB

    answers

    asynchronous programming

        code structure

        stored procedure

    execises

    ISV

    Java Database Connectivity (JDBC)

        Class.forName()

        classpath

        javac command line

        sqljdbc4.jar file

    Open DataBase Connectivity (ODBC)

        Apt-cache command

        build_dm.sh command

        Linux

        ln command

        shebang syntax

        sqlcmd

        tar.gz format

        TDS

        unixodbc driver

    WCF

        application project

        consumer application

        creation

        definition

        entity data model

Data types

    answers

    characters

    DATALENGTH() function, while

    date and time

        comparison

        DATEDIFF() and DATEADD() functions

        DATEDIFF() function

        declaration

        functions

        offset results

        BETWEEN operator

        rounding

        standard time zones

        UTC

    FILESTREAM

        access and manipulate

        access levels

        configuration information

        enable

        enabled tables

        filegroup creation

        FileTable

        limitations

        LOB data

    hierarchyid data types

        adjacency list model

        components

        conversion

        CTE

        descendant nodes

        INNER JOIN and LEFT OUTER JOIN

        materialized path model

        materials table

        methods

        nested sets model

    LEN() string function

    max

        LOB

        string concatenation

        WRITE clause

    numerics

    spatial data

        decomposing space

        flat representation

        geography instance

        GML format

        INDEX statement

        instance hierarchy

        latitude-longitude

        MultiPolygon object

        OGC

        orientation and hemisphere

        STIntersects() method

        types

        WKT strings

        wyoming polygon

    uniqueidentifier

        GUIDs

        NEWID() function

        NEWSEQUENTIALID() function

Data type, XML

    indexes

        creation options

        execution cost

        FLWOR expression

        query execution cost

        table valued function

        types

    methods

        exist() method

        modify() method

        nodes() method

        query() method

        types

        value() method

    rules

    typed xml variable/column

    untyped xml variables

Date and time data types

    comparison

    DATEDIFF() and DATEADD() functions

    DATEDIFF() function

    declaration

    functions

        CAST()

        CONVERT() function

        FORMAT() function

        Format() method

        SET LANGUAGE command

        SWITCHOFFSET() function

        SYSDATETIMEOFFSET() function

        time offset

        TODATETIMEOFFSET() function

    offset results

    BETWEEN operator

    rounding

    standard time zones

    UTC

Debugging tools

    PRINT statement

    SSMS integration

    trace flags

    Visual Studio T-SQL debugger

        dbo.uspGetBillOfMaterials procedure

        debug mode

        output window

        parameter values

Dynamic management views and functions

    answers

    categories

    connection information

    exercises

    expensive queries

        blocked queries

        cached query plan

    index metadata

        ALTER INDEX statements

        fragmentation

        stored procedure

        temporary objects

        triggers

    INFORMATION_SCHEMA views

        column information

        lists

    overview

    server resources

        configuration details

        databases

        dump files

        instance keys and values

        volume information

    session information

        retrieve

        summarization

    SQL execution

        OPTION (FORCE ORDER)

        statements

        sys.dm_exec_requests

    statistical semantics

        database

        features

        semantickeyphrasetable

        table columns

    sys.dm_fts_parser function

    sys.fulltext_index_fragments

    sys.sp_fulltext_resetfdhostaccount procedure

    tempdb space system

        object allocations

        session data

        tempdb queries

    unused indexes

    wait stats

images  E

Encryption

    answers

    asymmetric keys

        algorithms and limits

        ALTER ASYMMETRIC KEY statement

        AsymKeylD function

        BACKUP/RESTORE statements

        CREATE ASYMMETRIC KEY statement

        DMK and RSA

        EncryptByCert and DecryptByCert

        SignByAsymKey function

    certificate

        BACKUP CERTIFICATE statement

        CREATE CERTIFICATE statement

        DecryptByCert function

        EncryptByCert function

        limitations

        SignByCert function

    database master key

        ALTER MASTER KEY statement

        CREATE MASTER KEY statement

        DROP MASTER KEY

        ENCRYPTION BY PASSWORD clause

        FORCE keyword

        OPEN and CLOSE

        RESTORE MASTER KEY statement

    exercises

    extensible key management

    hashing data

    keys

    service master keys

    symmetric keys

        ALTER and DROP SYMMETRIC KEY statements

        CLOSE SYMMETRIC KEY statement

        CREATE SYMMETRIC KEY statement

        DMK

        EncryptByKey and DecryptByKey functions

        IV

        KeyGUID function

        metadata format

        WITH PASSWORD clause

        table creation

        temporary key

    transparent data encryption

Entity framework (EF)

    abstraction

    Contents

    database objects

    entity data model

    NHibernate

    O/RM framework

    pluralize/singularize

    properties

    querying entities

        AddObject() method

        advantage

        data modification

        execution

        INSERT operation

        object context

        ObjectSet

        SaveChanges() method

        T-SQL

    tables

Error handling

    answers

    exercises

    legacy

        @@error system function

        OUTPUT parameter

        PRINT statement

        RAISERROR statement

        TestError procedure

    RAISERROR statement

    THROW statement

    TRY_CAST function

    TRY…CATCH model

        CATCH block functions

        limitations

        sample code

        XACT_STATE function

    TRY_CONVERT function

    TRY_PARSE

EXtensible markup language (XML). See also XSL transformations

    answers

    data types

        indexes

        methods

        rules

        typed xml variable/column

        untyped xml variables

    execises

    OPENXML

        disadvantages

        document

        DOM representation

        edge table format

        existing table schem

        explicit schema

        flag option

        parameters

        queries

        rowset provider

        shredding

    schema

    SGML

    FOR XML clause

        AUTO keyword

        FOR XML EXPLICIT

        FOR XML PATH

        FOR XML RAW

images  F

FILESTREAM data types

    access level

    configuration information

    enable

    enabled tables

    filegroup creation

    FileTable

        ALTER TABLE

        databases

        directories

        DML statements

        functions

        parent path_locator

        SQL Server

        SSMS

        structure

        triggers

    functions

        directories

        FileTableRootPath() function

        GetFileNamespacePath()

        GetPathLocator() function

        hierarchyid functions

        @option

        queries

    limitations

    LOB data

    manipulate and access

FOR XML RAW

    mode options

    options

    queries

Full-text search (FTS)

    architecture

    catalog

        context menu option

        options

        T-SQL statements

        window

    CONTAINS predicates

        boolean operators

        FORMSOF generation

        NEAR clause

        prefix searches

        proximity search

        queries

        TRUE clause

    dynamic management views and functions

        statistical semantics

        sys.dm_fts_parser function

        sys.fulltext_index_fragments

        sys.sp_fulltext_resetfdhostaccount procedure

    exercises

    features

    FREETEXT predicate

        execution plan

        optimization

        parameter

        stemming

    FREETEXTTABLE and CONTAINSTABLE functions

        inflectional forms

        ISABOUT

        source table

    indexes

        ALTER FULLTEXT INDEX statement

        catalog

        change-tracking option

        column selection

        context menu

        single-column unique

        stopwords

        T-SQL statements

        wizard selection

    thesauruses and stoplists

        creation

        definition

        expansion set

        instructions

        reload

        replacement patterns

        tsenu.xml file

images  G

images  H

images  I

Indexes

    clustered indexes

    execution plans

    extended events

        configuration

        page splits or locking

        performance tuning session

        sessions

        table pop-up context menu

        target type

        templates

    filtered indexes

    guaranteed order

    heaps

    methodology

    nonclustered indexes

        bookmark lookup

        B-tree structure

        covering indexes

        lookup operation

        row identifiers (RIDs)

        types

    optimizing queries

    reading query plans

    statements

    waits

images  J, K

images  L

Language Integrated Query (LINQ)

    entity framework

        abstraction

        contents

        database objects

        entity data model

        NHibernate

        O/RM framework

        pluralize/singularize

        properties

        querying entities

        tables

    SQL

        designer

        object/relational mapping (O/RM)

        queries

        syntax

images  M

images  N

.NET client programming See also Language Integrated Query (LINQ) ADO.NET

        System.Data.Common

        System.Data namespace

        System.Data.Odbc

        System.Data.OleDb

        System.Data.SqlClient

        System.Data.SqlTypes

    answers

    ExecuteScalar() method

    exercises

    multiple active result sets

        connection string

        result sets

        single connection

        tasks

    nonquery

    parameterization

        declaration

        ExecuteReader() method

        injections

        performance

        SELECT statement

        SqlCommand

        SqlDbType enumeration

        SQL statement

        string query

        variables

Node

    comparison

    test

    types

images  O

OPENXML

    disadvantages

    document

    DOM representation

    edge table format

    existing table schema

    explicit schema

    flag option

    parameters

    queries

    rowset provider

    shredding

images  P

Performance enhancement and tuning

    answers

    exercises

    indexes

        clustered indexes

        execution plans

        extended events

        filtered indexes

        guaranteed order

        heaps

        methodology

        nonclustered indexes

        optimizing queries

        reading query plans

        statements

        waits

    SQL Server storage

        data compression

        files and filegroups

        partitions

        space allocation

        sparse columns

images  Q

images  R

images  S

Scalar function

    common table expression

    CREATE FUNCTION statement

    creation-time options

    ENCRYPTION option

    procedural code

        AdventureWorks database

        CASE expressions

        CREATE TABLE statement

        dbo.EncodeNYSIIS function

        encodes strings

        INSERT statement

        numbers table

        NYSIIS encoding rules

        SOUNDEX algorithm

        WHERE clause

    recursion

    RETURNS keyword

    SELECT statements

Service Oriented Architecture (SOA)

    ASMX

    contracts layer

    DCOM and CORBA

    HTTP requests

    ODBC

    RESTful

    WCF data service

        application project

        consumer

        creation

        definition

        EDM

    WCF layers stack

    Web Services

SQL client (SQLNCLI)

    classes

    data access connection

        DATA_SOURCE connection

        results

        SqlConnection connection string keys

        SqlDataReader instance

        try…catch blocks

    disconnected dataset

    disconnected datasets

        DataRow

        SqlDataAdapter

        System.Data classes and enumerations

SQLCMD

    command-line options

    commands

    scripting variable

        SETVAR and SET option

        steps

SQL Server

    data tools

    injection

SQL Server 2012. See also SQL Server Management Studio (SSMS)

    AdventureWorks OLTP and databases

    Books Online

    Bulk Copy Program

    exercise

    extended events

    integration services

    overview

    Profiler

        editing filters

        trace

        T-SQL events

    SQLCMD

        interactive screen

        osql command-line

        scripting variables

        text data

    SQL Server Data Tools

SQL Server Management Studio (SSMS)

    answers

    code snippets

        CREATE TABLE

        custom snippet command

        insert and surround command

        tools menu

    context-sensitive

        CREATE TABLE statement

        Help Viewer option

        search option

    DBA tool

    editing options

    Enterprise Manager and Query Editor

    graphical query execution

        estimation

        properties window

    GUI database tools

    IntelliSense

    keyboard shortcut schemes

    Object Explorer

        database tables

        details tab

        filtering objects

    project management features

    SELECT statement

    source control options

    T-SQL debugging

        breakpoints and Datatip

        locals and output windows

SQL Server storage

    data compression

    files and filegroups

    page compressions

        anchor record value

        column-prefix compression

        duplicate values

        methods

        page-dictionary compression

        recommendations

    partitions

    row compressions

        ALTER TABLE statement

        clustered index

        estimates

        vardecimal compression options

    space allocation

        data allocation

        dbo.LargeRows query

        differences

        estimated I/O cost

        GAM and SGAM

        limitations

        narrow rows

        SELECT query

    sparse columns

        nonsparse tables

        NULL values

        SELECT Queries

        sets

        XML format

Stored pocedures (SPs). See also Dynamic management views and functions; sp_executesql stored procedure

    answers

    API

    arguments

    cache and reuse query execution

    calling function

        ALTER PROCEDURE and DROP PROCEDURE statements

        EXECUTE statement

        MARS Connection

        options

        parameters

        Person.GetContactDetails

        Person.GetEmployee

        WITH RESULT SETS option

    CREATE PROCEDURE

    DROP PROCEDURE statement

    Environment.GetEnvironmentVariables() functions

    exception

    execution

    exercises

    feature

    function

    GetEnvironmentVars() method

    int parameter

    managing statement

    metadata discovery

    namespaces

    ORDER BY clause

    OVER clause

    practices

    ProductID and ProductSubcategorylD

    product list

    recommended products

    recompilation and caching

        dbo.GetRecompiledProcs

        EXECUTE statement

        GetProcStats Procedure

        nonclustered index

        overridden

        parameter sniffing

        parameter value

        query plan optimization

        resources

        returns list

        returns order

        SELECT query

        statistics

    recursion

        dbo.MoveDiscs

        dbo.MoveOneDisc

        dbo.ShowTowers

        dbo.SolveTowers

        discs

        Hanoi puzzle solution

        puzzle

        SELECT queries

    results

    RETURN statement

    running sum

    SampleProc class

    SELECT and RETURN statement

    SendResultsStart() method

    sp_help system

    table-valued parameters

        CREATE TYPE statement

        methods

        parameter

        restrictions

        SELECT queries

        table structure

    temporary

    TotalQtyOrdered

    user-defined functions

Structural query language (SQL)

    deferred query execution

    designer

        classes item

        server and database

        surface

        view and select tables

    join class

        equals keyword

        inner join

        non-equijoins

        results

        retrieves

    object/relational mapping (O/RM)

    orderby clause

    queries

        class

        enumeration

        foreach loop

        Main() method

        operators

        select keyword

        syntax

        where clause

Structured Query Language (SQL). See also Transact-SQL (T-SQL)

    acid test

    check constraints

    comparison

    databases

    data domain

    foreign key constraints

    indexes

    schemas

    SQL CLR

    statements

        components

        order of execution

        relational model

        subsets

        three-valued logic

        WHERE clause

    stored procedures (SPs)

    tables

    transaction log

    UDFs

    view

images  T

Table-valued functions (TVFs)

    inline function

        CASE expressions

        CREATE FUNCTION statement

        FnCommaSplit function

        Jackson

        Num and Element

        SELECT statement

        string-splitting function

    multistatement

        bin-packing problem

        CREATE FUNCTION keyword and RETURNS clause

        declaration

        fulfillment

        GROUP BY

        individual inventory and sales detail items

        INSERT INTO and SELECT clauses

        InventoryDetails subquery

        loop-based solution

        numbers table

        product pull list

        rules

        SELECT query

        WHERE/JOIN clause

Transact-SQL (T-SQL)

    answers

    elements

        defensive coding

        naming conventions

        one entry and one exit

        SELECT * statement

        variable initialization

        whitespace

    history

    imperative vs. declarative languages

    SQL

        acid test

        databases

        indexes

        schemas

        SQL CLR

        statements

        stored procedures

        tables

        transaction logs

        user-defined functions

        views

Triggers. See also Data Manipulation Language (DML)

    answers

    DDL

        CREATE TABLE statement

        CREATE TRIGGER statement

        DROP TRIGGER statement

        EVENTDATA() function

        event types and groups

        nodes() and value() methods

        results

    INSERT/UPDATE statement

    logon triggers

        CREATE TRIGGER statement

        creation

        EVENTDATA() function

        login

        ROLLBACK TRANSACTION statement

        sample data table

    namespaces

    results

    Transaction.Current.Rollback() method

    validation

images  U

User-defined aggregates (UDAs)

    Accumulate() method

    advances creation

        Merge() method

        properties

        Read() and Write() methods

        statistical median

        Terminate() method

    Merge() method

    methods

    namespaces

    results

    statistical range

    struct declaration

    Terminate() function

User-defined functions (UDFs) See also Table-valued functions (TVFs)

    answers

    CREATE FUNCTION statement

    EmailMatch function

    exercises

    expression

    EXTERNAL_ACCESS

    fill-row method

    GetYahooNews() Function

    parameters

    restrictions

        database

        deterministic function

        nondeterministic functions

        requirements

    results

    scalar function

        CASE expression

        common table expression

        CREATE FUNCTION statement

        creation-time options

        ENCRYPTION option

        procedural code

        recursion

        RETURNS keyword

        SELECT statements

    YahooRSS

images  V

images  W

Window functions. See also Aggregate and analytic functions

    exercises

    NTILE function

        OVER clause

        PARTITION BY and ORDER BY

        SalesPersonID

        SELECT query

    OFFSET and FETCH clause

        client-side paging

        implemetnation

        pagination

        restrictions

    RANK and DENSE_RANK functions

        differences

        information

        OrderMonth column

        OVER clause

        PARTITION BY clause

        ranking value

        SELECT query

        WHERE clause

    ROW_NUMBER function

Windows Communication Foundation (WCF). See also Service Oriented Architecture (SOA)

    application project

    consumer application

        aspx page

        features

        foreach

        namespace

        PageLoad event

        PopulateDropDown() function

        service reference

        UpdateImage() function

    creation

    data service, payload types

        application project

        entity access rules

        entity data model

        page calling

        queries

        service entity/operation

        string options

    definition

    EDM

images  X, Y, Z

XQuery

    answers

    arithmetic expressions

    axis specifiers

    comment node test query

    comparison, node

    conditional expressions (if…then…else)

    constructors and casting

    data types

    dynamic XML construction

        attribute constructor

        child node

        direct constructor

        numeric predicate

        results

    exercises

    expressions and sequences

        comma operator

        filter expression

        homogenous and heterogeneous sequences

        meaning

        parentheses

        primary expressions

        singleton atomic values

        types

    FLWOR expressions

        let keyword

        order by clause

        for and return Keywords

        where keyword

    functions

        built-in functions

        sql column function

        sql variable function

    integer division operator

    location paths

    namespaces

    node tests

    predicates

        general comparisons

        input sequence

        node comparisons

        value comparison operators

    primitive

    processing-instruction node test

    query() method

    relational model

    sequence

    step

    truth value

    XML query language

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset