SQL Server MVP Volume 2

Total Page:16

File Type:pdf, Size:1020Kb

SQL Server MVP Volume 2 MANNING DEEP DIVES Volume 2 EDITED BY Kalen Delaney Louis Davidson Greg Low Brad McGehee Paul Nielsen Paul Randal Kimberly Tripp MVP AUTHORS Johan Åhlén ● Gogula Aryalingam ● Glenn Berry ● Aaron Bertrand ● Kevin G. Boles ● Robert Cain ● Tim Chapman ● Denny Cherry ● Michael Coles ● Rod Colledge John Paul Cook ● Louis Davidson ● Rob Farley ● Grant Fritchey ● Darren Gosbell ● Sergio Govoni ● Allan Hirt ● Satya Jayanty ● Tibor Karaszi ● Jungsun Kim ● Tobiasz Koprowski ● Hugo Kornelis ● Ted Krueger ● Matija Lah ● Greg Low ● Rodney Landrum ● Greg Larsen ● Peter Larsson ● Andy Leonard ● Ami Levin ● John Magnabosco Jennifer McCown ● Brad McGehee ● Siddharth Mehta ● Ben Miller ● Allan Mitchell ● Tim Mitchell ● Luciano Moreira ● Jessica Moss ● Shahriar Nikkhah ● Paul Nielsen Robert Pearl ● Boyan Penev ● Pedro Perfeito ● Pawel Potasinski ● Mladen Prajdi c´ ● Abolfazl Radgoudarzi ● Denis Reznik ● Rafael Salas ● Edwin Sarmiento Chris Shaw ● Gail Shaw ● Linchi Shea ● Jason Strate ● Paul Turley ● William Vaughn ● Peter Ward ● Joe Webb ● John Welch ● Allen White ● Thiago Zavaschi The authors of this book support the children of Operation Smile SQL Server MVP Deep Dives Volume 2 SQL Server MVP Deep Dives Volume 2 Edited by Kalen Delaney ■ Louis Davidson ■ Greg Low Brad McGehee ■ Paul Nielsen ■ Paul Randal ■ Kimberly Tripp MANNING SHELTER ISLAND For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: [email protected] ©2012 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Development editor: Cynthia Kane Manning Publications Co. Copyeditor: Liz Welch, Linda Recktenwald 20 Baldwin Road Project editor: Barbara Mirecki PO Box 261 Typesetter: Marija Tudor Shelter Island, NY 11964 Cover designer: Marija Tudor ISBN 9781617290473 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 16 15 14 13 12 11 To all the children of Operation Smile MVP authors and their chapters Johan Åhlén 53 Jennifer McCown 37 Gogula Aryalingam 57 Brad McGehee 36 Glenn Berry 31 Siddharth Mehta 60 Aaron Bertrand 19 Ben Miller 26 Kevin G. Boles 20 Allan Mitchell 59 Robert Cain 45 Tim Mitchell 51 Tim Chapman 38 Luciano Moreira 27 Denny Cherry 5 Jessica M. Moss 40 Michael Coles 46 Paul Nielsen 6 Rod Colledge 14 Shahriar Nikkhah 48 John Paul Cook 21 Robert Pearl 34 Louis Davidson 4 Boyan Penev 55 Rob Farley 2 Pedro Perfeito 58 Grant Fritchey 32 Pawel Potasinski 12 Darren Gosbell 54 Mladen Prajdic´ 28 Sergio Govoni 22 Abolfazl Radgoudarzi 48 Allan Hirt 7 Denis Reznik 29 Satya Jayanty 16 Rafael Salas 52 Tibor Karaszi 17 Edwin Sarmiento 44 Jungsun Kim 39 Chris Shaw 3 Tobiasz Koprowski 18 Gail Shaw 8 Hugo Kornelis 23 Linchi Shea 35 Ted Krueger 50 Jason Strate 33 Matija Lah 24 Paul Turley 43 Rodney Landrum 15 William Vaughn 42 Greg Larsen 9 Peter Ward 13 Peter Larsson 25 Joe Webb 10 Andy Leonard 47 John Welch 49 Ami Levin 1 Allen White 30 Greg Low 41 Thiago Zavaschi 56 John Magnabosco 11 vii brief contents PART 1 ARCHITECTURE ............................................... 1 1 ■ Where are my keys? 3 2 ■ “Yes, we are all individuals” A look at uniqueness in the world of SQL 16 3 ■ Architectural growth pains 26 4 ■ Characteristics of a great relational database 37 5 ■ Storage design considerations 49 6 ■ Generalization: the key to a well-designed schema 60 PART 2 DATABASE ADMINISTRATION .......................... 65 7 ■ Increasing availability through testing 67 8 ■ Page restores 79 9 ■ Capacity planning 87 10 ■ Discovering your servers with PowerShell and SMO 95 11 ■ Will the real Mr. Smith please stand up? 105 12 ■ Build your own SQL Server 2008 performance dashboard 111 13 ■ SQL Server cost recovery 121 14 ■ Best practice compliance with Policy-Based Management 128 15 ■ Using SQL Server Management Studio to the fullest 138 16 ■ Multiserver management and Utility Explorer—best tools for the DBA 146 ix x BRIEF CONTENTS 17 ■ Top 10 SQL Server admin student misconceptions 157 18 ■ High availability of SQL Server in the context of Service Level Agreements 167 PART 3 DATABASE DEVELOPMENT............................ 175 19 ■ T-SQL: bad habits to kick 177 20 ■ Death by UDF 185 21 ■ Using regular expressions in SSMS 195 22 ■ SQL Server Denali: what’s coming next in T-SQL 200 23 ■ Creating your own data type 211 24 ■ Extracting data with regular expressions 223 25 ■ Relational division 234 26 ■ SQL FILESTREAM: to BLOB or not to BLOB 245 27 ■ Writing unit tests for Transact-SQL 255 28 ■ Getting asynchronous with Service Broker 267 29 ■ Effective use of HierarchyId 278 30 ■ Let Service Broker help you scale your application 287 PART 4 PERFORMANCE TUNING AND OPTIMIZATION .... 297 31 ■ Hardware 201: selecting and sizing database server hardware 299 32 ■ Parameter sniffing: your best friend…except when it isn’t 309 33 ■ Investigating the plan cache 320 34 ■ What are you waiting for? An introduction to waits and queues 331 35 ■ You see sets, and I see loops 343 36 ■ Performance-tuning the transaction log for OLTP workloads 353 37 ■ Strategies for unraveling tangled code 362 38 ■ Using PAL to analyze SQL Server performance 374 39 ■ Tuning JDBC for SQL Server 384 PART 5 BUSINESS INTELLIGENCE .............................. 395 40 ■ Creating a formal Reporting Services report part library 397 BRIEF CONTENTS xi 41 ■ Improving report layout and visualization 405 42 ■ Developing sharable managed code expressions in SSRS 411 43 ■ Designing reports with custom MDX queries 424 44 ■ Building a scale-out Reporting Services farm 436 45 ■ Creating SSRS reports from SSAS 448 46 ■ Optimizing SSIS for dimensional data loads 457 47 ■ SSIS configurations management 469 48 ■ Exploring different types of enumerators in the SSIS Foreach Loop container 480 49 ■ Late-arriving dimensions in SSIS 494 50 ■ Why automate tasks with SSIS? 503 51 ■ Extending SSIS using the Script component 515 52 ■ ETL design checklist 526 53 ■ Autogenerating SSAS cubes 538 54 ■ Scripting SSAS databases – AMO and PowerShell, Better Together 548 55 ■ Managing context in MDX 557 56 ■ Using time intelligence functions in PowerPivot 569 57 ■ Easy BI with Silverlight PivotViewer 577 58 ■ Excel as a BI frontend tool 585 59 ■ Real-time BI with StreamInsight 597 60 ■ BI solution development design considerations 608 contents preface xxxv acknowledgments xxxix about Operation Smile xli about this book xliii about the editors xlv about SQL Server MVPs xlvi PART 1 ARCHITECTURE ................................................ 1 EDITED BY LOUIS DAVIDSON Where are my keys? 3 1 AMI LEVIN Keys in the relational model 4 The debate 5 The arguments 6 Pro artificial keys 6 ■ Pro natural keys 8 Additional considerations 10 Natural keys assist the optimizer 11 ■ Artificial keys are the de facto standard 12 ■ Modularity, portability, and foreseeing the future 12 IDENTITY columns may result in value gaps and “run out” of values 13 Recommendations 13 Simplicity and aesthetics 14 Summary 14 xiii xiv CONTENTS “Yes, we are all individuals” 2 A look at uniqueness in the world of SQL 16 ROB FARLEY Introducing uniqueness 16 Constrained to uniqueness 16 Primary keys 17 ■ Unique constraints 18 ■ Unique indexes 19 Unique constraint or unique index? 19 Advantages of the unique index 19 ■ Advantages of the unique constraint 20 Uniqueness in results 20 The good and the bad of DISTINCT 20 ■ DISTINCT or GROUP BY 21 ■ Are they needed at all? 22 ■ Unnecessary grouping 23 Being guided by “that” error 24 Summary 25 Architectural growth pains 26 3 CHRIS SHAW Manage your data types 27 IDENTITY case in point 27 ■ Database design and scalability 28 Naming conventions 28 Inconsistent design 29 Normalization 30 Overnormalized 30 ■ Undernormalized 30 Primary keys and foreign keys 31 GUIDs as primary keys 31 ■ System-generated integers as primary keys 32 ■ Generating your own ID values 32 Indexes 33 Underindexing 33 ■ Overindexing 35 ■ Maintenance 35 Fill factor 36 Summary 36 Characteristics of a great relational database 37 4 LOUIS DAVIDSON Coherent 38 Standards based 38 ■ Reasonable names and data types 39 Cohesive 40 ■ Needs little documentation 40 CONTENTS xv Normal 40 Fundamentally sound 41 Documented 42 Secure 43 Encapsulated 44 Well performing 46 Summary 47 Storage design considerations 49 5 DENNY CHERRY Selecting the correct RAID type 49 RAID 0 49 ■ RAID 1 50 ■ RAID 5 51 ■ RAID 6 51 RAID 10 52 ■ RAID 50 52 ■ When to use RAID 5 52 When to use RAID 6 53 ■ When to use RAID 10 53 File placement 53 Index files 54 ■ Transaction log files 54 ■
Recommended publications
  • The Following Documentation Is an Electronically‐ Submitted Vendor Response to an Advertised Solicitation from the West
    The following documentation is an electronically‐ submitted vendor response to an advertised solicitation from the West Virginia Purchasing Bulletin within the Vendor Self‐Service portal at wvOASIS.gov. As part of the State of West Virginia’s procurement process, and to maintain the transparency of the bid‐opening process, this documentation submitted online is publicly posted by the West Virginia Purchasing Division at WVPurchasing.gov with any other vendor responses to this solicitation submitted to the Purchasing Division in hard copy format. Purchasing Division State of West Virginia 2019 Washington Street East Solicitation Response Post Office Box 50130 Charleston, WV 25305-0130 Proc Folder : 702868 Solicitation Description : Addendum No 2 Supplemental Staffing for Microsoft Applicatio Proc Type : Central Contract - Fixed Amt Date issued Solicitation Closes Solicitation Response Version 2020-06-10 SR 1300 ESR06092000000007338 1 13:30:00 VENDOR VS0000020585 Cambay Consulting LLC Solicitation Number: CRFQ 1300 STO2000000002 Total Bid : $370,750.00 Response Date: 2020-06-09 Response Time: 09:51:40 Comments: FOR INFORMATION CONTACT THE BUYER Melissa Pettrey (304) 558-0094 [email protected] Signature on File FEIN # DATE All offers subject to all terms and conditions contained in this solicitation Page : 1 FORM ID : WV-PRC-SR-001 Line Comm Ln Desc Qty Unit Issue Unit Price Ln Total Or Contract Amount 1 Temporary information technology 2000.00000 HOUR $72.170000 $144,340.00 software developers Comm Code Manufacturer Specification
    [Show full text]
  • Simple Talk Newsletter, 14Th May 2012
    What Counts For a DBA: Imagination Published Thursday, May 10, 2012 10:36 PM "Imagination…One little spark, of inspiration… is at the heart, of all creation." – From the song "One Little Spark", by the Sherman Brothers I have a confession to make. Despite my great enthusiasm for databases and programming, it occurs to me that every database system I've ever worked on has been, in terms of its inputs and outputs, downright dull. Most have been glorified e-spreadsheets, many replacing manual systems built on actual spreadsheets. I've created a lot of database-driven software whose main job was to "count stuff"; phone calls, web visitors, payments, donations, pieces of equipment and so on. Sometimes, instead of counting stuff, the database recorded values from other stuff, such as data from sensors or networking devices. Yee hah! So how do we, as DBAs, maintain high standards and high spirits when we realize that so much of our work would fail to raise the pulse of even the most easily excitable soul? The answer lies in our imagination. To understand what I mean by this, consider a role that, in terms of its output, offers an extreme counterpoint to that of the DBA: the Disney Imagineer. Their job is to design Disney's Theme Parks, of which I'm a huge fan. To me this has always seemed like a fascinating and exciting job. What must an Imagineer do, every day, to inspire the feats of creativity that are so clearly evident in those spectacular rides and shows? Here, if ever there was one, is a role where "dull moments" must be rare indeed, surely? I wanted to find out, and so parted with a considerable sum of money for my wife and I to have lunch with one; I reasoned that if I found one small way to apply their secrets to my own career, it would be money well spent.
    [Show full text]
  • SQL+Comparison+SDK+10.Pdf
    1. SQL Comparison SDK 10 documentation . 2 1.1 Installing . 3 1.2 Licensing and distribution . 4 1.2.1 Licensing the SQL Comparison SDK . 5 1.2.2 Licensing for ASP.NET applications . 6 1.2.3 Distributing your SDK applications . 7 1.2.4 Licensing automated builds with NAnt . 8 1.2.5 Licensing SDK applications in Visual Studio 2010 . 11 1.2.6 Manually licensing Redgate assemblies . 12 1.3 Breaking changes in SQL Comparison SDK 10.5 . 13 1.4 Getting more from the SQL Comparsion SDK . 15 1.4.1 Creating an HTML report of schema differences in C# . 16 1.4.2 Creating an HTML report of schema differences in Visual Basic .NET . 23 1.4.3 Creating a deployment script without batch markers . 30 1.4.4 Running SQL code inside SQL Comparison SDK applications . 31 1.4.5 Using SQL Data Compare mappings in projects using the API . 32 1.4.6 Excluding a table from a data comparison . 35 1.4.7 Executing your own SQL queries together with SDK synchronization . 36 1.5 Troubleshooting . 39 1.5.1 Troubleshooting the SQL Comparison SDK . 40 1.5.2 'Error 1603' occurring during installation . 42 1.5.3 SQL Compare deployment error 'Full-Text Search is not installed' . 43 1.5.4 Application licensing invalidated by renaming assembly . 44 1.5.5 Compatibility of SQL Comparison SDK in 64-bit environments . 45 1.5.6 Licenses.licx is not a valid Win32 application . 46 1.6 Release notes and other versions . 47 1.6.1 SQL Comparison SDK 10.7 release notes .
    [Show full text]
  • 1. ANTS Memory Profiler 7 Documentation
    1. ANTS Memory Profiler 7 documentation . 3 1.1 Requirements . 4 1.2 Installing . 5 1.3 Licensing . 6 1.3.1 Activating . 7 1.3.2 Deactivating . 13 1.3.3 Troubleshooting licensing and activation . 16 1.4 Upgrading . 19 1.4.1 Upgrading to ANTS Memory Profiler 7 . 20 1.4.2 Using Check for Updates . 22 1.4.3 Troubleshooting Check for Updates errors . 24 1.5 Understanding memory problems . 25 1.5.1 Memory management primer . 26 1.5.2 Understanding ANTS Memory Profiler . 30 1.6 Setting up and running a profiling session . 31 1.6.1 Profiling an executable . 32 1.6.2 Profiling a web application . 33 1.6.2.1 Profiling on IIS . 34 1.6.2.2 Profiling on IIS Express . 35 1.6.2.3 Profiling on web development server . 36 1.6.2.4 Profiling SharePoint . 37 1.6.2.4.1 Profiling SharePoint 2010 . 39 1.6.3 Profiling a Silverlight application . 40 1.6.4 Profiling a Windows service . 42 1.6.5 Profiling COMplus servers . 43 1.6.6 Profiling XBAPs . 45 1.6.7 Attaching to a process . 47 1.6.7.1 Forcing your application to use .NET 4 . 49 1.6.8 Setting up performance counters . 50 1.6.8.1 Adding custom performance counters . 52 1.6.9 Using the Visual Studio add-in . 53 1.7 Strategies for memory profiling . 54 1.7.1 Checking for large object heap fragmentation . 55 1.7.1.1 Fragmentation notices in ANTS Memory Profiler 7 .
    [Show full text]
  • Redgate Compare Database Schema
    Redgate Compare Database Schema Is Jean-Pierre surmountable when Pail mosey meltingly? Suffruticose Kelley vulcanising iconically. Tabbie localise unquietly. Review the length can be identical, redgate database consistent at each stage and synchronisation mechanism for the need consulting professionals who can communicate effectively when the last trigger It crawls every other oracle schemas a redgate database schema compare should end encrypted, redgate sql source databases, triggers and update script to a column is. The command line arguments cannot be properly executed. The redgate compare database schema comparison tool will help! Visit and find the perfect comic strip or editorial cartoon for your presentation, textbook, and other publication need. An unhandled exception occurred. Forms application as example. Retaining the length and Data types: As the masking happens at the database level, Data types should be carefully observed. Derivatives are grouped by compare database schema precisely what database compare only appear depending upon import. Well, I intend to participate. It is worth noting that the tool does a differential comparison, so it deploys only the objects that are out of sync, reducing significantly the deploy times after the first run. Still one database at a time. Correct order does anyone who have no longer updates a redgate compare database schema in other time by default. Then you can save the comparison so that you can easily repeat the same comparison later or use it as the starting point for new comparison. Text representing the original file or folder being imported. Webform on the redgate database schema compare two files folder to list will be easily express yourself instantly with oracle.
    [Show full text]
  • ANTS Performance Profiler 6.3 July 2011
    ANTS Performance Profiler 6.3 July 2011 Note: these pages apply to a version of this product that is not the current released version. For the latest support documentation, please see http://documentation.red-gate.com Contents © Red Gate Software Ltd 2 Getting started .................................................................................................... 5 Worked example: Profiling performance of an algorithm ........................................... 6 Worked example: Profiling network overheads ....................................................... 10 Worked example: Profiling an ASP.NET application ................................................. 12 Worked example: Profiling from the command line ................................................. 17 Worked example: Profiling SQL queries ................................................................. 20 Setting up and running a profiling session ............................................................. 25 Working with application settings ......................................................................... 27 Setting up Charting Options ................................................................................ 30 Profiling .NET executables ................................................................................... 32 Profiling managed code add-ins ........................................................................... 33 Profiling ASP.NET applications running on IIS ........................................................ 35 Profiling SharePoint
    [Show full text]
  • Simple Talk Newsletter, 5Th March 2012
    No Significant Fragmentation? Look Closer… 28 February 2012 by Luciano Moreira If you are relying on using 'best-practice' percentage-based thresholds when you are creating an index maintenance plan for a SQL Server that checks the fragmentation in your pages, you may miss occasional 'edge' conditions on larger tables that will cause severe degradation in performance. It is worth being aware of patterns of data access in particular tables when judging the best threshold figure to use. n this article I’ll be describing an edge case related to logical and internal fragmentation within a specific index branch that may cause Iperformance issues, and also I’d like to contribute to the debate about the use of “global” thresholds for your maintenance plans. Let’s suppose you have a table with a structure that holds 5 rows per page and leaves almost no space to accommodate changes. After a complete index rebuild with a fillfactor of 100%, the pages would be almost full and you should see a minimal logical fragmentation in your index. Here is the script to generate the initial state of our database. Script 01 – Create database and tables with records CREATE DATABASE SimpleTalk GO USE SimpleTalk GO IF EXISTS (SELECT [name] FROM sys.tables WHERE [name] = 'HistoricalTable') DROP TABLE HistoricalTable GO CREATE TABLE HistoricalTable ( ID INT IDENTITY NOT NULL CONSTRAINT PK_ID PRIMARY KEY , ColumnA VARCHAR(1590) NULL , ColumnB VARCHAR(1000) NULL , EventDate DATETIME NULL ) GO -- Insert some records to simulate our history INSERT INTO HistoricalTable (ColumnA) VALUES (REPLICATE('SimpleTalk', 159)) GO 100000 UPDATE HistoricalTable SET EventDate = DATEADD(HOUR, ID - 100000, GETDATE()) GO ALTER TABLE dbo.HistoricalTable REBUILD WITH (FILLFACTOR = 100) GO Great! As many other DBAs would do, you take care of your indexes and deploy a maintenance plan that checks the fragmentation in your pages: If a certain threshold is met, and a 30% fragmentation is commonly mentioned, you would start a task to rebuild your indexes (let’s put reorganization aside for the sake of simplicity).
    [Show full text]
  • Aleksandar Tashev CV(En)
    Aleksandar Tashev E-mail: [email protected] Website: http://lnked.in/aleksandartashev Phone: +38977913525 TECHNICAL - Programming: C#, ASP.NET WebForms, ASP.NET MVC, ASP.NET Web API, SKILLS ASP.NET Core, ASP.NET SignalR - Database: MSSQL, MySQL - ORM: CodeSmith netTiers, Entity Framework, Entity Framework Core - Front-end: JavaScript, Angular 2+, jQuery, HTML, CSS - .NET UI tools: DevExpress Controls, Telerik Controls - Testing: Xunit, Moq, Selenium Browser Automation - Tracking systems: JIRA, Visual Studio Team Services - Source control tools: GIT (BitBucket), TFS, SVN - PSA software integration: Autotask, ConnectWise, SalesForce, Zendesk, Kaseya - Other tools: JetBrains ReSharper, Redgate SQL Compare, Redgate SQL Data Compare, Redgate SQL Source Control WORK Personal Programmer March 2020 — Present EXPERIENCE Senior Software Engineer / Team Lead Working as .NET developer on data-driven cloud products built on top of Microsoft technology stack. syNRG software & IT April 2018 — February 2020 solutions Senior Software Developer Developing & maintaining legacy software for the Help Desk industry while working as an integration developer on a software that connects multiple platforms including Autotask,ConnectWise, Zendesk, Kaseya, Salesfroce.Developed new APIs that communicate with Zabbix, Dynamics 365, FrontApp and Freshdesk. Working as part of a team on legacy software tools such as chat app, reporting dashboard and other company owned apps/services. The ServicePro December 2017 — March 2018 .NET Consultant Day to day activities include: - Direct reporting to the PM in charge. - Daily meetings with the team of developers/QA engineers. - Development of new functionalities in the system. - Troubleshooting and resolving tickets reported by clients. Babylon Software Solution June 2017 — November 2017 Development Team Lead (.NET) Aleksandar Tashev 1 - Leading a team of software developers while working on one of the company's biggest international project (for the events industry).
    [Show full text]
  • Visual Studio 2017 All You Need to Deliver Any App on Any Platform
    Grey Matter Issue 71 | Spring 2017 Building on 34 years of software know how Visual Studio 2017 All you need to deliver any app on any platform Cloud Security Keeping your data secure and legal WIN! See page 8 Lifecycle Management for details How Visual Studio 2017 can help with ALM Contents Editorial Editor: .....................................................................Matt Nicholson Technical editors: .. Sean Wilson, Paul Edwards Editorial advisor: ............................................Julia Hopkins News editor: ...................................................... Paul Stephens Publisher: ..................................................................Andrew King Contributors: ........Tim Anderson, Simon Bisson, Mary Branscombe, Kay Ewbank, Jon Visual Studio 2017 Security in the cloud Honeyball, Graham Keitch, Paul Stephens 10 22 Design and layout: ..................................... Jason Stanley The latest version of Microsoft’s flagship How to stay secure and legal when Illustration: ............................................................Sholto Walker development suite. you’re operating in the cloud. Web Design: ........................................................Jason Stanley Advertising & Circulation Software News Marketing: ............................................................Leanne Bevan Welcome 4 GrapeCity, Intel, Microsoft, Redgate, Security and privacy are two sides of a coin that has long bugged Trimble and more. 01364 654100 our society. On the one hand most of us consider that we have
    [Show full text]
  • Simple Talk 21St Feb 2011]
    Homepage Opportunity Nokia's [Thu, 17 Feb 00:00] The editor finds hope in Microsoft's alliance with Nokia. These are two companies that need each other's help in the Smartphone market, and the result could surprise the industry.... Correlating SQL Server Profiler with Performance Monitor [Wed, 16 Feb 00:00] Both Performance Monitor and SQL Server Profiler provide valuable information about your server. However, if you combine the data from the two sources, then this correlated information can help find some of the subtler bugs. Brad explains how. SQL Scripts Manager with PowerShell [Thu, 17 Feb 00:00] SQL Scripts Manager was released as a Christmas present to Simple-Talk subscribers. William Brewer then wrote an appreciation of the tool. Now, he reveals a secret:: It also runs PowerShell scripts, and hence, SMO. He has the scripts to prove it, though hopefully, you'll soon be running your own PowerShell from SQL Scripts Manager. What Counts for a DBA: Skill [Tue, 15 Feb 00:00] “Practice makes perfect:” right? Well, not exactly. Different types of programming require different skill sets and you as a programmer must recognize the difference between the procedural languages and SQL, and treat them differently. Skill comes from practicing doing things the right way and making “right” a habit. Look-up Tables in SQL [Tue, 01 Feb 00:00] Lookup tables can be a force for good in a relational database. Whereas the 'One True Lookup Table' remains a classic of bad database design, an auxiliary table that holds static data, and is used to lookup values, still has powerful magic.
    [Show full text]
  • 1. ANTS Performance Profiler 7 Documentation
    1. ANTS Performance Profiler 7 documentation . 3 1.1 Requirements . 4 1.2 Installing . 5 1.3 Licensing . 6 1.3.1 Activating . 7 1.3.2 Deactivating . 13 1.3.3 Troubleshooting licensing and activation . 16 1.4 Upgrading . 19 1.4.1 Using Check for Updates . 20 1.4.2 Troubleshooting Check for Updates errors . 22 1.5 Setting up and running a profiling session . 24 1.5.1 Working with Application Settings . 26 1.5.2 Setting up Charting Options . 30 1.5.3 ANTS Performance Profiler Options . 32 1.5.4 Profiling .NET executables . 34 1.5.5 Profiling managed code add-ins . 35 1.5.6 Profiling ASP.NET applications running on IIS . 36 1.5.7 Profiling ASP.NET applications running on the web development server . 39 1.5.8 Profiling ASP.NET applications running on IIS Express . 41 1.5.9 Profiling SharePoint . 43 1.5.10 Profiling Silverlight applications . 45 1.5.11 Profiling Windows services . 47 1.5.12 Profiling a COMplus server application . 49 1.5.13 Profiling XBAP applications . 52 1.5.14 Attaching to a running .NET 4 process . 53 1.5.15 Profiling SQL queries in ANTS Performance Profiler 7.2 and later . 55 1.5.16 Profiling SQL queries in ANTS Performance Profiler 7.0 . 56 1.5.17 Profiling File IO . 60 1.5.18 Profiling tests in MSTest . 64 1.5.19 Profiling from the command line (API) . 65 1.5.20 Integrating ANTS Performance Profiler in a test procedure . 70 1.5.21 Using the Visual Studio add-in .
    [Show full text]
  • 1. SQL Packager 7 Documentation
    1. SQL Packager 7 documentation . 2 1.1 Requirements . 3 1.2 Installing . 4 1.3 Licensing . 5 1.3.1 Activating . 6 1.3.2 Deactivating . 12 1.3.3 Troubleshooting licensing and activation . 15 1.4 Upgrading . 18 1.4.1 Using Check for Updates . 19 1.4.2 Troubleshooting Check for Updates errors . 21 1.5 Creating the package . 22 1.5.1 Working with projects . 23 1.5.2 Choosing a project type . 24 1.5.3 Specifying the package contents . 25 1.5.4 Previewing the SQL scripts . 31 1.5.5 Generating a package . 33 1.5.5.1 Generating a .NET executable . 34 1.5.5.2 Generating a C# project . 36 1.5.6 Entering extra package information . 38 1.6 Running the package . 40 1.6.1 Understanding the results . 43 1.7 Setting packaging options . 45 1.7.1 Setting schema packaging options . 46 1.7.2 Setting data packaging options . 51 1.7.3 Setting SQL Packager options . 54 1.8 Using the command line . 55 1.8.1 Basic command line features . 56 1.8.2 Examples using the command line . 58 1.8.3 Frequently asked questions for the command line . 59 1.8.4 Integrating the command line with applications . 60 1.8.5 Using XML to specify command line arguments . 61 1.9 Worked examples . 62 1.9.1 Packaging a database as a .NET executable . 63 1.9.2 Packaging an upgrade as a C# project . 68 1.10 Getting more out of SQL Packager .
    [Show full text]