13.07.2015 Views

SQL Battery Monitor Data Manager User's Guide - Alber

SQL Battery Monitor Data Manager User's Guide - Alber

SQL Battery Monitor Data Manager User's Guide - Alber

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Practical Theory: Understanding Polling, Extraction and Backup9.4. Automatic and Manual BackupWithin this section, a backup is defined as a file that is generated by the BMDM programautomatically or upon user request. Backup file generation is available only when using anAccess database.The BMDM program stores data from the MPM or BDS in a Microsoft Access or <strong>SQL</strong>compatible file. As defined in File Types, an MDB file is an Access database file that storescell and battery readings and setup data. An MDF file is equivalent to an MDB, but for an<strong>SQL</strong> database. A WinZip ZIP file is a compressed file for backup of an Access MDBdatabase file.When using Access, the working database is automatically saved as a ZIP file at midnight.The number 1 is appended to the file name and the extension becomes ZIP. Backups aremade for three days, appended with 1, 2 or 3. On the fourth day, the oldest backup isoverwritten. On the first of the month, another backup is created, with the month and yearappended to the file name. On subsequent first days of each month, another file is created,again with the month and year appended.The BMDM program cannot back up an <strong>SQL</strong> database MDF file nor its associated LDF file.The system administrator should institute a process that ensures regular backups of both these<strong>SQL</strong> database file types.At any time, to save an Access database as an MDB database file, select File|Save As. Tosave the MDB file as a ZIP backup file, select File|Backup <strong>Data</strong>base.To open a backup file, select File|Open Backup. When the BMDM opens a backup file, itconverts it from a ZIP to an MDB Access database file. Backup does not apply to <strong>SQL</strong>.To copy an <strong>SQL</strong> database to the server, attach the database files to the <strong>SQL</strong> server by typingthe following commands at the command prompt:osql -U sapasswordsp_attach_db @dbname = 'BMDMdatabasename',@filename1 = 'databasepath/BMDMdatabasename.mdf',@filename2 = 'databasepath/BMDMdatabasename_log.ldf'goexitexitWhere password is the password for the system administrator account, which is alber bydefault.Where databasename is the name of the database being copied.Where databasepath is the path under which the database being copied resides.9-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!