Saving SQL queries in .sql file -- What Program to Use?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 2K views
Science Advisor
Homework Helper
Messages
7,842
Reaction score
13,165
Hi all,
I have some queries to do, which I want to save as an .sql file. What program can I /must I use to do this?

I think I remember at some point using plain old Notepad to write the queries, since these are made
of standard English commands, nothing too fancy. Would this work?
Thanks.
 
Physics news on Phys.org
Yes, a .sql file is simply a text file.
 
  • Like
Likes   Reactions: Greg Bernhardt and WWGD
a .sql file is just a text file, but I would recommend mapping that extension to a text editor that does syntax highlighting at least. If it's Microsoft SQL, SQL Server Management Studio or Visual Studio are great and have autocomplete and all sorts of other great stuff.
 
DavidSnider said:
a .sql file is just a text file, but I would recommend mapping that extension to a text editor that does syntax highlighting at least. If it's Microsoft SQL, SQL Server Management Studio or Visual Studio are great and have autocomplete and all sorts of other great stuff.

Problem is I don't have those programs.
 
WWGD said:
Problem is I don't have those programs.

Notepad++ knows SQL syntax.
 
  • Like
Likes   Reactions: WWGD
gedit is my favorite.