SQLCmd Mode The T-SQL Easy Button

Slides:



Advertisements
Similar presentations
MCTS: Pass one of 28 exams (a few require more). Multiple counters are and
Advertisements

Automating Common DBA Tasks
Case Study: Designing a Global Scaled-out Architecture Robert L Davis
MCTS: Pass one of 42 exams (a few require two). Double counters are , 642, 680, 620, 432, 448, 662, 667, 664, 511, 513, 516, 536, 505, 562, 505,
MCTS: Pass one of 24 exams (a few require more). Multiple counters are and You can also choose.
▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while you learn! ‒ 50 MVA Points.
IT Pro Day Auditing in SQL Server 2012 Charley Hanania Principal Consultant, QS2 AG – Quality Software Solutions
Intro to SQL Server Performance Tuning By Robert Biddle.
+ Administering Microsoft SQL Server 2012 Databases Implementing a Data Warehouse with Microsoft SQL Server = Querying Microsoft SQL.
Intro to Spatial Data in SQL Server 2008 R2 Russ Burns MVT Sr. Apps Developer.
Alwayson Availability Groups
Join the MVA Community! ▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while.
Licensing SQL Server on a Virtual Platform Robert L Davis
Diagnosing Performance with Wait Statistics Robert L Davis Principal Database
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
James Serra Data Platform Solution Architect Microsoft JamesSerra.com.
Microsoft SQL Server Database & Business Intelligence Training Training/Placement/Certification Classroom/Online/Corporate Fast track/Regular/Weekend Contact.
Rolling Upgrades, The Easy Way Argenis Fernandez Senior Database Engineer,
Wharton Computer Consulting, Inc. PowerShell Basics for SQL Server One Tool to Manage All SQL Servers Michael Wharton
PASS BA Virtual Chapter Presents: “How to Calculate ROI of Analytics” July 23,
Business Continuity Management. Rick Taylor, MCSE, MCT – Principal Architect for Summit 7 Systems – –
By Robert Biddle.  Working with SQL Server for 8 years  Data Architect for Hilton Grand Vacations  Certified MCITP Database Administrator MCITP Database.
10 Things All BI Administrators Should Know Robert L Davis Database Engineer
Carlos Bossy Quanta Intelligence SQL Server MCTS, MCITP BI CBIP, Data Mining Real-time Data Warehouse and Reporting Solutions.
SQLSTARTER - INTRO TO DATABASE DEVELOPMENT Kevin Kline Technical Evangelist, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
PASS BA Virtual Chapter Presents: “ POWER BI, MISSION POSSIBLE! ” Aug 26,
Become a Microsoft Certified Professional of SQL Server Frank Qin Sacramento SQL User Group Meeting Feb. 4, 2015.
Associate Certification Track
Securing SQL Server Processes with Certificates
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Associate Certification Track
PASS Business Analytics Virtual Group & Ryan Wade
Achieve more in less time using the new SQL PowerShell
Policy Based Management: Introduction & implementation
Solving the Hard Problems
Associate Certification Track
SSIS Project Deployment: The T-SQL Way
Parameter Sniffing in SQL Server Stored Procedures
SQL Server on Linux on All-Flash Arrays
Exploiting SQL Server Security Holes
Performance Tuning 101: Parallelism
Visual Studio 2010 Database Projects
Troubleshooting SQL Server Connection Issues
SQL Server Security Mistakes Everyone Makes
Code-Less Securing of SQL Server
Associate Certification Track
How to Lose Your Job in 3 Easy Steps
PASS Business Analytics Virtual Group & Marek Matuszewski
PASS Business Analytics Virtual Group & Anupama Natarajan
SQLSaturday 393- May 16, Redmond, WA
The Ins and Outs of Indexes
SQL Server Mythconceptions And Mythteries
SSIS Project Deployment: The T-SQL Way
Associate Certification Track
Hidden gems of SQL Server 2016
Securing SQL Server Processes with Certificates
New Paradigm for Performance Tuning in SQL Server 2016
SQL Server Performance Tuning Nowadays
SQL Server Mythconceptions And Mythteries
SSIS Project Deployment: The T-SQL Way
What about the Data Dude?
SSIS Project Deployment: The T-SQL Way
T-SQL Tips & Tricks to Make Your Life Easier!
Associate Certification Track
PASS Business Analytics Virtual Group & Vijay Krishnan
SSIS Project Deployment: The T-SQL Way
Summit Nashville /26/2019 4:32 AM
Why should I care about SQL, if I have ORM?
The Ins and Outs of Indexes
The DBA Quit and now you’re it:
Presentation transcript:

