Presenting “PowerShell: Automating SQL Stats Collection”

on 10th oct 6.30 pm, i will be presenting “powershell: automating sql stats collection for performance tuning”@ at san francisco sql server user group, if you are in the area i hope to see you…

location:microsoft 835 market street, san francisco, ca

register here

session detail:use powershell to collect stats from all sql servers in your environment, storing them in a centralized database server, available for server baselining and performance tuning.

you’ll learn…

  • some of the key dmos used used in baseline/tuning
  • how to capture memory/cpu stats
  • how to capture queries stats along with actual execution plans
  • how to capture and evaluate database growth
  • how to capture database i/o stats
  • SQL Server 2012 Unattended Installation on Windows Server 8

    in part 5 will install sql server 2012 on 3 windows server 8 vm’s using gui and unattended installation to complete sql server 2012 next gen hadr labs prequisites

    installing new instance of sql server at the command prompt enables you to stadardized sql server installation, selective features to install and how they should be configured.

     

    previous posts on this series…

     

    installing sql server 2012 on windows server 8


     

    unattended installation of sql server 2012 on windows server 8

     

     

    Configure Windows Server 8 ISCSI Target

    In part 4 will configure Windows Server 8 ISCSI Target to complete SQL Server 2012 Next Gen HADR labs prequisites, In this Video will use domain controller to also play role of iSCSI target and create ISCSI disk then connects to this disk over the network to VM which then be using for setting up SQL Server FCI cluster

    in part 4 will configure windows server 8 iscsi target to complete sql server 2012 next gen hadr labs prequisites, iscsi is a technology which is part of windows server 8 which allows scsi commands to be shared over the network to enable cheap and simple network storage options. in this video will use domain controller to also play role of iscsi target and create a iscsi disk then connects to this disk over the network to vm will be using for setting up sql server fci cluster. using iscsi initiator creates a new disk on the vm, which will format and puts into action. this is very useful for creating clustering scenarios, reduces the complexity of managing shared nothing scsi id’s and can be a very cost effective storage scenario. while the simple setup shown in this video works fine in a lab environment, in real life you would connect to your iscsi disk using a dedicated high speed network cards on a private network to reduce latency.

     

    previous posts on this series…

     

    please watch this and comment…

     

     

    Configure Windows Server 8 Hyper-V and Domain controller

    In Part 3 video series to prepare SQL Server 2012 test lab using Windows Server 8 Beta Hyper-V, will configure Hyper-V, Parent disk for differential VHDs and a test domain controller using diff disk, for testing SQL Server 2012 Next Gen HADR test lab…

    in part 3 video series to prepare sql server 2012 test lab using windows server 8 beta hyper-v, will configure hyper-v, parent disk for differential vhds  and a test domain controller using diff disk, for testing sql server 2012 next gen hadr test lab…

     

     

    previous posts on this series…

     

    configure windows server 8 hyper-v, parent and differential disks

     

     

    configure windows server 8 domain controller

     

    let me know how do you like it…

    Windows Server 8 Hyper-V Lab boot from VHD

    Windows Server 8 Beta is out, check this video to use existing windows laptop/desktop to build VHD bootable Windows server 8 Hyper-v Test lab without formatting existing OS. You will learn how to boot to Windows Server 8 Virtual Hard Disk (VHD)…

    windows server 8 beta is out, check this video to use existing windows laptop/desktop to build vhd bootable windows server 8 hyper-v test lab without formatting existing os. you will learn how to boot to windows server 8 virtual hard disk (vhd)…

    check this post if you are looking to buy a desktop to see all components are compatible to hyperv and esxi5


    download: install-windowsimage powershell script

    steps: start powershell as administrator

    execute: set-executionpolicy unrestricted

    execute: cd c:sources

    execute: .install-windowsimage.ps1 –wim c:sourcesinstall.wim -apply -index 4 -destination x:

    download and install: easybcd 2.1

    Low Power SQL Server Test Lab on Windows Server 8 Hyper-V / ESXi5

    Windows Server 8 Beta is released, if you are looking to build a low cost, Low power PC which can server as 24×7 W7 HTPC as well as Windows Server 8 Hyper-V (Beta) or ESXi5 Hypervisor than this is what to start with…

    windows server 8 beta is released, if you are looking to build a low cost, low power pc which can server as 24×7 w7 htpc as well as windows server 8 hyper-v (beta) or esxi5 hypervisor than this is what to start with…

    i have got lots of questions about the test lab setup, where dba’s can try and test various scenarios to try out sql server 2012, i am sharing my setup which has been tested for windows server 8 & esxi5 hypervisor, low cost and lowest power 24×7 running….

    key considerations & features:

    • all key components are highly power efficient
    • low power consumption in idle mode 20 watt
    • max 45 watt power consumption in full load
    • supports windows 7 htpc (play blu-ray/wmc/netflix with ease)
    • supports windows server 8 (beta)
    • supports esxi5 hypervisor
    • this desktop supports booting esxi5 from usb (no need for hard disk)
    • this desktop supports booting windows server 8 hyper-v server from vhd’s
    • supports 4 vm’s with low load (fine for test vm’s)
    • **this configuration does not support windows 2008/r2, network driver not supported (hack and made it work can do though hyper-v will not be stable)
    • **supports windows to go (new windows 8 feature booting windows from usb), though its very slow as this motherboard supports usb 2.0 only

    in an ideal combination you can have this box running windows 7 htpc as default and boot to windows 8 hyper-v or esxi5 for testing as and when needed, or can be run exclusively for any of these systems…

    component price
    antec mini itx case isk300-65 watt adaptor this is one of the smallest case for mini itx motherboards and have external power adaptor of 65 watts, supports one thin external drive as well $71.74
    corsair vengeance low profile 8 gb cml8gx3m2a1600c9 low height ram 2 modules each 4 gb $49.99
    foxconn intel h67 mini itx h67s-b3 lowest power consuming h67 itx motherboard (very stable for this setup) didn’t want more features as they consume additional power, no usb3 or data 6gb $59.99
    core i3-2120t (low power 35 watts cpu) $128.00
    hard disk (use any available) use notebook hard drive for low power consumption, i had one available thus used. not included
    total cost $309.72

     

    caution: don’t expect this box to run full power 3-4 vm’s, test low performing vm’s will do just fine

    my usage:

    • i usually have 10+ vm’s configured with diff versions of windows and start only the ones i am testing to get best performance
    • runs esxi-5 hypervisor from usb stick
    • run windows server 8 beta from vhd
    • run 24×7 with 20watt idle power consumption

    next article will talk about configuring windows server 8 hyper-v (beta) running from vhdx (new windows 8 hyper-v format) to test sql server 2012…

    look forward to hear your thoughts/questions/suggestions….

    Detect Worst Performing SQL Queries – Part 3

    Best way to tune production server is to find out what are the queries executed in a particular duration and how many times it got executed, thus to concentrate on tuning top hitting queries ASAP…check out the video and scripts

    this series of videos will walk through how to detect worst performing sql queries which is slowing down microsoft sql server, after this session you should be able to achieve below objectives…

    1. how to find out during production peak hour what are the exact queries taking most of the resources and will benefit most from fine-tuning…
    2. how to use sql server dmo’s to gather what resources are the bottlenecks and which queries are causing those bottlenecks.
    3. demo – how to find which exact queries are taxing production systems resources based on cpu/disk/memory/network.

    please check videos for part 1 & part2  for previous videos of this series…

    scripts:

    to save right click on links and choose “save target as”

    scripts repository – github sample load generator to create test scenario’s

    24 Hours of Free, Nonstop SQL Server Training

    Join SQL Server experts as they take an in-depth look at the hottest SQL Server topics over 24 consecutive (and free!) technical webcasts. The learning starts on March 21, 2012 beginning at 00:00 GMT (that’s a March 20 evening start for the Americas).

    24 hours of pass watch from your home/office

    join sql server experts as they take an in-depth look at the hottest sql server topics over 24 consecutive (and free!) technical webcasts. the learning starts on march 21, 2012 beginning at 00:00 gmt (that’s a march 20 evening start for the americas).

    register today

    i personally love these sessions which you can watch from home comfort also some of my favorite speakers are talking on latest sql server topics….

    cindy gross on fitting microsoft hadoop into your enterprise bi strategy

    jessica m. moss on upgrading and overhauling your ssis packages for 2012

    jorge segarra on  stop! consolidate and listen!

    kendra little  on sql server first responder kit

    grant fritchey on what to look for in sql server 2012 execution plans

    complete session schedule