How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:

Slides:



Advertisements
Similar presentations
By: Jose Chinchilla July 31, Jose Chinchilla MCITP: SQL Server 2008, Database Administrator MCTS: SQL Server 2005/2008, Business Intelligence DBA.
Advertisements

Introduction to ReportSmith and Effective Dated Tables
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
CC SQL Utilities.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Virtual techdays INDIA │ 9-11 February 2011 virtual techdays Auditing Made Easy: Change Tracking and Change Data Capture Pinal Dave │ Technology Evangelist,
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Microsoft Access 2003 Introduction To Microsoft Access 2003.
The Use of Microsoft based Technologies for the benefit of the Community Prof. Avi Mendelson – Microsoft & Technion - Taub 643.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1.
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
SQL Server 2005 SP2 Israeli SQL Server User Group March 2005 Ami Levin
1 Working with MS SQL Server II. 2 The sqlcmd Utility Command line utility for MS SQL Server databases. Previous version called osql Available on classroom.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Windows Azure Tour Benjamin Day Benjamin Day Consulting, Inc.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Chapter 15: Using LINQ to Access Data in C# Programs.
3.01 – Understand Business Documents Mail Merge. Administration Congratulations in order! Objective 3.01 Business Documents Test –Test Wednesday –Review.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
Quick Reference notes  Part of the Microsoft® Office Fluent user interface, the ribbon is the rectangular region across the top of the document window.
CIS 338: Using Queries in Access as a RecordSource Dr. Ralph D. Westfall May, 2011.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Intro to SQL Management Studio. Please Be Sure!! Make sure that your access is read only. If it isn’t, you have the potential to change data within your.
1 Database Systems Introduction to Microsoft Access Part 2.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
O FFICE M ANAGEMENT T OOL - II B BA -V I TH. Abdus Salam2 Week-7 Introduction to Query Introduction to Query Querying from Multiple Tables Querying from.
Editing Attributes in ArcGIS Attributes – the data in records. e.g A parcel of land might be zone 3A residential. The field = TAG The attribute = 3A In.
Database Projects in Visual Studio Improving Reliability & Productivity.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
BTM 382 Database Management Chapter 8 Advanced SQL Chitu Okoli Associate Professor in Business Technology Management John Molson School of Business, Concordia.
Making the GUI work for you Tibor Karaszi
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Session Name Pelin ATICI SQL Premier Field Engineer.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Visual Studio Database Tools (aka SQL Server Data Tools)
Databases and SQL Databases SQL Rev 1.5
Efficiently Searching Schema in SQL Server
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Visual Studio Database Tools (aka SQL Server Data Tools)
Please thank our sponsors!
Data Management Innovations 2017 High level overview of DB
Parameter Sniffing: the Good, the Bad, and the Ugly
Parameter Sniffing: the Good,the Bad, and the Ugly
Parameter Sniffing: the Good, the Bad, and the Ugly
Understanding Core Database Concepts
Navigation to Smart List Builder
Presentation transcript:

How a little code can help with support.

Chris Barba – Developer at Cimarex Energy Blog: LinkedIn:

Provide some tools for your SQL toolbox. Some scripts to help with development and some help with support (some help with both). All of these scripts can be found on my blog. It’s where I put stuff I don’t want to lose. Items discussed today: SQL Server 2008 Intellisense not correct SQL Server 2008, can’t save changes to tables How to tell which version of SQL you’re running How to find out the last time your database was restored How to tell what SQL objects have been added/updated recently Record count of all tables in a database Search for string across all fields in all tables in a database SQL Server Keyword search across Stored Procedures, Functions, Triggers Track Changes to objects in your database

Intellisense info gets populated and stored in a cache. Sometimes it gets out of sync with reality For ex, If the query window was opened before the table was created How to fix Ctrl+Shift+r Warning: Be sure SSMS is the active window, this keyboard shortcut is used in other applications. Link to blog

SQL 2008 Management Studio can’t save changes to tables Microsoft recommends you script out all table changes Here is what you can’t do Change the Allow Nulls setting for a column Reorder the columns Change the column data type Add a new column How to fix Tools -> Options -> Designers -> Tables and Designers Uncheck the Prevent Saving Changes that require table re-creation Warning: This will conflict if you have Change Tracking turned off. With this option off, if you change a table all tracking changes will also be delete. Link to blog

The features available to you depend on the version of SQL Server you are running. Why does this matter: Asked to develop functionality that might not be available on the DB version. People might not actually know what version they have. Demo Script Super quick and easy method: Select Link to blog

When in an environment other than production you might not know how new the data is. You can see the last time a database was restored. Demo Script Link to blog

There are times when it helps to know what db objects have been added/updated recently. Track changes in production Know what changed during development Demo Script Link to blog

This helps to get an idea about what’s normal in terms of the volume of data. Sometimes you need a take a row count before and after doing something Demo Script Link to blog

There are times when you have data, but you don’t know where it is stored. This script will search every field in every database for a value. This helps when you have data and you don’t know where it’s stored. Demo Script Link to blog

There are times where you don’t know what proc, etc. is updating your table. Also you may need to know if a string is hard coded. Demo Script Link to blog.

This script will allow you to track when/what/who makes changes to DB objects. It creates an audit table and puts triggers on the database. More Warning: I don’t know where this triggers get created in the database. You need permissions to create a table in a database. Demo Script Link to blog.