Generate table relationship diagram from existing schema (SQL Server) [closed] - sql-server

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a way to produce a diagram showing existing tables and their relationships given a connection to a database?
This is for SQL Server 2008 Express Edition.

Yes you can use SQL Server 2008 itself but you need to install SQL Server Management Studio Express (if not installed ) . Just right Click on Database Diagrams and create new diagram. Select the exisiting tables and if you have specified the references in your tables properly. You will be able to see the complete diagram of selected tables.
For further reference see Getting started with SQL Server database diagrams

Try DBVis - download at https://www.dbvis.com/download - there is a pro version (not needed) and a open version that should suffice.
All you have to do is to get the right JDBC - database driver for SQL Server, the tool shows tables and references orthogonal, hierarchical, in a circle ;-) etc. just by pressing one single button. I use the free version for years now.

SQLDeveloper can do this.
http://sqldeveloper.solyp.com/

For SQL statements you can try reverse snowflakes. You can join at sourceforge or the demo site at http://snowflakejoins.com/.

Why don't you just use the database diagram functionality built into SQL Server?

Visio Professional has a database reverse-engineering feature if yiu create a database diagram. It's not free but is fairly ubiquitous in most companies and should be fairly easy to get.
Note that Visio 2003 does not play nicely with SQL2005 or SQL2008 for reverse engineering - you will need to get 2007.

DeZign for Databases should be able to do this just fine.

SchemaCrawler for SQL Server can generate database diagrams, with the help of GraphViz. Foreign key relationships are displayed (and can even be inferred, using naming conventions), and tables and columns can be excluded using regular expressions.

MySQL WorkBench is free software and is developed by Oracle, you can import an SQL File or specify a database and it will generate an SQL Diagram which you can move around to make it more visually appealing.
It runs on GNU/Linux and Windows and it's free and has a professional look..

Related

Simplest means to develop relational database for SQL Server [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 5 months ago.
Improve this question
For those of you have have experience of this, what particular tools would you recommend?
MS Access
MS Visual Studio
SQL Management Studio
etc?
For use with SQL Server 2008 R2 as part of an online booking system with multiple tables and relationships, and incorporated into an ASP.Net site.
Both SQL Management Studio and Visual Studio are good options. With Visual Studio you can work with the database and your projects in one window. You can do most basic database operations in Visual Studio. SQL Management gives you additional options and flexibility like backing up database wizard, SQL Profiler, Execution Plan
I would go with SQL Management Studio. I've worked with it before and it met all demands, and didn't have any problems. And I would think with SQL Server 2008 R2 it wold be a safe choice.
Your question is a little vague, so I'm going to give an answer that is probably a little more broad than you need.
TL;DR - SSMS gives a great development environment for databases.
Typically, when building a new system, I design my data structures on a whiteboard. Once these are pretty well defined, I put them into SQL using SSMS's table designer, including Primary Keys and Foreign Keys, but no additional indexes.
Once I have the basic layout defined, I'll generate a Database Diagram, print it out, and review to make sure 1) I've built the system as defined, and 2) I don't see any glaring items that are missing. Assuming no issues, I'll start development.
At this point, if I want to use Entity Framework, I can just use the DB-First method, and I'm ready to go. If I want to use an alternate method, such as DataReaders/DataSets, I'm also good to go.
Any views, stored procedures, etc I build by hand inside of SSMS.
I leave out indexes until a good portion of the functionality is complete, so as to not prematurely create indexes that end up giving no value.

