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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
Messages
7,819
Reaction score
13,151
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
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.