Not sure which download to choose? Use this flowchart to help pick the right download package!
Category Archives: Tutorials
How to determine your Vista Version and Database Version
Using the Application
- Open Vista
- Click the “Help” drop down menu in the top left hand corner of the application
- Select “About Vista”
- The following dialog should appear
- In this case
- The Vista Version is 2.60.05
- The Database Version is 2.60
- Note: the first 3 numbers of the Vista Version and Database Version will be the same if they are in sync. If they are out of sync there may be errors or unexpected behavior.
- For typical installations of Vista, databases should update automatically
- For network database updates, see the How to Update a Network Database
- For further help, please contact Black & Veatch
For Database Administrators – Using SQL Server Management Studio
- Log into the Vista (or otherwise named database).
- Run the following query against the database.
[sql]SELECT TOP 1 * FROM DBVERSION ORDER BY VersNum DESC[/sql]
VersNum gives the database version. For example, if VersNum has value 260, then the database has been updated to version 2.60.
Updating Network Database
When updating an installation of Vista or Vista Lite which uses a network database, the network database must be updated as well so the application and network are using the same version. If they are out of sync, there may be errors or other unexpected behavior.
Steps on the user’s (client) computer
- Update Vista client application (must be done first on at least one computer to obtain necessary database scripts).
- Determine your current Vista Version and Database Version.
- When the versions are in sync, the first three numbers of the current Vista version and current database version are equal.
- Navigate to the application’s installation directory under Database\NewDBScript. For example, the file path may be C:\Program Files (x86)\B&V EPRI\Vista\Database\NewDBScript.
- Copy the necessary update scripts to a flash drive to give to the DBA.
- Copy all the ToDatabaseVersionXYZ.sql files whose XYZ are greater than the current Vista Database Version. For example, if the current database version is 2.50, copy ToDatabaseVersion251.sql, 252, 253, 254, and 260.
- Copy these other files:
- OutputTableDetails.out
- OutputTagDetails.out
- OutputTagGrandParents.out
- OutputTagParents.out
- Close Vista.
DBA Reference and Steps
- Login to the network database server.
- Backup the Vista (or otherwise named) database.
- Open a new query against the Vista (or otherwise named) database.
- Determine the database version by running the following query (this should agree with what the user noted from the inspecting the application’s help window):
[sql]SELECT * FROM DBVERSION ORDER BY 1 DESC[/sql]
For this example, let’s say the current version is 2.50.
- Copy the update scripts from the user to a location on the server. After each update script, run the query from step 4 to ensure the database was successfully updated. For example, I’ll suppose the files are located in C:\Temp\VistaUpdateScripts. Run the database update scripts in increasing order. For example, if the current database version is 2.50, run ToDatabaseVersion251.sql, then ToDatabaseVersion252.sql, and so forth, finishing with the ToDatabaseVersion260.sql (2.60 was the current Vista application version, as noted by the user on the client computer).
- There should be no errors for any query. If there are, please contact Black & Veatch.
- Update the output tags by running the following query (replace with your filepath to the respective .out files). The SELECT COUNT queries should return 4642 tags, 107 tables, 94 parents, and 12 grand parents (as of Vista 2.60).
[sql]
DELETE FROM dbo.OutputTableDetails;
DELETE FROM dbo.OutputTagDetails;
DELETE FROM dbo.OutputTagParents;
DELETE FROM dbo.OutputTagGrandParents;BULK INSERT dbo.OutputTagGrandParents FROM ‘C:\Temp\VistaUpdateScripts\OutputTagGrandParents.out’ WITH (CODEPAGE = ‘RAW’,FIELDTERMINATOR = ‘|’,KEEPIDENTITY,KEEPNULLS);
BULK INSERT dbo.OutputTagParents FROM ‘C:\Temp\VistaUpdateScripts\OutputTagParents.out’ WITH (CODEPAGE = ‘RAW’,FIELDTERMINATOR = ‘|’,KEEPIDENTITY,KEEPNULLS);
BULK INSERT dbo.OutputTagDetails FROM ‘C:\Temp\VistaUpdateScripts\OutputTagDetails.out’ WITH (CODEPAGE = ‘RAW’,FIELDTERMINATOR = ‘|’,KEEPIDENTITY,KEEPNULLS);
BULK INSERT dbo.OutputTableDetails FROM ‘C:\Temp\VistaUpdateScripts\OutputTableDetails.out’ WITH (CODEPAGE = ‘RAW’,FIELDTERMINATOR = ‘|’,KEEPIDENTITY,KEEPNULLS);SELECT Count(OutputTagDetailsID) as NumTags FROM OutputTagDetails;
SELECT Count(TableName) as NumTables FROM OutputTableDetails;
SELECT Count(OutputTagParentID) as NumParents FROM OutputTagParents;
SELECT Count(OutputTagGrandParentID) as NumGrandParents FROM OutputTagGrandParents;
[/sql]
How to test if the Update Worked
- Open Vista on the user’s (client) computer.
- Check the Vista version. The Vista version and current database version should agree.
- Open the different modules (e.g. Fuel, Economics, Performance Overwrites are good ones to test because they change most frequently) to make sure no errors occur.
- To test the output tags have been updated, generate some results from the Results module. Look through the Excel workbook for unpopulated tags. They will have “TD” followed by a number (e.g. “TD4285”). If there are any unpopulated tags, the database likely needs step #6 of the DBA reference in this post.
Vista Network Database Setup
Access to this page is restricted to members of the Vista Users Group. If you have any questions regarding Vista Users Group membership, please contact Ms. Una Nowling.
Registering on the Vista Web Server
MyVistaSource.com now has a completely new face! In order to access the Members-Only section of the Vista website, you’ll have to “Register.” You’ll make a unique UserName and password. This way, we can manage who sees what content and better protect the software and documentation. To register on the Vista website, do the following:
- Click “Register” on the top right-hand corner of the screen.
- Enter a Username and E-mail address
- Click Register
- Await confirmation e-mail.
One of the members of the Vista team will get an e-mail letting us know we need to confirm your registration. If it’s been more than 30 minutes, give us a call or shoot us an email, and we’ll drop what we’re doing and get you confirmed. This process is important because it allows us to screen out robots and attackers who would otherwise try to access data they shouldn’t.
Tutorial: Sensitivity Coal Generator
Access to this page is restricted to members of the Vista Users Group. If you have any questions regarding Vista Users Group membership, please contact Ms. Una Nowling.
Tutorial: Basic Economic Evaluation
Access to this page is restricted to members of the Vista Users Group. If you have any questions regarding Vista Users Group membership, please contact Ms. Una Nowling.
Tutorial: Vista Installation
Access to this page is restricted to members of the Vista Users Group. If you have any questions regarding Vista Users Group membership, please contact Ms. Una Nowling.
Tutorial: Basic Fuel Evaluation
Access to this page is restricted to members of the Vista Users Group. If you have any questions regarding Vista Users Group membership, please contact Ms. Una Nowling.
You must be logged in to post a comment.