| A community of more than 1,600,000 database professionals and growing |
| | An Unlikely Taste for Documentation and Archiving This editorial was originally published on November 10, 2014. It is being re-published as Steve is traveling. What information ought DBAs to retain about the databases they are responsible for? It is a question that intrigues me because I get so many different answers when I ask the question. I’ve never found a definitive source that gives me a firm ‘best practice’ answer, but I find it to be a good interview question just because it gives me an insight into the way that the candidates think about the servers they manage. I’ve been wondering rather more recently about this after reading the series of articles ‘The Mindset of the Enterprise DBA’ on Simple-Talk. Joshua Feierman makes the good point that there is no point trying to automate processes until you’ve completed the task of identifying, standardising, documenting and centralising these processes. ‘Once you have both standardized and documented all your processes, and centralized them wherever possible, you will then be able to fully exploit a method of decreasing the amount of busy work you have to suffer every working day, namely automating many of these processes’ Combine this with the obvious point made by William Brewer in ‘Database Configuration Management for SQL Server’ that these documents and scripts should, along with all configuration information, be kept in source control so one can track changes, and be absolutely certain of the canonical, or signed-off / accepted status of a script or document. I hate to write any document, script or list to do with my database work without a clear purpose. I’ve only got a finite supply of enthusiasm for communicating with myself. I find it easiest to think about the reasons for documenting DBA work. There are several good reasons, but if a reason doesn’t pop out of the woodwork, I don’t do the documentation. By archiving versions of databases, and all the scripts required to deploy them, it is possible to check for drift. By keeping baseline performance information, problem resolution and capacity planning is easier and more objective. By keeping build instructions for every component, it allows disaster recovery to be planned and executed more easily. By documenting all processes in detail, it means that if I’m ill or on holiday, I’m unlikely to be bothered. By keeping as much information as possible about changes, I’m sometimes thanked by auditors, but more often thanked by anyone tracking problems. By keeping configuration information and scripts as complete as possible, I help project managers to track development projects. For me, however, the most compelling reason is that it helps to automate as much deployment, and administration processes as possible. To meet the demands of continuous delivery, one has to adopt the automation mindset, and nothing helps this more if all the materials for a database application are stored in one place and available to colleagues. If the major processes are listed and understood, then one can identify similarities and thereby be more economical in the scripting. So, in general, what information (Scripts, configuration information, lists and documents) ought DBAs to retain about the databases they are responsible for? Phil Factor from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
|
| ADVERTISEMENT | | NEW SQL Provision: Create, protect, & manage SQL Server database copies for compliant DevOps Create and manage database copies effortless and keeps compliance central to the process. With SQL Provisions virtual cloning technology, databases can be created in seconds using just MB of storage, enabling business to move faster. Sensitive data can be anonymized or replaced with realistic data to ensure data is protected as it moves between environments. Download your free trial |
| |
|
|
| | | Raghavender Chavva from SQLServerCentral.com One small point to note when we receive the below error while connecting SQL server: The target principal name is incorrect. Cannot generate sspi context More » |
| Additional Articles from MSSQLTips.com In this tip we cover the basics of what needs to be done to setup a process to automate refreshing a dev or test environment with a recent database backup. More » |
| In this recent Redgate article Steve Jones provides a useful trick to Synchronize Custom Error Messages using SQL Data Compare More » |
| Prashanth Jayaram from SQLServerCentral Blogs This article is an in-depth guide on how PowerShell can be used to maintain and manage SQL backup on Linux... More » |
| Rob Sewell from SQLServerCentral Blogs I gave a presentation at SQL Day in Poland last week on dbachecks and one of the questions I got... More » |
|
|
| | Today's Question (by Steve Jones): If I run an unattended installation for SQL Server and use the /Q or /QS parameters, what parameter must be included? |
Think you know the answer? Click here, and find out if you are right. We keep track of your score to give you bragging rights against your peers. This question is worth 1 point in this category: Installation. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
ADVERTISEMENT | Automate your workload and manage more databases and instances with greater ease and efficiency by combining metadata-driven automation with powerful tools like PowerShell and SQL Server Agent. Automate your new instance-builds and use monitoring to drive ongoing automation, with the help of an inventory database and a management data warehouse. Get your copy from Amazon today. | | |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I have a data frame that looks like this: > HR.hitters rank players Hr 1 1 Barry Bonds 762 2 2 Hank Aaron 755 3 3 Babe Ruth 714 4 4 Alex Rodriguez 696 5 5 Willie Mays 660 6 6 Ken Griffey, Jr. 630 7 7 Albert Pujols 619 8 8 Jim Thome 612 9 9 Sammy Sosa 609 10 10 Frank Robinson 586 I want to get just the rows that have players who have hit more than 660 home runs (Hr) and return the entire row. What should I write? Answer: HR.hitters [HR.hitters$Hr>660,] Explanation: The bracket notation can filter the data frame by using the name of the column and an expression. In this case, we use HR.hitters$Hr > 660. This filters rows. Using a comma at the end will return all rows. Ref: Subset data frame - click here » Discuss this question and answer on the forums |
|
|
| | Jonas Gunnarsson from SQLServerCentral.com The procedure generates an import script for SQL Server Management Studio diagrams. Easy to use, takes one diagram name and an optional parameter, if is first diagram to script. List the database diagram(s) for current database: select * from sysdiagrams; The script is based on several other scripts, see the References section. Example of usage: execute tool.ScriptDiagram 'First', 1; execute tool.ScriptDiagram 'Second', 0; execute tool.ScriptDiagram 'Third', 0; Note Objects required to use database diagrams is added for owner, when clicking on Database Diagrams in SSMS. Further reading Getting started with SQL Server database diagrams Visual Database Tools References Using Large-Value Data Types Tool_ScriptDiagram.sql Script, Save, Export SQL Database Diagrams Revisions 1.3 2017-03-22 Fixed links and use only tab in code 1.4 2017-10-23 cleanup procedure 1.5 2018-05-25 cleanup procedure, no dates More » |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. Performance Problem Migrating DW from Tin to VM - Suspected CPU Issue - Hello TL;DR: Would increasing the number of logical threads that a machine has increase the performance of SSIS and the SQL Server... Upgrading SSIS Solution from 2014 to 2016 - Hi, I'm testing out an upgrade of our ETL solution from SSIS 2014 to 2016. These are the steps I've... NBU - dbbackex job error - Hello all, First of all let me clarify that I've entered the DBA world not too long ago and inherited a... YTD running balance including missing months - Hi All, I am trying to get the YTD Account Balances for a financial statement. There are accounts which does not... Security / Privileges - I granted DB Reader, DB Writer and DDL_Admin to a contractor. I haven't really seen the issue; but, I received... Group by not working as desired... - Dynamic SQL with Inner Join - Hi experts, How can i use Dynamic SQL with Inner join and Pickup in the Select Please see my below code declare... SQL Agent Job not providing full failure message for SSIS Packages - Good Morning, We are having an issue with 2012 SQL Servers not reporting why a job has failed, this is happening... GUIDs as clustered index - Hi All, Looking for some suggestions. Currently, In our system we have GUIDs are primary keys and as the database... How to get Last Occurance of % value in the string... - Hello Good Morning How to get Last Occurance of % value in the string... please help me with this situation CREATE Maximum Consecutive Count - I have sat with this problem for over two weeks now, it is time that I admit defeat. Time for... Query newbie question - I'm very new to TSQL but my job has expanded to include building some SSRS reports for our CRM environment.... KB4057113 Installation Issue - sqlsupport.msi - Ok, I'm trying to install this security patch. When I first started trying, it kept saying I can't files... I... Deleted SQL Agent Job Sending Failed Notifications - Hi All, 2008 R2 instance. We frequently copy databases for new DBs as it's a lot less work to get clients... Stored procedure running in loop is taking time to load . Is there any alternate way to run in a single execution ? - Hi All, I have an application where we will be showing the invoice and Plan backup reports for each recipient in... Backup to Network Share Folder - Hello I want to backup a database to a network share. I cannot do that because sql agent service is running as... detect if previous record is higher or lower ? - In it's simplest form if I had a table that stored a persons name, date that the record was entered,... Object variables, ADO Recordsets, & decrypting column - Ihope someone can help me out. My C# skills are nill, so I need a lot ofinformation. A bit of background:... Visual Studio 2017 - SSDT - Hi, I'm hoping someone can tell me that I'm mistaken and have missed something but I've installed Visual Studio Professional 2017... Move the files in 5 different folders based on File names ssis - Hi, I am new to SSIS.please help me with this. |
|
| This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. | This newsletter was sent to you because you signed up at SQLServerCentral.com. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here. | This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|