You are on page 1of 3

Technical

Notes

Purpose

The purpose of this document is to provide a step-by-step guide on how to load Jigsaw
MSQL extensions to an SQL server.

Loading Jigsaw MSQL Extensions To An SQL Server

Step 1: Download MSSQLProcs.zip from


http://10.7.0.9/Packages/win32/MSSQLProcs.zip.

Step 2: Stop the SQL Server service.

Step 3: Extract MSSQLProcs.zip on C:\Program Files.

1
Technical
Notes

Step 4: Add the TZDIR System Environment Variable TZDIR=C:\Program


Files\MineOPS\share\zoneinfo.

Step 5: Install default time zone, using the “Command Prompt” perform the following
steps:
• Type cd C:\Program Files\MineOPS\share\zoneinfo.
• Locate your time zone, and then type dir [Insert Time Zone], for example dir
US/Pacific.
2
Technical
Notes

• Copy the time zone file (Pacific) to C:\Program Files\MineOPS\share\zoneinfo and


rename it to localtime.

Step 6: Start the SQL Server service.

Step 7: Load the stored procedures into MSSQL server from the Jigsaw MineOPS server
with the following command, where SERVER, USER, and PASSWORD are
$cd/opt/Jigsaw/Library/jmineops/db/SQLServer
$/opt/Jigsaw/Tools/xml_loader –database
sqlserver://SERVER/master,username=USER,password=PASSWORD
extensions.msql

Note: You must load extended stored procedures into the master database on the SQL
server, not into the jmineops database. MSSQL server only allows extended stored
procedures in master. The stored to_local, to_utc, etc. stored procedures in jmineops
reference these extended stored procedures in the master database.

Step 8: Load views from the Jigsaw MineOPS server using xml_loader.

$export RAILS_ENV=sqlserver://SERVER/jmineops,username=USER
password=PASSWORD

$/opt/Jigsaw/Tools/xml_loader views.

You might also like