Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Microsoft SQL #105

Open
gatkisson opened this issue May 14, 2022 · 5 comments
Open

Support for Microsoft SQL #105

gatkisson opened this issue May 14, 2022 · 5 comments
Labels
feature New feature request

Comments

@gatkisson
Copy link

We'd love to use this with MSSQL databases as well - can you please add support?

@Go2Engle
Copy link

+1 would love to see support for this as well!

@evoxmusic evoxmusic added the feature New feature request label May 15, 2022
@evoxmusic
Copy link
Contributor

If one of you has a valid MSSQL database dump, I can take a look at the amount of work requires to support MSSQL. I will need also to check the complete grammar.

@akiller
Copy link

akiller commented May 16, 2022

If one of you has a valid MSSQL database dump, I can take a look at the amount of work requires to support MSSQL. I will need also to check the complete grammar.

Do you want a live database?

You can download SQL server developer edition (free) from https://www.microsoft.com/en-gb/sql-server/sql-server-downloads - which you can install on Windows/Linux. Or there's also a Docker version which will work on Mac too.

Arguably the best database would be AdventureWorks which is Microsoft's huge sample database. You will most likely want to download the AdventureWorks2019.bak version.

This explains how to restore it onto your local server. Using the Management Studio option is probably the friendliest way.

If you want an SQL dump you can (in Management Studio) right click the database > tasks > generate scripts-
image

When you get to the set scripting options section scroll down to types of data to script to specify if you only want to dump the schema, the data, or both.

image

(I'd love to see MSSQL support too 🙂)

@benny-n
Copy link
Contributor

benny-n commented May 16, 2022

@evoxmusic
I think mssql-scripter would be the perfect tool for creating and restoring dumps for mssql.
Also, this page contains a lot of information about how to use the mentioned tool and some dump templates to get a sense of the grammar (from an initial look it seems very different from pg\mysql ☹️).

Thanks to @IliaFeldgun for helping with the research 🚀

@evoxmusic
Copy link
Contributor

[...] (from an initial look it seems very different from pg\mysql ☹️).

Sounds like it's going to take some time to properly support MSSQL. Maybe we must consider writing a doc explaining how to add a connector and point toward a "how to write a SQL parser" documentation (nothing too complicated from my POV... but I am certainly biased).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

5 participants