Add the following text to theportal-ext.properties file in theRoot-Dir/webspace-for-gfv2/var/webspace/war-workspace/customs/webspace/WEB-INF/classes directory.
# SQL Server
#
jdbc.default.driverClassName=net.sourceforge.jtds.jdbc.Driver
jdbc.default.url=jdbc:jtds:sqlserver://localhost:1433/lportal
jdbc.default.username=sa
jdbc.default.password=<admin password set for MsSQL>
Download the jTDS JDBC driver from http://jtds.sourceforge.net/.
Copy the JAR file to the GlassFish-install-dir/domains/domain1/lib directory.
Restart the GlassFish server.