SQLCmd Mode The T-SQL Easy Button Robert L Davis Database Engineer @SQLSoldier www.sqlsoldier.com SQLCmd Mode The T-SQL Easy Button

Agradecimiento a los patrocinadores Premium Silver Personal

Robert L Davis @SQLSoldier PASS Security Virtual Chapter Microsoft Certified Master Data Platform MVP @SQLSoldier www.sqlsoldier.com Database Engineer BlueMountain Capital Management 17+ years working with SQL Server PASS Security Virtual Chapter http://security.sqlpass.org Volunteers needed Database Engineer at BlueMountain Capital Management Foremer Principal Database Architect at DB Best Technologies www.dbbest.com Former Principal DBA at Outerwall, Inc Former Sr. Product Consultant with Idera Software Former Program Manager for SQL Server Certified Master program in Microsoft Learning Former Sr. Production DBA / Operations Engineer at Microsoft (CSS) Microsoft Certified Master: SQL Server 2008 / MCSM Charter: Data Platform Co-founder of the SQL PASS Security Virtual Chapter MCITP: Database Developer: SQL Server 2005 and 2008 MCITP: Database Administrator: SQL Server 2005 and 2008 MCSE: Data Platform MVP 2014 Co-author of Pro SQL Server 2008 Mirroring Former Idera ACE (Advisors & Community Educators) 2 time host of T-SQL Tuesday Guest Professor at SQL University, summer 2010, spring/summer 2011 Speaker at SQL PASS Summit 2010, 2011, and 2012 including a pre-con in 2012 Speaker/Pre-con at SQLRally 2012 17+ years working with SQL Server Writer for SQL Server Pro (formerly SQL Server Magazine) Member: Mensa Dog picture: Maggie and Woody SQLCruise instructor: Seattle to Alaska 2012 Speaker at SQL Server Intelligence Conference in Seattle 2012 Blog: http://www.sqlsoldier.com Twitter: http://twitter.com/SQLSoldier

SQLCmd Mode - The T-SQL Easy Button SQLCmd command line utility

SQLCmd Mode - The T-SQL Easy Button SQLCmd mode in SSMS

SQLCmd Mode - The T-SQL Easy Button Challenge #1: running the same query against multiple servers

SQLCmd Mode - The T-SQL Easy Button Challenge #1: running the same query against multiple servers Use CMS or Registered Servers, if you have the right groups set up

SQLCmd Mode - The T-SQL Easy Button Challenge #1: running the same query against multiple servers Use CMS or Registered Servers, if you have the right groups set up Run the query in SQLCmd mode

SQLCmd Mode - The T-SQL Easy Button Challenge #1: running the same query against multiple servers Use CMS or Registered Servers, if you have the right groups set up Run the query in SQLCmd mode Demo

SQLCmd Mode - The T-SQL Easy Button Challenge #2: Using variables for object names

SQLCmd Mode - The T-SQL Easy Button Challenge #2: Using variables for object names Use dynamic SQL

SQLCmd Mode - The T-SQL Easy Button Challenge #2: Using variables for object names Use dynamic SQL Use SQLCmd mode

SQLCmd Mode - The T-SQL Easy Button Challenge #2: Using variables for object names Use dynamic SQL Use SQLCmd mode Demo

SQLCmd Mode - The T-SQL Easy Button Challenge #3: Calling scripts directly

SQLCmd Mode - The T-SQL Easy Button Challenge #3: Calling scripts directly Copy/paste code into other scripts

SQLCmd Mode - The T-SQL Easy Button Challenge #3: Calling scripts directly Copy/paste code into other scripts SQLCmd mode

SQLCmd Mode - The T-SQL Easy Button Challenge #3: Calling scripts directly Copy/paste code into other scripts SQLCmd mode Demo

SQLCmd Mode - The T-SQL Easy Button Challenge #4: Use variables across batches

SQLCmd Mode - The T-SQL Easy Button Challenge #4: Use variables across batches Only one option: SQLCmd mode Demo

SQLCmd Mode - The T-SQL Easy Button Q & A

Thank you for attending! ¡Gracias! Thank you for attending! My blog: www.sqlsoldier.com Twitter: twitter.com/SQLSoldier More info on SQLCmd mode: https://msdn.microsoft.com/en-us/library/ms162773.aspx#sqlcmd%20Commands