To use JDBC distributed transactions through JTA, use the following procedure to install Microsoft SQL Server JDBC XA procedures. Repeat this procedure for any Microsoft SQL Server installation that uses distributed transactions.
If you have multiple instances of Microsoft SQL Server on the same machine, you can edit the instjdbc.sql script with a text editor to specify a fully qualified path to the sqljdbc.dll file for a particular instance. For example, if you want to install XA Procedures for an instance named "MSSQL.2," modify the instjdbc.sql script as shown and run it as described in the following procedure.
NOTE: For Microsoft SQL Server 2005 and higher, you can use the Microsoft SQL Server Configuration Manager tool to view Microsoft SQL Server services and determine the fully qualified path to the \Binn subdirectory of each Microsoft SQL Server instance on a machine. Using the Configuration Manager, right-click on a service and select Properties. Select the Service tab. The path is shown as a value of the Binary Path attribute. For Microsoft SQL Server 2000, you can use the SQL Server Enterprise Manager. Refer to your Microsoft SQL Server documentation for details.
install_dir is your product installation directory.
SQL_Server_Root is your Microsoft SQL Server installation directory.
sa_password is the password of the system administrator.
server_name is the name of the server on which the Microsoft SQL Server database resides.
location is the full path to instjdbc.sql. This script is located in the
install_dir/SQLServer JTA directory, where
install_dir is your product installation directory.