Download presentation
Presentation is loading. Please wait.
1
SQLCmd Mode The T-SQL Easy Button
Robert L Davis Database Engineer @SQLSoldier SQLCmd Mode The T-SQL Easy Button
2
Agradecimiento a los patrocinadores
Premium Silver Personal
3
Robert L Davis @SQLSoldier PASS Security Virtual Chapter
Microsoft Certified Master Data Platform MVP @SQLSoldier Database Engineer BlueMountain Capital Management 17+ years working with SQL Server PASS Security Virtual Chapter Volunteers needed Database Engineer at BlueMountain Capital Management Foremer Principal Database Architect at DB Best Technologies 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: Twitter:
4
SQLCmd Mode - The T-SQL Easy Button
SQLCmd command line utility
5
SQLCmd Mode - The T-SQL Easy Button
SQLCmd mode in SSMS
6
SQLCmd Mode - The T-SQL Easy Button
Challenge #1: running the same query against multiple servers
7
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
8
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
9
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
10
SQLCmd Mode - The T-SQL Easy Button
Challenge #2: Using variables for object names
11
SQLCmd Mode - The T-SQL Easy Button
Challenge #2: Using variables for object names Use dynamic SQL
12
SQLCmd Mode - The T-SQL Easy Button
Challenge #2: Using variables for object names Use dynamic SQL Use SQLCmd mode
13
SQLCmd Mode - The T-SQL Easy Button
Challenge #2: Using variables for object names Use dynamic SQL Use SQLCmd mode Demo
14
SQLCmd Mode - The T-SQL Easy Button
Challenge #3: Calling scripts directly
15
SQLCmd Mode - The T-SQL Easy Button
Challenge #3: Calling scripts directly Copy/paste code into other scripts
16
SQLCmd Mode - The T-SQL Easy Button
Challenge #3: Calling scripts directly Copy/paste code into other scripts SQLCmd mode
17
SQLCmd Mode - The T-SQL Easy Button
Challenge #3: Calling scripts directly Copy/paste code into other scripts SQLCmd mode Demo
18
SQLCmd Mode - The T-SQL Easy Button
Challenge #4: Use variables across batches
19
SQLCmd Mode - The T-SQL Easy Button
Challenge #4: Use variables across batches Only one option: SQLCmd mode Demo
20
SQLCmd Mode - The T-SQL Easy Button
Q & A
21
Thank you for attending!
¡Gracias! Thank you for attending! My blog: Twitter: twitter.com/SQLSoldier More info on SQLCmd mode:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.