This is Win32::SqlServer, a module for calling Microsoft SQL Server from Perl through OLE DB.
Copyright © 2004-2018 Erland Sommarskog. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
There is no support for DBI. This module does not run on Unix – or any other non-Windows OS for that matter.
For details, see the Prerequisites section in the Win32::SqlServer manual.
If you need support for older platforms than listed above, you can use an older version of Win32::SqlServer as follows:
The zip file includes x86 and AMD64 binaries for Perl 5.18, 5.20, 5.22, 5.24 and 5.26 The binaries have been tested with all corresponding versions of ActivePerl and Strawberry Perl. Note that the 32-binaries in the kit for 32-bit Perl are built with the option USE_64_BIT_INT set. They will not run with a 32-bit Perl built without this option.
The kit also includes source code and test scripts. For information how to build from sources, see below.
The binaries were built on Windows 10 with the Visual Studio 2017 C++ compiler, using Perl installations that I built myself from the Perl source in the same manner.
Caveat: ActivePerl has a post where they say Microsoft compilers are incompatible with ActivePerl 5.18 and later and say that there are access violations etc. I have not seen any such issues (except when I tried to run without USE_64_BIT_INT), but "it seems to work". Furthermore, to get the 32-bit binaries for Perl 5.22 and later to work with Active and Strawberry Perl, I had to disable a new XS handshake in Perl, in a way that is not documented nor is likely to be supported. But as I said, "it seems to work".
perl activeperl-copy.pl C:\Perl
To test that the installation is OK, either run any of the test scripts that comes with Win32::SqlServer and which are detailed in tests.html, or run any of the sample scripts in the manual.
The manual is in Win32-SqlServer.html. activeperl-copy.pl also installs it as html/site/lib/Win32/SqlServer.html There is a POD file as well, but there is no real contents in it, only a pointer to the HTML file.
Please mail bug reports and suggestions to firstname.lastname@example.org. Try to make your reports as specific as possible. Particularly do not forget to include which versions of Perl, Windows, SQL Server etc you are using.
I usually try to respond within 24-48 hours, but if I am on holiday I am.
To build Win32::SqlServer you need:
If you want to build Win32::SqlServer with another compiler than Visual C++, you are welcome to try. I am certainly interested to know if you succeed, but I am afraid that I cannot give any help in the matter – it's way beyond my realm. (I'm an SQL Server guy, after all.)
Note that the Perl environment you build in, should have been configured with the same compiler as you are using. That is, you cannot build Win32::SqlServer with Strawberry Perl, or ActivePerl 5.18 or later, as they are configured with gcc.
Text in this type face indicates command you run from the command prompt.
$SQLDIRpoints to where the SDK for Microsoft OLE DB Driver for SQL Server is located.