Solved

How to learn new data model / database application efficiently?

Posted on 2016-09-19
4
26 Views
Last Modified: 2016-11-03
Is there a term for what I clumsily call "learning the database?"   I am not talking about learning how to develop or use SQL Server, I mean how to learn how  particular database application works, what code does what, what tables serve what function.

IE I get handed a ginormous SQL database application chock full of objects with 0 documentation (what a shocker) and told "get familiar with this and then we will meet with stakeholders sometime yesterday"

Is there a word for this?  Analysis seems to vague.  It's more like an autopsy, or "getting to know you".  Are there apps that help?

I've come up with some scripts that help.  There are 2 DMVs
sys.dm_sql_referencing_entities
sys.dm_sql_referenced_entities
the first shows all objects that touch an object, the other all the objects an object touches, which give me a good idea of what code does what.  

Also the DMVs that read the Execution plan data can reveal what code is used frequently.  

Armed with all this I can get a general sense of what tables and code are core and peripheral.
0
Comment
Question by:Hec Ramsey
4 Comments
 
LVL 65

Assisted Solution

by:Jim Horn
Jim Horn earned 250 total points
ID: 41805008
>Is there a word for this?
Yes, it's called 'job security' as competent developers work a project to support another lesser-competent developers undocumented crapware.

Perhaps a term you can use is 'technical debt', which loosely means that existing code is so hard to work with, or in your case learn in the first place, that future project and support costs are a lot higher then they otherwise would be if the code was coded correctly and well documented.
0
 

Author Comment

by:Hec Ramsey
ID: 41805194
I'm a contractor so I need to learn new DBs all the time, and my methods feel time consuming and inefficient, hunt and peck. There must be a better way, I imagine this is common in todays "flexible" workforce.

 Is there a best practice for this? And what is this task called?

Even well developed app has can have a large number of pieces and sprawl.  Years of revisions by numerous designers can also confuse things.  

In my experience even the poorly designed or developed stuff, if I dig around I find the developers where doing the best they could given the situation.  I've had a number of experiences where I was handed something by "Bob" that was a mess, and when I asked Bob I learned he was handed a mess by Mary, who was handed a ridiculous deadline by Frank, who was under the gun because of Susan, who had a regulatory date changed abruptly.
0
 
LVL 48

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 41806038
Unfortunally this happens a lot. Somebody spent years in a company doing stuffs practically alone and without documenting nothing. Then during a beautiful day he says "I quit" and gone for good. What left? A lot of work for his replacement. And everything to be done yesterday.

I'm afraid there's nothing much to do besides doing what you're doing now. Maybe a Case tool will help you with the database model. Here are a couple of them:
Toad Data Modeler
Erwin

Good luck with your project.
Cheers
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question