<p>I've been tasked with redesigning part of a ms-sql database structure which currently involves a lot of views, some of which contain joins to other views. </p>

<p>Anyway, I wonder if anyone here could recommend a utility to automatically generate diagrams to help me visualise the whole structure.</p>

<p>What's the best program you've used for such problems?</p>

[{'answer_id': 4117, 'author': 'Lance Fisher', 'author_id': 571, 'author_profile': 'https://Stackoverflow.com/users/571', 'pm_score': 0, 'selected': False, 'text': "<p>If you are talking about MS SQL Server tables, I like the diagram support in SQL Server Management Studio.  You just drag the tables from the explorer onto the canvas, and they are laid out for you along with lines for relationships.  You'll have to do some adjusting by hand for the best looking diagrams, but it is a decent way to get diagrams.</p>\n"}, {'answer_id': 4126, 'author': 'Bruce the Hoon', 'author_id': 172, 'author_profile': 'https://Stackoverflow.com/users/172', 'pm_score': 3, 'selected': True, 'text': '<p>I am a big fan of Embarcadero\'s <a href="http://www.embarcadero.com/products/er-studio" rel="nofollow noreferrer">ER/Studio</a>.  It is very powerful and produces excellent on-screen as well as printed results.  They have a free trial as well, so you should be able to get in and give it a shot without too much strife.</p>\n\n<p>Good luck!</p>\n'}, {'answer_id': 4129, 'author': 'Mark Harrison', 'author_id': 116, 'author_profile': 'https://Stackoverflow.com/users/116', 'pm_score': 2, 'selected': False, 'text': '<p>Toad Data Modeller from Quest does a nice job on this and is reasonably priced.  Embarcadero E/R studio is good too, as Bruce mentioned.</p>\n'}, {'answer_id': 4155, 'author': 'Kev', 'author_id': 419, 'author_profile': 'https://Stackoverflow.com/users/419', 'pm_score': 1, 'selected': False, 'text': "<p>OP asked about diagramming views and view dependencies, SQL Management Studio and Enterprise Manager doesn't allow you to diagram views. I can't vouch for the other tools.</p>\n\n<p>The LINQ to SQL designer for Visual Studio does allow you to drop views on the design surface but there isn't a easy way to model the dependencies between the views. I'm not sure which tool has this type of diagramming functionality. You could take a look at Red Gate's SQLDoc tool but it just provides text based output.</p>\n"}, {'answer_id': 14871, 'author': 'Dillie-O', 'author_id': 71, 'author_profile': 'https://Stackoverflow.com/users/71', 'pm_score': 0, 'selected': False, 'text': "<p>I upmodded Mark's post about Toad Data Modeler and wanted to point out that they have a beta version that is fully functional and free. The only downsides are the occasional bug and built in expiration (typically around the time a new beta is available), but for this poor bloke it does wonders until I can get my boss to chip in for a license.</p>\n"}]
['https://Stackoverflow.com/questions/4110', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/369/']