Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Create an admin user and a database without requiring the developer to login to windows #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :shell, path: "scripts/install-sql-server.cmd"
config.vm.provision :shell, path: "scripts/configure-sql-port.ps1"
config.vm.provision :shell, path: "scripts/enable-rdp.ps1"
config.vm.provision :shell, path: "scripts/create-database.cmd"
end
3 changes: 3 additions & 0 deletions scripts/create-database.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cmd /C ""C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -Q "create login dbadmin with password = '1HatePa$$wordRules' " "
cmd /C ""C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -Q "create database app_database" "
cmd /C ""C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -Q "alter authorization on database::app_database to dbadmin" "