I wrote this quick article yesterday and posted in the Spiceworks forums - thought you SW users here would get some use out of it!
Rob-
This article describes how you can use Excel (or any program that uses ODBC) to extract the raw data from the Spiceworks database.
This document covers Windows, but the same concepts apply when using Linux or any other OS capable of running a SQLite3 ODBC connection.
Requirements:
- Spiceworks (any version)
- Windows OS
- Microsoft Excel or other Spreadsheet program
- File level access/permissions to the Spiceworks_prod.db file
Download and install the SQLite ODBC driverGo to http://www.ch-werner.de/sqliteodbc/ and download and install sqliteodbc.exe (current version). Accept all default options. Linux versions of the driver can also be found on this page. | ![]() | |
Configure your ODBC drivera.) Open your Data Sources (ODBC) administrator from your administrative tools folder. b.) Click on the 'System DSN' tab. c.) Click on 'Add...' d.) Scroll down the available ODBC drivers listing and find 'SQLite3 ODBC Driver'. Highlight this entry and click 'Finish'. e.) At the Configuration screen, give your connection a name (in this example, we'll call it 'Spiceworks', although you can name it whatever you want). f.) Next, type the fully resolved path to the Spiceoworks_prod.db file or click the 'Browse' button to browse to the network folder where your Spiceworks database is stored. Note that you will require file-level permissions to access the database. g.) Leave all other settings as default, click 'OK' to finish up the configuration. h.) Close out of the ODBC Data Sources applet. | ![]() | |
Open Excel or Spreadsheet software of choiceSince we are using Excel 2003 as an example, your options may/will differ depending on what spreadsheet application you use. a.) Open Excel and create a new blank spreadsheet. b.) Click on 'Data'> 'Import External Data'> 'New Database Query'. You will be presented with the 'Choose Data Source' dialog. c.) Find the 'Spiceworks' connection (or whatever name you gave your connection in step 2.), click on it, and click 'OK'. d.) You will see an error stating that "The datasource contains no visible tables", and will be presented with a Query Wizard. Click on the 'Options' button. e.) You should now see the 'Table Options' dialog. Clear all checkboxes with exception to 'Tables', then click 'OK'. You should now see all the tables listed in the left-hand column. Now you can choose which tables and columns you wish to query! If you want to use MSQuery to build your SQL, you can cancel out of the Query Wizard, and click 'Yes' when asked if "...you want to continue editing this query in Microsoft Query". |