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
Folks, is there a tool to format/indent SQL Server queries in query window ?
With Apex SQL Refactor, you can specify your formatting preferences and reformat selected code or the entire window at any time using a keyboard shortcut. There's a free version.
+1 to JackM.
Just add a mention for some other (not free) tools available from Red Gate, depending on exact requirements.
SQL Prompt
SQL Refactor
Might be something you'd be interested in.
Format code in SQL Management Studio
Older question which has much more activity and more answers: SQL Formatter for SQL Management Studio
My contributon to this mess is Poor Man's T-SQL Formatter / http://poorsql.com - free, open-source, does bulk formatting from command-line, SSMS plugin, etc, and (in theory) handles all SQL syntax up to SQL Server 2008 (R2).
Related
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.
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
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 mean, something equivalent to Ctrl + K + D from Visual Studio that automatically indents code. Is there something in this sense?
Just discovered this - yet another variation on this older question which has much more activity: SQL Formatter for SQL Management Studio
I personally am a big fan of the Poor Man's T-SQL Formatter / http://poorsql.com - but then I wrote it :)
By default no but you can always try a third party tools like SQL Prompt mentioned above or ApexSQL Refactor (slightly less options compared to SQL Prompt but it’s a free product) or just use online formatter.
SQL Prompt from Red Gate can do this.
If you just want simple formatting online then the same technology powers FormatSQL.com
SQL Pretty Printer can also reformat SQL. Available as a stand alone app or a SSMS plugin. Free to download (with a nag screen but no other apparent limitations) from http://www.dpriver.com
There is an online version at http://www.dpriver.com/pp/sqlformat.htm?ref=g_wangz
There is also the SQLinForm formatter. It is an automatic SQL code formatter for all major databases including ORACLE, SQL Server, DB2, UDB, Sybase, Informix, PostgreSQL, Teradata, MySQL, MS Access etc. with over 100 formatting options.It has a windows hotkey add-on, so you can use it in SSMS. Link: www.sqlinform.com
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 a code developer, not a DBA, and I tend to get lost with loooong SQL queries, when I use many joins (10 joins is pretty common for me).
I would like to find a Visual SQL Query Builder (free if possible) that could connect to Oracle and see all the tables there, so I would only select visually my keys that link the Joins, and select the fields I want to be shown.
Oracle's own SQL Developer (free to download Java app) has a visual query builder (I haven't used it though, so this is not a recommendation, merely an FYI).
More about Oracle SQL Developer (and download link) here.
It is not free, but I use pl sql developer
http://www.allroundautomations.com/plsqldev.html
use Visual Studio Server Explorer to connect to oracle and then build queries using query builder.
Try Insight Developer for Oracle, but note that it is not free. I use it on both Mac and Linux.
Try SQLeo Visual Query Builder
http://sourceforge.net/projects/sqleo/
It permits to join tables visually
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 1 year ago.
Improve this question
I've tried Red Gate's SQL Prompt and like it, but cannot afford it at the moment. I miss the good code completion that this tool provides. Are there any good free tools out there that have SQL code completion (table and column names, etc)?
I've tried TOAD, but it was quite buggy. It would crash, and would also leave connections open to the database after the app was closed.
I'm also aware that SQL Server 2008 has some form of code completion, but it requires that the database you are connected to be 2008, not just the Management Studio version. My employer will eventually upgrade, but I believe this may be a while in coming, so I'd like a good tool in the interim.
Any good recommendations?
Red Gate's SQL Prompt is what you want. It's not free, but it is worth it.
I have tried a few different tools myself, and nothing really compared to SQL Prompt.
I personally recommend contacting Red Gate if you like the tool, they are known to have "specials" at given times where you might be able to get a discount, especially this time of the month.
Otherwise, contact me and I get get you 5% off anyway
When RedGate bought SQL Prompt, they put out the current version at the time for free. That's what I'm still using. It's not as solid as the new one, but it doesn't have issues with remote servers - which is what i use for most of the day. See if you can get your hands on a copy of that. (version 2.0.0.59)