Accessing MS SQL Server from Perl through OLE DB

Version 2.014 released 2022-06-12

Win32::SqlServer - Downloads and Documentation

Win32::SqlServer is a module that permits you to access Microsoft SQL Server from Perl through OLE DB. Win32::SqlServer is designed to be the prime alternative when you need to access SQL Server from Perl on Windows, and you have no interest to access any other RDBMS. That is, it does not run on Unix, and there is no support for DBI. To see Win32::SqlServer in action, take at look the quick examples in the Win32::SqlServer manual.

To download this module here is the file: (1135 KB). The zip file includes 32-bit and 64-bit binaries for Perl 5.24, 5.26., 5.28, 5.30, 5.32, 5.34 and 5.36. These binaries run with Strawberry Perl and ActiveState Perl with the caveat at the time of this writing the most recent release of Strawberry Perl was 5.32 and the most recent release of ActiveState Perl was 5.34.

Quick install instruction for the binary versions.

For more detailed instructions, including the full set of prerequisites, see the README (also included in the zip file).

The manual is included in the zip file, but you can also read it here:

Manual for Win32::SqlServer.

The manual is long, over 90 pages when printed, but there are plenty of examples in it.

You can also view the revision history.


The story about Win32::SqlServer is highly dependent on three men: Larry Wall (of course). Michael Peppler who wrote the original Sybperl, and Christian Mallwitz of Intershop Gmbh who took the effort to port Sybperl 2.03 to Windows NT. From that work I was able to develop MSSQL::DBlib, and without that an entrance point into the XS world, I would not have been able to write Win32::SqlServer.


Any comments on these modules are welcome, please mail me at
Last updated 22-06-12 14:51