- 03 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
How to modify the license key name and site code in the Pharos database
- Updated on 03 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
If running a full version of SQL Server, follow these steps:
Start the SQL query analyzer.
Select the pharos database.
Run the following script:
update system
set licenced_to = 'license key name', license_quick_key = 'sitecode01'
where:
new license key name = license key name
new site code = sitecode01
If running MSDE, follow these steps:
Find the user name and password needed to log on to MSDE. These can be found on the PC where the Pharos Database server has been installed by running 'regedit'.
In the registry, go to:
HKEY_LOCAL_MACHINE\Software\Pharos\Database Server\Database
The "User Name" value holds the login name and the "Password" holds the password.
Go to the command prompt, and do a change directory to the Binn sub-directory or sub-folder holding OSQL. If MSDE was installed at C:MSSQL7 (commonly used default directory) then the OSQL is in the directory C:\MSSQL7\Binn.
Create a batch file with the following command:
OSQL -Uusername -Ppassword -Q"update system set licenced_to='license key name',license_quick_key='sitecode01'"
where:
user name = username
password = password
new license key name = license key name
new site code = sitecode01
Run the batch file (run the command in item 4 in the directory in item 3).