r/SQL • u/Environmental_Emu830 • Jun 12 '26
PostgreSQL Can where saves my files .sql?
Morning guys.
I was looking to save my .sql files somewhere with a focus on versioning, organization, and easy access. I use DBeaver, but I wanted something more "professional." The only idea that comes to mind is Git. I know DBt and I've already asked Claude/gpt, but the only idea he suggests is Git.
0
Upvotes
View all comments
Show parent comment
3
u/Imposter24 Jun 12 '26
This is what I do. Visual studio db project schema compare is also great for comparing environments and migrating changes. For one off sql files I just have a SQLScripts folder in my git repository where I save anything that needs to be tracked and versioned but isn’t a part of the DB schema.
OP can also look into the products from RedGate although they cost money. Though if you’re using SSMS their Sql search plugin is free and works great.