4

Hey guys, How do you share SQL queries with your teammates? The legacy notepad/email?

Comments
  • 5
    MS teams.
    Format as code
  • 2
    Jira and Slack
  • 2
    Telegram
  • 3
    Create a global temporary table, share the ID
  • 1
    Snail mail
  • 0
    Usually mail. Not allowed to use any online tools.
  • 3
    I wouldn't.
    Can't they write it?
  • 2
    SQL Queries? That’s a thing I haven’t heared in ages. ORM all the way!
  • 0
    Pinned issue on GitHub, works fine
  • 0
    @noahlvb in a public repo I hope.
  • 0
    @dsteiner haha nope all internal projects, so private repos
  • 3
    I usually write it on a napkin with a pencil and take a photo.
  • 0
    @dsteiner ah yes, orm, or as i like to call it, red flag
  • 0
    @yellow-dog True, there's usually not much private property involved in DAL.
  • 0
    Just whatever chat app we're on. When I want to stash a query in a somewhat organized fashion for later reference I use pastebin. Latter almost never happens; If I made a huge complex query that has to be saved it likely means it's so janky I don't know why it works.
  • 1
    If you don't use Slack, Mattermost or Teams, then maybe Github / Gitlab snippets?
  • 0
    Depends on length; less than 20 lines can be pasted in the email directly. More than that and it goes in a text file as an attachment. Outlook/Word can sometimes turn ' into ‘ and "" into “” which confuses the query engine.
  • 2
    Voice message in Whatsapp
  • 0
    Do you guys still use SQL? Don't we have ORM?
Add Comment