Free Software or Scripts for Formatting SQL Queries [closed] - sql

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a script or application that tidies up and reformats SQL queries. I've found some good online SQL formatters (see here) , as well as some downloadable commercial applications. I'm cautious about using an online service as I don't want to risk copies of these queries being stored somewhere they might be compromised, if only in a web server's cache (and it is against my employer's policy).
Does anyone know of any open-source applications, scripts, or downloadable freeware that might help me out with this?
It probably bears mentioning that I'm working on a Windows platform at work, but I am open to suggestions for other operating systems.
Cheers!
Update
I have used SQLInform as suggested by Vinko Vrsalovic to excellent effect. Thanks Vinko!
Something that might also be worth watching is SQLTidy, a young project on Google Code which could turn into something great in the long run.

Some things to try out (SQLinForm is free until 2009). It's weird how some niches totally lack good open source tools.
http://www.trialpay.com/checkout/?c=bb7014d&tid=6rGUpGo
http://www.sqlinform.com
http://www.fileheap.com/software-universal-sql-editor-download-11096.html
An Emacs macro:
http://www.emacswiki.org/emacs-en/tsql-indent.el

Something else... this freeware tool works for PL/SQL, so maybe there's a use for that in there.
PL/SQL Tidy (Broken Link)

Red Gate SQL Refactor (trial) + a Virtual Machine

Related

Any recommendations for a lightweight framework with MS SQL Server support [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Note: I have been out of touch with the PHP world for quite a long time. I am primarily a Python developer.
I have to build a small app in PHP5. Please suggest me a lightweight framework which:
Has MS SQL Server Support that runs on Linux as the app will be running on Ubuntu.
Is fast to learn, use and setup.
Performance is not a critical issue. As the app will be used on a private LAN by about 10 people for data entry mainly.
Suggestion about a templating engines will also be appreciated
Regards
Let's kill off the easy question first - by tempting, I'm assuming you mean templating. If so, Smarty is usually a very good contender as it is simple to learn and very powerful.
Now, for the framework. A wide variety of PHP frameworks have switched to PDO for SQL requests, which means that most of them will easily accomodate MS SQL. CodeIgniter does, so does CakePHP last time I checked.
Ultimately, pick what you know rather than picking something that looks fancy, unless you need the extra features. The learning curve will be smaller.

Where can I get the old, free version of Anjlab's SQL Profiler? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Note: Although this question probably does not fit in with SO's usual programming questions, out of StackOverflow, ServerFault, SuperUser and Programmer's Exchange, only SO has any questions that make mention of this software, which is why I decided to post here.
I used to use Anjlab's open source SQL Profiler tool, and found it to be invaluable. Unfortunately, it looks like the software has been converted to a paid version, with the all access to the open source version completely removed. Since this software is mentioned several times in questions here on SO, I was wondering if anyone still has a copy of the old, free, open source version and would be willing to share it?
I've managed to find the following:
SqlExpressProfiler-1.2.1812.13.zip <-- You have to pay to use the performance dashboard.
SqlExpressProfiler-1.2.1708.7.zip
SqlExpressProfiler-1.2.1708.7.zip
SqlExpressProfiler.1.2.1624.78.zip
SqlExpressProfiler-1.1.1423.75.zip
I'll be testing them out and eliminating the dud ones.
Here is a simple alternative if you need just a monitoring tool for queries:
http://expressprofiler.codeplex.com/
I hope it won't disappear soon.
I'm currently using it with SQL Server Express 2012 to monitor queries form my NHibernate applications (didn't want to add log4net just for this purpose and show_sql outputs only to console window which I don't have in my WCF service).
Really nice and stable utility. I find it much easier to use than MS SQL Profiler which needs various settings, trace profiles for various server versions and what not. Express Profiler - just launch, hit Run, and all the T-SQL and sp_execute queries are displayed.
It's open source, you can add even more features if you wish. I guess, Clear button would be useful because now you have to Stop and Run again to clear the list.
Here's a link. Use at your own risk.
You could also do a search for SqlExpressProfiler-0.1.1094.67.zip

What free SQL formatting tools exist? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I want to beautify the SQL queries I write.
What free tools exist that allow for SQL query formatting?
PoorMansTSqlFormatter is a free and open-source online beautifier, with offline an SSMS Add-In, command-line beautifier tool, and Notepad++ plugin.
The project aims to format any T-SQL (2000 or later) script, no matter the length or complexity.
T-SQL Tidy (dead link) was a very good online SQL formatter/beautifier.
It had a lot of formatting options. Although it was targeted at T-SQL, it should have worked with most SQL dialects.
There is a free online Instant SQL Formatter. The site also sells some other versions (add-in for Visual Studio, for example), but the online version is free.
Re Christoph's answer:
I was looking for the same in Notepad++ and found a link that gives an idea of how to create your own formatting with macros: Formatting SQL in Notepad++
It seems like it would work, but I'm going to use one of the SSMS Add-ins in the previous answer (less work).
I've always been a fan of Navicat.
Their lite version is free, but it still comes with the SQL Beautifier.
As an added bonus, occasionally you'll find some chinglish hiding in odd places.
Sequel Pro if using OS X.
Otherwise, just work out what you need, and then develop your query using your knowledge and use the command line tool (my personal favourite:)).

IDE suggestions for Linux Development [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Before you answer vi...
I'm looking to set a development environment for programmers with mainly Windows/Visual Studio background. Of course Emacs and Eclipse come to mind as IDEs, any other useful tips? thanks
I think the editor is incidental. Just read the kernel coding standards on tabs, indentation, functions vs keywords, use of braces, etc .. and it doesn't matter WHAT editor you use.
If you think your choice of editor is somehow going to improve your code or help you get into 'the zone' .. you probably aren't ready to send patches. git-send-patch exists because so many use a plethora of different editors.
If you kidnapped me and sat me down in front of any version of emacs then pointed a gun to my head and told me to code, I'd ask you to just shoot me. I have nothing against emacs, in fact I still have one of the few surviving copies on tape which I paid $50 to get a long time ago.
Use an editor that lets you focus, simple and agreeable syntax highlighting, good editing functions, sensible keyboard shortcuts .. a handy snippet gallery and the rest is up to you.
Or, will a Chevy improve your driving over a Toyota (had to put a straw man argument in there somewhere, after all, this is debating Linux development)
In the spirit of that, I'm now going to re-tag your question.
Well, if you are doing Linux Kernel work, perhaps you will be interested in Mr Torvalds opinion of emacs...
According to the Linus FAQ he uses MicroEmacs. :-)

Recommended VB.NET Code Generators [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can someone recommend some good VB.net code generation tools?
I only need a tool for developing desktop applications. So the web side of things doesn't really concern me too much.
CodeSmith Generator has a bunch of Visual Basic Templates.
The de-facto standard for code generation (especially for .NET languages) seems to be CodeSmith. The latest version will cost money, however, they have made an older version freeware.
If you'd like to go with something free and open-source, MyGeneration is also quite good, and can actally use (after some conversion) CodeSmith templates.
The Microsoft copy of CodeSmith is T4, built into VS 2005 & 2008.
I only know of a couple of products that are not free:
There is CodeRush from DevExpress:
http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/
Miguel Castro has one called CodeBreeze:
http://www.steelbluesolutions.com/Summary/CodeBreeze/Default.aspx
CodeSmith has a ton of templates and supports the latest technologies. It does cost money but it is well worth it in the time you will save as well as the support that comes with it. If you are using Linq to SQL, check out our PLINQO templates. There is currently a sweet CodeSmith offer on plinqo.com
Thanks
-Blake Niemyjski