Giter Site home page Giter Site logo

jamalshahverdiev / vagrant-mssql-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fgrehm/vagrant-mssql-express

0.0 2.0 0.0 30 KB

Vagrant environment with Windows 2008 R2 + SQL Server Express 2008

License: MIT License

PowerShell 20.08% Batchfile 5.54% Ruby 37.02% HTML 37.36%

vagrant-mssql-express's Introduction

vagrant-mssql-express

A Windows Server 2008 R2 VM with SQL Server Express 2008 R2 SP2 powered by Vagrant.

⚠️ Heads up! ⚠️

This was just an experiment on how to set things up for a project I worked on the past, I'm not planning to keep this project up to date with latest Vagrant / SQL Server updates or making additional improvements to it.

Requirements

  • Vagrant 1.6+ (tested on 1.6.3)
  • VirtualBox 4.3+ (tested on 4.3.16 on an Ubuntu host)
  • Around 12GB of disk space (3GB for base box + ~9GB for the VM)

Base box information

  • Configured with 2 CPU and 2 GB memory by default.
  • No updates or services packs applied
  • The box is not activated. It has been created for testing and evaluation purposes only. Use of this machine for greater than 30 days will require a full license either via MSDN or your local Microsoft Reseller.
  • The box has been created with packer.io using the templates made available here.

More information can be found on the box page at Vagrant Cloud.

Usage

git clone https://github.com/fgrehm/vagrant-mssql-express.git
cd vagrant-mssql-express
# Download SQL Server with Tools installer
wget http://download.microsoft.com/download/0/4/B/04BE03CD-EAF3-4797-9D8D-2E08E316C998/SQLEXPRWT_x64_ENU.exe
vagrant up
# Get a coffee as it will take a while for it to finish provisioning

Then test the connection with the SQL Server using telnet 192.168.50.4 1433

Connecting to the SQL Server instance that runs inside the VM

  • IP / Host: 192.168.50.4
  • Username: sa
  • Password: #SAPassword!

If you are using Rails, apart from installing tiny_tds dependencies with brew install freetds / apt-get install freetds-* and the activerecord-sqlserver-adapter gem, this is what you'll have on your database.yml:

development:
  adapter: sqlserver
  database: <YOUR DB>
  host: 192.168.50.4
  username: sa
  password: '#SAPassword!'

More information on https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/wiki/Using-TinyTDS

An example Sinatra app can be found on sinatra-app.

Connecting to the VM using Remote Desktop connections

If you need to perform administrative tasks like importing a DB dump or creating new databases, you can use the vagrant rdp command and log in with the vagrant user and password.

For the vagrant rdp command to work on Ubuntu, you'll need to apt-get install rdesktop first. On Macs, you will need Microsoft Remote Desktop from the Mac App Store.

More information

If you want to know more about how the provisioning process work, check out this blog post

Sponsor

This project was made possible thanks to HE:labs

Resources

Here's some links I collected along the way while building this:

vagrant-mssql-express's People

Contributors

fgrehm avatar j2gl avatar

Watchers

 avatar  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.