How to document database efficiently (tables, attributes with definition)? [closed] - sql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
We have a fairly large database (in SQL Server 2008) with many tables. We have just bought Red Gate's SQL Doc for documentation purposes. We would like to document this database in a detailed way. What is the best practice in documenting a database? How do you document your attributes with definitions? SQL Doc documents the database nicely but how to add attribute definitions to this document (is there some automagigal way)?

We use extended properties to "tag" constraints, tables, indexes, viws, procs, the lot. (we also use SQL doc)
It's mentioned on the interweb quite a lot too

I don't know of any automatic ways of doing this, it's a bit tedious, but worth it. There are a few ways to do this, one through the table designer (right clicking on a table, and choosing "design") and entering text into the "Description" property on each column, or you can also use the Database Diagramming Tool as described here:
http://devtoolshed.com/content/sql-create-table-add-description-column

You should check out this question on how to add a description to a column.
adding a column description
This way when you run your update scripts you can add descriptions to columns or tables with the extended properties that GBN mentioned

Related

Generate custom documentation (based on SQL table) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm currently using a software with its own command-line interface, accepting its own commands with parameters, but these commands are documented in several places and files, so I can't simply run doxygen on it, and its not possible to add documentation to these files now.
Dumping everything in one text document seems a bit annoying to use, so my first idea is to generate a table, SQL for example, and add the documentation there, with several columns, such as command and its description, arguments and description of them, example command, execution time, etc., and add some kind of GUI to easily display the commands.
Are there already solutions for this, especially easy to maintenance ones?
Or is it better to have a different approach for this, such as html based Helpfiles?
you could build one yourself or use some third party tools like REDGATE SQLdoc..
below is one example of how documentation is generated for one sample table as HTML,PDF as well

Are there any tools to visualize a complicated SQL join? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Given that many frameworks will create complicated (and maybe not so readable/logical) SQL queries, it would seem that having a tool to show, visually, how the joins were done might be a helpful tool. But I have not found such a tool.
I took a query that included a lot of tables and created a graphic as an example of what I think would be the output from such a tool:
The text on the links are the field names that are used in the join. The bold items are inputs to the query. The table names ending in digits are just repeat instances of the same table (ie Partner and Partner2 are the same table, just part of the query more than once).
I would like to be able to drop an SQL query into a tool and see a diagram like this. Possible?
I found this tool, it might be useful.
http://queryviz.com/online/
Although the SQL syntax supported looks to be quite limited..
You can get this sort of output using SQL Analyzer with SQL Server. Something similar exists for postgresql: I've never seen anything graphical for MySql or Oracle.
In other words: nothing generic (which is perhaps what one would expect given the complex and individual nature of database optimizer engines).

Freeware Query Builder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for some freeware Query Builder.
Query Builder in Aqua Data Studio allows you to visually build queries:
select the column you want returned
generates joins for you(you just select by which columns you want to join it)
Good question! I thought there were many DB tools that fit your description, but when I checked a commonly-sourced Wikipedia article (see comment below), I found that most free/open source DB management software does not have a visual query builder feature! (I build my queries from scratch, so this is not a feature I particularly need.)
The freeware version of Toad for Data Analysts is a good bet. You can download and use it for 120 days. After that time, you need to reinstall on your PC. You might need to check to see if you will get write-access to non-Oracle databases, but I do know you can at least get read access to most non-Oracle DBs.
You might also like SQL Developer, which has a more robust community of users than that of the Freeware Toad for Data Analysts. That will only give you read-only access to certain non-Oracle databases.

What is a good, free database scripting tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for a free tool that will allow me to specify a SELECT statement on a table and then generate the result set as a series of INSERT statements to transfer to another database. I have the SQL Publishing Wizard, but that only allows me to generate statements for the entire table, and I can't specify a WHERE clause to filter the data it publishes. So far the only tool I have seen is made by Red Gate, which my employer only gives to DBA's. Are there any free tools out there that will let me do the same thing, without having to go and bug a DBA everytime I need to update some data in a database?
SSMS Tools Pack has a good collection of features, including generating insert statements. Works on MS SQL 2005 and beyond.
I've used this one in the past, I don't think its been updated recently:
http://vyaskn.tripod.com/code/generate_inserts.txt

How to generate Entity-Relation diagram from SQL DDL? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
For example DbVisualizer can be used to connect to a DB and create nice diagram out of existing tables and their relations. But in this specific case I do not have a live database but I have bunch of create table and alter statements.
Is there any tool to generate similar diagrams out of SQL DDL?
I found the MySQL tool MySQL Workbench to do a great job. There is a Mac OS X version. More information can be found at http://dev.mysql.com/doc/index-gui.html.
SQLFairy will generate graphics from plain SQL DDL files:
http://sqlfairy.sourceforge.net/
Visual Paradigm for UML can do this.
I believe that Embarcadero's ERStudio can import a SQL script into a diagram, but it's a pricey tool to use just for something like this. You could always just create an empty database and run the scripts then point to that.