Fastest way to build Console App Proof of Concept in Visual Studio Code

Step 1. Launch Visual Studio Code

Step 2. Terminal -> New Terminal or ctrl + shift + `

Step 2. Under Setting Terminal -> Integrated: CWD(Current Working Directory) set to c:\vscode

dotnet new console -o “ConsoleApp$(Get-Date -Format ‘yyyy-MM-dd-HHmm’)”; cd ConsoleApp$(Get-Date -Format ‘yyyy-MM-dd-HHmm’); code .\Program.cs

Switch between code and Terminal ctrl + `

Simple Sql Database Connection with Select Example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;

namespace DataBaseTest
{
class Program
{
static void Main(string[] args)
{
//1. Connect to database
SqlConnection myConnection = new SqlConnection(@"user id=UserName;" +
"password=**********;server=ServerName\\SQLEXPRESS;" +
"Trusted_Connection=yes;" +
"database=TravisTestDB; " +
"connection timeout=30");
myConnection.Open();
{ 
try
{
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand(@"select * from [User]", myConnection);
myReader = myCommand.ExecuteReader();
while (myReader.Read())
{
Console.WriteLine(myReader[0].ToString());
Console.WriteLine(myReader[1].ToString());
Console.WriteLine(myReader[2].ToString());
}
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}

myConnection.Close();
Console.Read();
}
}
}
}

 

SharePoint WCF WebService Post Example with JQuery Response

WCF Operation Contract

[OperationContract]
[WebInvoke(Method="POST", UriTemplate = "/AddNumbers", ResponseFormat= WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json, BodyStyle= WebMessageBodyStyle.WrappedRequest)]
int AddNumbers(int n1, int n2);

Interface Implementation

public int AddNumbers(int n1, int n2)
{
    return n1 + n2;
}

JQuery .ajax request

