r/SQL • • 49m ago

Discussion Should SQL clients open connections read-only by default?

Most GUI clients I've used treat every connection as read-write. You're one wrong tab away from running an UPDATE on prod.

In the client I'm building (Row Patrol, disclosure: I'm the dev), every connection opens read-only, and writes are an explicit switch. Some people love it. Others find it annoying for local dev databases.

How do you handle this today? Separate read-only DB users, client settings, colored prod tabs, or just being careful? Does read-only by default help, or does it get in the way?

5 Upvotes

9 comments sorted by

View all comments

Show parent comment

3

u/bourbonandpistons 34m ago

Me trying to get the owner of the company to stop using the SA account for his ai stuff on production.

0

u/xike456 28m ago

the SA account on prod. good luck man