Presentation is loading. Please wait.

Presentation is loading. Please wait.

ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson.

Similar presentations


Presentation on theme: "ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson."— Presentation transcript:

1 ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson

2 Who are we Matthew TeegardenSteve Thomson Senior Consultant with Softchoice Specializing in System Center related technologies Titles Microsoft MVP: Enterprise Client Management Former SQL Server MVP Contributing Author System Center 2012 Unleased (SAMS)

3 Views MMS Minnesota 2014 What is a View? Creates a virtual table whose contents (columns and rows) are defined by a query. A view contains the data in one or more tables in the database. During setup, Configuration Manager creates the following SQL view types: Views against static (unchanging) tables. (note: views created during setup) Views that use data from tables with a dynamic (changing) schema.

4 ConfigMgr 2012 Views MMS Minnesota 2014 Views are the RECOMMENDED and SUPPORTED method of querying a Configuration Manager database. Source: SQL Server Views in System Center 2012 Configuration Manager http://technet.microsoft.com/en-us/library/dn581978.aspx

5 “Capture SQL” Queries MMS Minnesota 2014 Two techniques: Smsprov.log - WMI/SQL translation SQL profiler - Capture SQL sent to database directly from SQL Server

6 References MMS Minnesota 2014 Source: SQL Server Views in System Center 2012 Configuration Manager http://technet.microsoft.com/en-us/library/dn581978.aspx Technical Reference for SQL Server Views in System Center 2012 Configuration Manager http://technet.microsoft.com/en-us/library/dn581974.aspx ConfigMgr 2012 R2 Views Guide https://gallery.technet.microsoft.com/SCCM-Configmgr-2012-R2-SQL-5fefdd3b

7 Summary/Best practices Install and reference the SQL Server Books Online --try the examples! Build queries in an “incremental” manner Build base query, then enhance as needed Test queries on a smaller data base (or a restored test db), before implementing on large sites! As a starting point for new web reports Find a web report that is close to what you want and clone it Remember the sms provider log (smsprov.log) for WQL/SQL translation

8 Other resources Steve Thompson’s blog http://stevethompsonmvp.wordpress.com #devconnections

9 Session Title Evaluations Please provide session feedback by clicking the Eval button in the scheduler app. One lucky winner will get a free ticket to the next MMS! Visit all of our sponsors in the expo area and online! Platinum Sponsors: Gold Sponsors : MMS Minnesota 2014


Download ppt "ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson."

Similar presentations


Ads by Google