Getting a driver for VMS to connect to SQL Server

2019-07-19 12:28发布

问题:

I want to connect from a COBOL/VMS system to an SQL Server 2005 instance. Could someone point me to a driver that works well?

回答1:

This is similar to another question on SO. Though not specific to VMS, many of the options presented there would work with VMS/ODBC.

You may also want to look at FreeTDS (I've used it many times but never from VMS) if you are looking for an open source implementation you can customize. Otherwise, the supported/commercial vendors that have products that would work include Attunity, DataDirect, EasySoft, and CONNX.



回答2:

You can have native connectivity to VMS files through Attunity Connect



回答3:

We currently do this from Pascal on VMS by calling a C procedure which in turns calls a Java class via JNI. The Java class uses JDBC to access the SQL Server database. There is no reason a similar thing couldn't be done from COBOL.

If you didn't want to do the JNI stuff, you could write a socket server in Java which accepted messages sent from the COBOL program and then did the update across to the SQL server database.