Skip to content

Instantly share code, notes, and snippets.

View sshane's full-sized avatar
🎨
raylibbing

Shane Smiskol sshane

🎨
raylibbing
View GitHub Profile
@sshane
sshane / mssql_to_csv.bash
Created January 27, 2024 05:31 — forked from llimllib/mssql_to_csv.bash
This is a script to convert every table in a Microsoft SQL Server database backup (.bak file) to a .csv file
#!/usr/bin/env bash
# import an MS SQL .bak backup file to an MS SQL database, then export all
# tables to csv. run this script as `import.sh <filename>`. It expects to be
# run in the same directory as the backup file.
# this is only tested on my mac (OS X Catalina). I tried to stick to posix, but
# It will probably require some tweaking for you. I hope it gives a general
# sense of what you need to do at the very least.