Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a 32bit Extended Stored Procedure on a 64bit Sqlserver 2008 R2

How can I run a 32bit Extended Stored Procedure on a 64bit Sqlserver 2008 R2.

I do not have access to the source of this Extended Stored Procedure since this is legacy code from a third party application.

I am currently getting the following error:

Could not load the DLL D:\Program Files\Microsoft SQL Server\MSSQL10.X\MSSQL\Binn\fledqproc.dll, or one of the DLLs it references. Reason: 193(%1 is not a valid Win32 application.).

The database is currently not running in any compatibility modes.

This extended stored procedure runs on all our SQL Server 2000 instances.

like image 353
Alexandre Brisebois Avatar asked Feb 01 '26 01:02

Alexandre Brisebois


1 Answers

The only fix I found for this is to run your code through a linked server in a 32-bit instance of SQL Server Express next to your 64-bit instance (32-bit instances can be installed on a 64-bit Windows server). Any version other than Express will do, but SQL Server Express adds no extra cost.

Not the most elegant solution, but no problem so far.

like image 141
Jason Avatar answered Feb 02 '26 15:02

Jason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!