Friday 15 June 2012

Automatically Leasing a License

Here is a quick QlikView tip for automatically leasing a license from a QlikView Server.

  1. Create a batch file containing the following:
    "C:\Program Files\QlikView\Qv.exe" /r "qvp://myQvServer/mySmallQvApp.qvw"
  2. Replace "C:\Program Files\QlikView\qv.exe" with the path to the qv.exe on your local computer.
  3. Replace "qvp://myQvServer/mySmallQvApp.qvw" with the server name and the name of a small application. You can always create a dummy application with no script or data just for this auto-leasing to use.
And that's it! You can schedule this to run on startup by placing the batch file in the Windows Startup folder, or over night each night using Windows Scheduler. The /r parameter asks QlikView to perform a reload of the application. As this is a server hosted document, QlikView won't be able to perform a reload and so will simply open QlikView, open the document and then close QlikView, leasing your license from the server in the process.

2 comments:

  1. hi matthew,
    can you explain how it will lease a license by just reloading the application?

    ReplyDelete
  2. i did it as instructed but it is asking for password, any clue?

    ReplyDelete