Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
demo Default WANGPSLookup Default WANGPS.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Co- location Mass Market Managed Hosting ISV Hosting.
Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
 Pablo Castro Software Architect Microsoft Corporation TL08.
Session 1.
Windows Azure Web Sites Speaker Title Organization.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
Migrating to Windows Azure SQL Database Name Title Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
A Windows Azure application runs multiple instances of each role A Windows Azure application behaves correctly when.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
public class Foo { Bar _bar; public Foo() { this._bar = new Bar(); } public class Foo { IBar _bar; public Foo(IBar barDependency) {

MIX 09 4/17/2018 4:41 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Возможности Excel 2010, о которых следует знать
Title of Presentation 12/2/2018 3:48 PM
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows 8 Security Internals
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field

… keep flexible Connect to SQL Server

SQL Server Browser service Is listening on port 1434 Responds with the ports of SQL instances to client requests Just holds instance names + ports of the local server Refreshes on every SQL Server instance startup Disable in secure envirionments SQL Server Browser service

SQL Server instance ports Dynamic or fixed but unique Bound to TCP/IP address Only one default instance or rather one 1433 What if applications can’t connect to dynamic ports You want to consolidate instances with default ports to a cluster or central SQL Server SQL Server instance port

Configure a fixed SQL Server port Use default port 1433 multiple times on same server If … every instance has a dedicated TCP/IP address Easy on a cluster  every instance must have a dedicated TCP/IP address For example (expected configuration) Server: sqlprod01– SQL instance: sql01 – /1433 SQL instance: sql02 – /1433 SQL Server fixed port – 1/2

SQL Browser list – if not configured correct sqlprod01\sql01  \1433 sqlprod01\sql02  \1433 uups! Use configuration manager Set port to 1433 and dedicated TCP/IP address to listen on Use DNS names to publish SQL instances even on clustered instances Let clients and applications connect to the DNS names SQL Server fixed port – 2/2

SQL Server connections are easy and flexible using DNS names No “server\instance” combination must be set on clients or applications Multiple instances with “default behaviour” can exist on same server Instance migrations from one to another server are then easier  no client or application customizing Upcoming SQL Server Denali will use a similar behaviour on availability groups Configure SQL connections

SQL Server connections configuration demo…

… keep performance Windows Server …

Configure Windows accordingly for SQL Server Power options – neat behind ;-) Disk alignment – almost forgotten Storage throughput and waits  long-lasting discussion Policies lock pages in memory perform volume maintenance tasks Antivirus Windows/System power

Windows Server performance demo…

… keep control Databases are growing …

Configure autogrowth but Set correct values  beware of latches + timeouts To maintain proper and parallel growing on data files use traceflag 1117 For TXLog only Check for VLFs on Txlog files periodically to optimize Txlog growth Set max autogrowth to 1024MB Better: growth manually to achieve as less VLFs as possible but a single VLF not > 512MB … and never use autoshrink DB Setting autogrowth

Lots of TXLogs … Substantial performance reduction on data changes SQL Server must search for empty TXLog extents Backups will last longer Database startup will take much more time Recovery will last “for ever” Create database mirror ends in timeouts and mirroring can not establish TXLog penalties

Maintain your databases Backup Txlog to … Keep control on Txlog size  what about recovery modes Allow point in time recovery Disaster prevention Indexes Reorg / Rebuild Create missing and maybe remove unused Statistics Update regularly and planned Keep performance …

SQL Server file growing and VLFs demo…

Keep online Database migration

First check and identify business and operations requirements Use upgrade advisor Inplace upgrade vs new installation Check for pros and cons Check with your requirements Migration preparation

Backup / restore Retain a way back Copy large backup files Define exact point in time to migrate (disconnect clients) Detach / copy / attach Retain a way back Copy all data- + Txlog- files downtime Migration scenarios 1/2

Log shipping Source DB stay as it is Time gap Many steps involved in right order Less downtime Database mirroring Source DB stay as it is Easy to setup Transaction synchronous Allmost no downtime Migration scenarios 2/2

Database migration using mirroring demo…

Please help us make TechDays even better by Evaluating this Session. Thank you! Give us your feedback!

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.