function AddThis()
{
    $.ajax(L_Menu_BaseUrl + "/_vti_bin/myServices.svc/AddNumbers",
        {type: "POST",
            data: JSON.stringify({ n1: 2, n2: 9 }),
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            success: function (data) {alert("Success: " + data),
error: function (XMLHttpRequest, textStatus, errorThrown) { alert("error: " + textStatus + errorThrown + XMLHttpRequest);}
     });
} 

$('#AddMe').click(function () { AddThis(); });

 

 

ITIL – Foundation Certification Outline

Learning Objectives

Knowledge and Understanding of the following

  • Service management as a practice
  • The ITIL service lifecycle
  • Generic concepts and definitions
  • Key principles and models
  • Selected processes
  • Selected functions
  • Selected roles
  • Technology and architecture
  • Competency and training

Service management as a practice

Define the concept of a service, and to comprehend and explain the concept of service management as a practice.

  • Describe the concept of best practices in the public domain
  • Describe and explain the concept of a service
  • Define and explain the concept of internal and external customers
  • Define and explain the concept of internal and external services
  • Define and explain the concept of IT service management
  • Define and explain the concept of stakeholder in service management
  • Define process and functions
  • Explain the process model and the characteristics of processes

The ITIL service lifecycle

Understand the value of the ITIL service lifecycle, how the processes integrate with each other, throughout the lifecycle, explain the objectives, scope and business value for each phase in the lifecycle.

  • Describe the structure of the ITIL service lifecycle
  • Account for the purpose, objectives and scope of the service strategy
  • Explain what value service strategy provides to the business
  • Account for the purpose, objectives and scope of service design
  • Explain what value service design provides to the business
  • Account for the purpose, objectives and scope of service transition
  • Explain what value service transition provides to the business
  • Account for the purpose, objectives and scope of service operation
  • Explain what value service operation provides to the business
  • Account for the purpose, objectives and scope of continual service improvement
  • Explain what value continual service improvement provides to the business

Generic concepts and definitions

Define  key terminology and explain the key concepts of service management.

  • Utility and warranty
  • Assets, resources and capabilities
  • Service portfolio
  • Service catalog (two and three view types)
  • Governance
  • Business cases
  • Risk management
  • Service provider
  • Supplier
  • Service level agreement
  • Operational level agreement
  • Underpinning contract
  • Service design package
  • Availability
  • Service knowledge management system (SKMS)
  • Configuration item (CI)
  • Configuration management system (CMS)
  • Definitive media library (DML)
  • Change
  • Change Type (standard, emergency and normaal)
  • Event
  • Alert
  • Incident
  • Impact, Urgency, & Priority
  • Servcie request
  • problem
  • workaround
  • known error
  • known error database (KEDB)
  • Role of communication in service operation
  • Release policy
  • Types of services
  • Change proposals
  • CSI register
  • Outcomes
  • Patterns of business activity (PBA)
  • Customers and users
  • Deming Cycle (plan, do, check, act)

Key principles and models

Understand models of service management and it’s opposing forces within service management.

Service stragegy

  • Value creation through services

Service design

  • 4 p’s  of service management (people, process, product & partners)
  • 5 aspects of service design
    • 1. Service solutions for new or changed service
    • 2. Management information system and tools
    • 3. Technology architectures and management architectures
    • 4. Processes required
    • 5. Measurement methods and metrics

Continual service improvement

  • Continual service improvement explination
  • Role of measurement for continual service improement and explain the following:
    • Relationship between critical success factors (CSF) and key performance indicators (KPI)
    • Baselines
    • Types of metrics (technology metrics, process metrics, service metrics)

Processes

How service management processes contribute to the service lifecycle. Explain the purpose, objective, scope, basic concepts, activities and interfaces of the

  • 4 core processes
  • 18 remaining processes

Service strategy

  • Service portfolio management
  • Financial management for IT services
  • Business relationship management

Service design

Purpose objectives, scope, basic concepts, process activities and interfaces fo:

  • Service level management (SLM)
    • Service-based SLA
    • Multi-level SLA
    • Service level requirements
    • SLA Monitoring
    • Service Review
    • Service improvement plan
    • Relationship between SLM and BRM
  • Service catalog management
  • Availability Management
    • Service availability
    • Component availability
    • Reliability
    • Maintainability
    • Serviceability
    • Vital business functions (VBF)
  • Information security management
    • Information security policy
  • Supplier management
    • Supplier categories
  • Capacity management
    • Capacity plan
    • Business capacity management
    • Service capacity management
    • component capacity management
  • IT service continuity management
    • Purpose of business impact analysis (BIA)
    • Risk assessment
  • Design coordination

Service transition

Identify purpose, objectives, scope, basic concepts, process activities and interfaces

  • Change management
    • Types of change management
    • Change models
    • Remediation planning
    • Change advisory board/ emergency change advisory board
    • Lifecycle of a normal change
  • Release and deployment management
    • 4 phase of release and deployment
  • Knowledge management
    • Data-to-information-toknowledge-to-wisdom (DIKW &SKMS)
  • Service asset and configuration management (SACM)
  • Transition planning and support

Service operation

Identify purpose, objectives, scope, basic concepts, process activities and interfaces

  • Incident management
  • Problem management
  • Event management
  • Request fulfillment

Continual service improvement

  • Seven steps of the improvement process

Functions

Explain roles, objectives and organizational structures of the service desk function

  • Explain role, objectives and organizational structures for:
    • Service desk
    • Technical management function
    • Application management function
    • IT operations management function

Roles

  • Process owner
  • Process manager
  • Process practitioner
  • Service owner
  • Responsible, accountable, consulted, informed (RACI) & organizational structure

Technology and architecture

  • Service automation & expediting service management

Competency and training

  • Service Management competence and skills
  • Framework
  • Training

ITIL Exam Format

  • Multiple choice 40 question test. The questions are selected from a full ITIL foundation certificate in the large question bank
  • Testers are allowed 60 minutes to answer the questions in their respective languages
  • If completing the exam in a language not your native tongue, an additional 15 minutes are allowed to complete the exam as well as a dictionary
  • The exam must be taken from an accredited testing center
  • The exam must be supervised
  • The exam is closed book
  • A passing score of 26/40 (65%) is needed
  • The exam can be taken online or in paper format

ITIL – Service Operations Overview

Overview

Coordinates activities to deliver at agreed levels. Where all service processes come together.

Process

  1. Event Management: detection of notifications of CI’s and Services
  2. Incident Management: Getting things working again
    1. Indecent Diagnosis
    2. Resolution/Recovery
    3. Closure
  3. Request Fulfillment: Access to standard IT Services
  4. Problem Management: Eliminating problems in IT Structure
  5. Access Management: user given rights to IT Service
  6. Operation Management

Roles

  1. Incident Manager
  2. First Line Support
  3. Second Line Support
  4. Third Line Support

Terms

  • Alert
  • Event
  • Impact
  • Incident
  • Known Error
  • Known Error Database (KEDB)
  • Priority
  • Problem
  • Service Request
  • Urgency
  • Workaround

How to view index words and count of full text catalog

SELECT * FROM sys.dm_fts_index_keywords(db_id(‘databasename’), object_id(‘tablename’))

SELECT * FROM sys.dm_fts_index_keywords_by_document(db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))

SELECT * FROM sys.dm_fts_index_keywords_by_property(db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))

SELECT * FROM sys.dm_fts_parser((db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))