Opensource alternative to MATLAB database toolbox [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
Requirement: An open source alternative to MATLAB database tool box.
Background: I have MATLAB provided at workplace but unfortunately it does not have Mathwork's Database toolbox licensed.
Research done: Though I am newbie but I have searched quite a bit on internet and what I found working for me is demo version of DBtool box Dbtool(http://energy.51.net/dbtool/index.htm). However, the demo version of DB toolbox works fine only on small databases. But whenever I use it on large databases, I get 'time out error'.
Thanks for your help
Nikhil
I found my answer on
How to connect to Microsoft SQL Server 2008 (MSSQL) from Matlab?
However, not every approach works for me. Let me explain a bit further:
The JDBC driver usually work the best. But you must know which JDBC driver to use with your project. For MS SQL, sqljdbc4.jar works just fine. If you connect to MySQL or postgreSQL, make sure you google it for the proper driver. (mysql-connector.jar for mysql and postgresql.jdbc4.jar or postgreSQL)
I have also tried the COM method with success only through ODBC. Finding the correct connection string is really a pain. You also need to install a proper ODBC driver which related to your project. Setting up ODBC connection is actually easy. Once you have DSN set, you just use the connection string like
connectStr = 'DSN=newDSN';
invoke(conn,'Open',connectStr);
Finally, if you decide to go with database toolbox (maybe not in your case), don't expect too much by using it. That toolbox just a wrapper for the above methods. You can definitely complete your project without using it at all.
Some alternatives to what's already been suggested:
ZozaniDB is a database toolbox providing connectivity to Sqlite and Mysql databases (Other database connections may also be possible if you have the JDBC connector). ZozaniDB is more than a database connection; it provides on-the-fly schema generation and allows you to get/insert data without using SQL. (Disclaimer: I'm the developer of ZozaniDB).
If you are looking for a way to connect to SQLITE, Mksqlite does the job.
There's also a Mysql mex file that you would need to compile first: http://www.mathworks.com/matlabcentral/fileexchange/8663-mysql-database-connector
If you're working with MySQL you could try these submissions from the Matlab Central File Exchange. Neither require Database Toolbox. If you're not using MySQL, perhaps you could modify them to meet your needs.
queryMySQL
Access a MySQL database

Your favourite database client tool [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Wondering what is the best or most popular database client tool. Similar to Microsoft's SQL management studio, but one that can work with various databases. Other tools I have found are:
Toad for SQL Server
Database fishing tool
Apex SQL Studio
Some of these tools can even compare and sync database schema's and some cases the data itself as well. Very useful when deploying applications for example from a pre-production environment to production environment.
So what's your favourite database manager ? Maybe there is a nice open source tool out there that is well rounded with the most useful features.
SQuirreL SQL
Open source
Works with many databases
SqlDbx - www.sqldbx.com - has a free edition, is portable and works with quite a few dbs.
Also AnySQL Maestro - http://www.sqlmaestro.com/products/anysql/maestro/
I use PL/SQL Developer, as soon as I have to work on an Oracle Database. I like the UI, simple and fast.
I'm using Aqua Data Studio for many years now and it is the most valuable of all my tools - see Aquafold
I use Navicat myself. It supports MySQL, PostgreSQL and Oracle.
SQL Developer is nice for Oracle and has plugins for several other databases.
http://www.oracle.com/technology/products/database/sql_developer/index.html
Eclipse Data Tools Platform within Eclipse (my primary IDE):
Open source, works with many databases
Do all the basics and some advanced stuff. In recent versions you can find some kind of visual query builder as well.
Oracle has a plugin where implemented some Oracle-specific functions.
If you are using PostgreSQL (and, really, you should be!), PgAdmin rocks. It lets you query, explore tables, do administrative tasks, manage users, visually explain complex queries, graphically build queries and much more. It runs on Windows, Linux and OS X and can connect to local or remote PostgreSQL servers.
DbVisualizer - there's a free version with a bit limited functionality and a fully fledged one for $149.
If your're using MS Sql Server, try using LinqPad; it's much more lightweight than the Management Studio, and you'll be practicing writing queries in linq in the meantime as well.
(source: linqpad.net)
I prefer...
PL/SQL Developer for Oracle
The inbuilt tool for MSSQL
The inbuilt tool for DB2
RazorSQL - it works with pretty much any database you can think of.
Any comments on LyteRAD? Not a pure database management tool, but good for creating and prototyping db apps quickly.
I've used Query Express and it's great because it's actually a standalone 100 KB file, no installation needed. It only does querying but it's fast and free.
SQLyog for MySQL.
TOAD for when I worked with Oracle.
If you need data comparison, schema comparison or visual query builder, than you should take a look at our database tools for SQL Server:
dbForge Schema Compare for SQL Server
dbForge Data Compare for SQL Server
dbForge Query Builder for SQL Server
All these tools are quite affordable and have 30-days trial period.

Is there anything as good as TOAD for Postgres (Windows)? [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 just looking for a management tool like TOAD for Postgres. Anyone used a good one?
Edit - I work mostly within the data itself and the database already has a mature model/design. I use the edit windows the most (well, in TOAD for Oracle anyway.)
As far as I know, Toad only exists naturally for: Oracle, MS SQL, DB2 and MySQL...
--JS
Doesn't TOAD exist for several plattforms?
I'm using pgAdmin III which fills my needs so far.
http://www.pgadmin.org/
Not sure if TOAD for specific DB versions is any different than TOAD for Data Modeler, but it appears that TOAD Data Modeler supports PostgreSQL, along with a few others.
If you're looking for something like SQL Server Management Studio, but for Postgres, how about EMS SQL Manager or Lightning Admin?
See the wiki: http://wiki.postgresql.org/wiki/Community_Guide_to_PostgreSQL_GUI_Tools
TOra has some nice features and is supposed to be a lot like TOAD. Also, it is completely GPL so you can change the code yourself.
BTW: Toad is not OpenSource and is now only trialware (must re-install every 120 days). TOra is OpenSource so you don't have those issues.
I've used Navicat fairly extensively and successfully but only on a Mac. It has a Windows implementation that is, as far as I know, more feature rich than the Mac implementation.
I've had the odd data typing issue with it but, if you are not doing data modelling, that may not be an issue for you
Because you do not need to edit the database design, I suggest SQL Workbench/J. It is Java application. You can use GUI mode (which I prefer to) and console mode (if you like psql-like command console).
I use this app much more than pgAdmin III or pgAdmin 4 because it helps me to ease monitoring the database activity, deploying new version of DB app, etc.
Navicat for PostgreSQL is working really well for me natively.
I set up phppgAdmin for the teams general use and it has been quite valuea
ble

Best Sql Server IDE for scripting / development needs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for the best Sql Server IDE for scripting / development needs. Must haves:
Visual GUI for creating complex queries
Intellisense for all db objects
Auto-format capability to format SQL script to a particular format / coding standard.
SELECT Sql output to .xls, .txt with custom choices in delimiters / format
Cost is not an issue. When you make a recommendation, can you state why you prefer it, and what other IDEs you have tried before. Thank you.
SQL Management Studio with SQL Assistant (www.softtreetech.com) or SQL Prompt (www.red-gate.com)
I would suggest looking at SQL Everywhere. I have completely moved off of MS SQL Studio Management tool. The biggest advantage to SQL Everywhere for me is auto-complete (Intelisense) even against a SQL 2005 server. The format SQL feature is ok.
Anything wrong with the management studio that comes with Sql Server? The 2008 version meets all your requirements.
[edit]: I take it back: it can do autoformatting in the right circumstances, but it's painful and to my knowledge doesn't allow you to specify the coding standard. Also, the intellisense is weak.
try linqpad.
Try out
EMS SQL MANAGER Lite Version
Toad For SQL Server
I personally like EMS SQL Manager Lite, its not so lite in making your job easier, trust me :)
ApexSQL Edit. Not wild about their GUI query editor, but great on intellisense and formatting. Also includes options to copy out of the result set to Excel, CSV, and HTML via clipboard and some handy custom column copying tools. I'm practically crippled in SSMS because ApexSQL Edit has me so spoiled.
As a well-performing tool for SQL developers I can recommend dbForge Studio for SQL Server. It matches all your requirements.
Specifically it has:
- Visual query builder that enables creating complex queries
- Intellisense that is comparable one provided by SQL Prompt
- SQL script formatting with multiple options
- SELECT output export to .xls and .txt plus 6 other formats (has wizard for export customization)

Resources