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
In my current project I've been inherited with lots of long (1200+ lines) SQL Server stored procedures with some horrible indentation and formatting which makes them almost unreadable. Is there some tool that I can use to automatically format these and make them more readable? I don't want to go through it manually and indent it.
Here's a couple -- no idea how well they work, unfortunately...
http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm (free)
http://www.sqlinform.com/ (free for personal use)
Try using ApexSQL Refactor. It integrates into SSMS and it’s a free tool. Good thing about it is that it allows to save formatting options and share them with the team so all of you use the same settings for code.
Try redgate SQLPrompt. It has a 14-day trial.
Red Gate "SQL Refactor" Very good. We bought it
Or
SSMS tools pack Free, but we don't use the layout features
Check out Sql assist:
It has some format feature.
http://www.roundpolygons.com/Default.aspx?PageContentID=5&tabid=92
I would suggest downloading the evaluation version to see whether it fits your need.
Try www.softfrontiers.com/Downloads/ReIndenter.shtml
Free (or donate) and download.
Works on C# and SQL Server code.
Is very fast and doesn't change the code except for indentation and endblock comments where missing and possible.
I am using the following link to format and indend your SQL Server Code online. http://sqlserverlearner.com/online-tools/tsql-code-formatter
Its working great!!
I have been using dbForge SQL Complete for a while now and am pleased with it($99 and free version). The formatter works from within Visual Studio and SMSS. It also has a handy code completion feature that works better the the standard one built into SMSS.
http://www.devart.com/dbforge/sql/sqlcomplete/ordering.html
Related
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 refactoring tool available for SQL (TSQL in particular). Is there any tool that can do automatic simplification of SQL?
I have a set of views where only the top two are used, and I'd like to refactor this into only two views, hence 10+ queries into two queries.
Try ApexSQL Refactor
ApexSQL Refactor is a FREE SSMS and VS add-in, for formatting SQL statements using nearly 200 formatting options and 11 code refactors. It expands wildcards, qualifies object names, renames SQL database objects and parameters without breaking dependencies, encapsulates code as a stored procedure, scalar function, table function, and view, add surrogate keys and more
Disclaimer: I work for ApexSQL as a Support Engineer
Red-Gate Software has a tool called SQL Refactor which should do what you're looking for.
Update. as BlueRaja correctly states - SQL Refactor has been discontinued as a separate product, and its functionality is now integrated into SQL Prompt (which is a great tool in itself, and well worth the money for its license!)
+1 to marc_s which I suspect is what you're after. Just to add, the only other tool I know of that automatically refactors SQL is Toad for SQL Server by Quest Software. Feature list is here.
I've never used it, so don't exactly know what it does but thought it worth a mention.
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
I'm looking for a free online SQL interpreter that also has a database associated with it. I want to play around with SQL statements, but I don't want to setup my own database. I've looked around google for a bit, but I only found one web site that has interactive courses, an interpreter functionality and a small database: http://sqlcourse2.com/
Does anybody know of a better SQL interpreter and database?
SQLite is the fastest way to go.
http://www.sqlite.org/
It is supplied with a command-line utility to execute queries.
The database is kept in a single .sqlite3 file.
As simplistic as it gets.
Oracle offers free hosted workspaces for evaluation at apex.oracle.com.
I've used and recommended this site before to friends.
http://www.sql-ex.ru
It has exercises that you write SQL for and test on a live database. They also have decent faq's, guides, forum discussion based on exercises, ect... Pretty good source if you are starting up or want to test your skills or see more then one way to approach a problem.
My only advice is that if you're going to learn SQL it would be worth learning also how to install the thing. Most DBAs I know are also fairly adept systems administrators as well and for good reason. Setting up real databases can be difficult to do well.
So go out and get a copy of an easy DB with a good ui and get started. If you're on the mac you already have MySQL and you can use Sequel Pro as the UI. If you're on windows I'd really recommend PostgresQL and the excellent PgAdmin.
SQL isn't just syntax anymore, I know the spec says otherwise but if you're interested in learning about databases for a job just groking the syntax isn't enough.
Why don't you want to set up a database? It is quick and easy to do.
Check the Express version of SQL Server. It is also free.
SQL Server Express WebLog: How should I Install SQL Server 2008 Express
I'm using sqleditor.co.uk to teach my students basic SQL.
According to help page it is using MySQL backend.
Have a look at Ideone - it is free and supports SSQLite
I found link where you can directly try queries online:
http://www.w3schools.com/sql/sql_tryit.asp
Have a look at MySQL free hosting here.
Hope this helps.
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
The sort of stuff I'm after right now is quite basic:
Auto format
Detect unused variables
Variable naming convention checking
I wouldn't be surprised if there was a tool available that could handle more complex refactorings such as those found in Refactoring Databases, but I appreciate that the added complexities introduced by current db structure and data state may prevent many of them.
I suppose I'm after ReSQLer
RedGate offers SQL Refactor and SQL Prompt, along with a slew of other SQL related tools. Check out their pages for more info and for a free trial.
There is a free SQL formatting and refactoring add-in for SSMS and VS developed by ApexSQL. I suggest you check these articles before you decide if it's the right tool for you:
http://solutioncenter.apexsql.com/category/sql-code-refactoring/
I have used Embarcadero Rapid SQL for code formating.
Something like SQL Prompt from RedGate?
SQL Prompt has basic format and beautify functions now, if you don't want to buy both products
The free SSMS Tools Pack supports basic beautify as well I believe
http://www.ssmstoolspack.com/Features?f=3
Uppercase/Lowercase keywords and
proper case Database Object Names. Set
all keywords to uppercase or lowercase
letters. Custom keywords can be added.
Format all database objects to their
proper case sensitive name.
I use SQL Enlight, which is a fairly inexpensive tool which does autoformatting, validation and refactoring pretty well. (And -- no, I am not affiliated w/ Ubitsoft in any way...)
JetBrains have just announced 0xDBE - a new IDE for SQL machines.
It's build on the IntelliJ platform, so should have many of the same shortcuts you get in the JetBrains suite of products.
http://www.jetbrains.com/dbe/
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
What tool for managing Oracle DB do you suggest? I need to execute scripts and manage data in tables and develop some scripts and packages. I'v tried SQL developer and actually don't like it. Want some more features for developing (debug, code assist, integrated help and so on.)
Surprising i haven't seen a message about Toad for Oracle. Its the best I've worked with so far.
http://www.toadsoft.com/toad_oracle.htm
I just found out about this today and it looks impressive: http://www.dbvis.com/
I've never used this before but have you looked at http://eclipsesql.sourceforge.net/ (although it doesn't seem as full featured as SQL Developer)
Feature wise, I would use Toad or SQL Navigator. Although I think for the little they are offering they are horrible expensive.
I've been using PL/SQL Developer from Allround Automations for the last several years. Very solid. Toad is great if your budget can afford it.
Back in my Oracle days, I always liked to use the Benthic Software Golden Tools - extremely lightweight, useful, intuitive to use, inexpensive to license - great stuff all around!
Benthic also offer a PLEdit tool to edit PL/SQL code, and a GoldLoad tool to batch load large amounts of data into Oracle.
Well, you should take a look at Devart's OraDeveloper Studio. It is a powerful development environment for working with Oracle, that provides an easier way to develop SQL scripts and PL/SQL program units, create and execute queries, manage users and privileges, explore existing databases, modify schema objects, export and import data, create database projects, and more.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other 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
We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace and readability. What is your favorite tool to tabulate your code (or 3rd party code) to your specification?
Resharper's built in tool is pretty awesome.
I like Visual Studio's autoformat feature. It's all mass-market and The Man's Tool, but hey, it works & I can read their formatting.
Python itself.... and a vote for Resharper
One can also use Uncrustify and the UniversalIndentGUI, also good for mass tagging.
Emacs:
C-x h (select all)
C-M-\ (indent region)
Heard good things about Artistic Style.
For Delphi I like Delforexp. Simple and quite fast.
My IDE, IntelliJ, does this while I check in or with a keystroke.
Perl is the language I use most, and perltidy does a great job.
I personally use PolyStyle as it supports many, many languages, but I'm curious about alternatives, hence the question.
HTMLtidy is great for HTML formatting.
My favorite tool is indent. It is available off-the shelf in most Unix distributions. It has tens of options to accommodate most C style conventions. On Windows it can be easily installed through Cygwin. Having said that, automated code formatting should be your last resort. No tool can format code as well as a good programmer.