Embedding A Database Engine - Novell ZENWORKS APPLICATION VIRTUALIZATION 8.0.2 - 11-2010 User Manual

Hide thumbs Also See for ZENWORKS APPLICATION VIRTUALIZATION 8.0.2 - 11-2010:
Table of Contents

Advertisement

3.13
E
MBEDDING A DATABASE ENGINE
ZENworks Application Virtualization allows SQL Server 2005 Express to be embedded directly
into the executable file. This allows executables to run a SQL Server user-instance for a virtual
.mdf database file.
3.13.1 Selecting a database engine to embed
To select SQL Server 2005 Express:
Click on the Runtimes button on the ribbon bar.
Click on the dropdown next to the Embed SQL Server Express option. This displays a
list of supported SQL Server Express engines.
Select an engine which is appropriate for your database.
Selecting a database engine displays the database configuration dialog. Selecting the Do not
embed SQL Server Express option disables this feature.
3.13.2 Configuring your application to use an embedded database
The code displayed on the database configuration dialog provides an example of how to create a
connection string for connecting to the user-instance database that loads an .mdf file from the
virtual filesystem.
The virtualized SQL Server 2005 Express default instance name is stored in a special environment
variable named %SQLSPOON%. A unique instance of this name is created at build time and is
not user-configurable.
To embed a database file:
Verify that the desired .mdf database file has been added to the virtual filesystem.
Choose the .mdf database file to attach using the AttachDBFilename dropdown. This
path is stored in the %AttachDBFilename% environment variable.
To manually modify this selection at a later time, click the Environment Variables button on the
Process Configuration tab of the Settings pane.
Note: The .NET 2.0 Framework is automatically included when SQL Server Express 2005 engine
is selected. SQL Server 2005 Express requires this component to be installed. If this component is
removed, the application will only run on machines that have the .NET Framework 2.0 installed.
31
Novell ZENworks Application Virtualization

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks application virtualization 8.0.2

Table of Contents