-
Notifications
You must be signed in to change notification settings - Fork 563
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
Replace TinyTDS/FreeTDS defncopy
bin with Cross Platform SqlPackage.exe
#437
Comments
cc @tigermint as my point of contact on this. |
Linking microsoft/mssql-docker#8 |
Some notes on playing with the latest docker image which has Structure DumpWe need an empt database to Script against so we drop the test DB and use that. In reality we would use the database task here too. $ sqsh -U sa -P $SA_PASSWORD -S localhost -C "DROP DATABASE [myapp_test];"
$ sqsh -U sa -P $SA_PASSWORD -S localhost -C "CREATE DATABASE [myapp_test];" Now we run the sqlpackage commands. Unfortunately this requires being able to run from the host machine.
From here we would need to search and replace the structure file and replace the test database name with the name of the source extract. -:setvar DatabaseName "myapp_test"
+:setvar DatabaseName "myapp" Structure Clone/Load
|
Use new |
@metaskills what is the status of this feature? do you need any help with it? current defncopy does dump not in a really good way if we talk about syntax |
Today, we have a tool called sqlpackage.exe which is a .NET command line app that’s built over a .NET library called DacFX and runs on Windows. This tool supports SQL Server on-premise, SQL Server hosted in a VM and also Azure SQL Database in exactly the same way. More info:
Our current thinking was to make sqlpackage.exe (and DacFX) work on coreclr and corefx so they could be used in Ruby on Rails in scenarios such as dumping schema and/or dumping schema + data for a SQL Server database. Cross Platform!
The text was updated successfully, but these errors were encountered: