GithubHelp home page GithubHelp logo

isabella232 / dbdump Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vanilla/dbdump

0.0 0.0 0.0 33 KB

A little command line tool that will dump a SQL Server database in a format that can be imported by MySQL.

C# 100.00%

dbdump's Introduction

dbdump

A little command line tool that will dump a SQL Server database in a format that can be imported by MySQL.

What you'll need

In order to run dbdump you'll need the following:

  1. A computer running SQL Server. You can download SQL Server 2008 Express here and SQL Server 2008 Management Studio Express here.
  2. A computer with the .net framework 4.x. You can download it here. If you need to use a different version of the .net framework you can build the solution yourself and target your desired version.

Restoring a SQL Server Backup

  1. SQL Server backups usually have a .bak extension. If your backup file doesn't have this extension then there's a good chance that you have the wrong file.
  2. Launch SQL Server Management Studio.
  3. Connect to the appropriate server.
  4. Right click on the Databases folder on the left.
  5. Choose Restore Backup…
  6. Choose From Device.
  7. Browse to the location of your .bak file and select it.
  8. You should now see a list of backups. Most of the time there is just one. Select the appropriate backup.
  9. Select the database to restore to. You can type the name of a database that doesn't exist to create a new database.
  10. Click OK and the database should restore.

Running dbdump.exe

  1. dbdump.exe has an associated config file. Make sure you edit this file and enter your SQL Server information so that it knows which server to connect to.
  2. Once you've set up your config file you can type dudump to see a list of command line options.

Connection Strings

Your config file requires a connection string in order to connect to your SQL server. If you program against a SQL server then this should be familar to you. If you aren't too sure you can go to connectionstrings.com to read up on their documentation.

Connecting with Windows Authentication

If you are running dbdump on the same computer as your SQL server then you will most likely be able to use windows authentication. Your connection string will look something like this:

Data Source=<Server Name>;Application Name=dbdump;Integrated Security=true;

Connection with a Username/Password

If you are running dbdump from a different computer such as your web server then you might have to use a connection string with a username/password. It will look something like this:

Data Source=<Server Name>;Application Name=dbdump;Initial Catalog=<Database Name>; User ID=<Username>;Password=<Password>

dbdump's People

Contributors

daazku avatar tburry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.