Tags:
tag this topic
create new tag
view all tags
---+ Reading SQL/Server Tables from APPX/Unix In order to access data stored under SQL Server under Windows while running APPX/Unix you have 2 choices, depending on which version of APPX you are currently running. ---++ APPX Version 5.4.2 and earlier The technique is to install a copy of APPX for Windows and connect it to SQL Server in the usual way. Once that is working, then use APPX/Net to connect your APPX Unix server to your APPX/Windows server. When APPX/Unix access the data over APPX/Net, the APPX/Windows server will retrieve it from SQL Server. 1 Install APPX on a Windows server. 1 Copy the application from Linux/Unix to Windows. Note that if you are copying from AIX, HP or Sun you must export your design files and import them into the Windows server. Linux Application Files are binary compatible with Windows, so you can just copy the Application Design files directly. We only need the Data Dictionaries for the file(s) you want to access, alternatively you can just manually enter the Data Dictionary in APPX/Windows if that's easier. *You must keep the Data Dictionary in sync between APPX/Windows and APPX/Unix.* 1 Connect APPX/Windows to SQL Server following [[UsingAPPXODBCConnection][these instructions]]. 1 Now set up an APPX/Net connection between your APPX/Unix server and your APPX/Windows server following [[APPXNet][these instructions]] ---++ APPX Version 5.4.3 and higher APPX Version 5.4.3 has been tested with the DataDirect SQL Server ODBC connector from Progress Software (<a href="https://www.progress.com/odbc/microsoft-sql-server" target="_blank" title="SQL Server ODBC Connector">SQL Server ODBC Connector</a>) and the <a href="http://www.easysoft.com/products/data_access/odbc-sql-server-driver/index.html#section=tab-1" target="_blank">ODBC Driver</a> from <a href="http://www.easysoft.com/index.html" target="_blank">EasySoft</a>. *NOTE:* This should be considered an 'experimental' feature in 5.4.3. We welcome any feedback on your experiences or testing. ---+++ DataDirect The connector is available in both 32 bit and 64 bit versions, make sure you install the version that matches your APPX version. If you are not sure if APPX is 32 bit or 64 bit, then it is probably 32 bit. After installing and testing the connector, you must set the following environment variables in APPX: APPX_ODBC_LIB=<path to the Progress supplied libodbc shared library><br />ODBCINI=<path to your odbc.ini file><br />ODBCINST=<path to your odbcinst.ini file><br />LIBPATH=<path to the folder containing the Data Direct libraries> If you aren't sure what the APPX_ODBC_LIB path should be, check the 'odbc.ini' file and use the path indicated by the 'Driver' line. The other variables also set during the DataDirect installation, you should be able to determine their values from that step. These should be set in the $APPXPATH/appx.env file, i.e., #<br /># Progress Data Direct Setup<br />#<br />LIBPATH=/opt/Progress/DataDirect/Connect_for_ODBC_71/lib<br />APPX_ODBC_LIB=/opt/Progress/DataDirect/Connect_for_ODBC_71/lib/odbc.so<br />ODBCINI=/opt/Progress/DataDirect/Connect_for_ODBC_71/odbc.ini<br />ODBCINST=/opt/Progress/DataDirect/Connect_for_ODBC_71/odbcinst.ini Once you have a working connection, then configure the <a href="UsingAPPXODBCConnection" target="_blank">APPX ODBC</a> connection as usual. *NOTES*: 1 Some versions of Unix use LIBPATH (i.e., AIX) and others use LD_LIBRARY_PATH. Set the appropriate variable for your system. If that still doesnt' work, copy the Progress shared libraries to a standard location, such as /lib: <span style="background-color: transparent;">cp /opt/Progress/DataDirect/ODBC_80_32bit/lib/* /lib/ </span> ---+++ EasySoft SQL Server ODBC Driver The connector is available in both 32 bit and 64 bit versions, make sure you install the version that matches your APPX version. If you are not sure if APPX is 32 bit or 64 bit, then it is probably 32 bit. The EasySoft driver may not include the unixODBC driver manager software. If not, you must install that first from <a href="http://www.unixodbc.org/" target="_blank">unixODBC.org</a>. Make sure you can establish your connection using 'isql' before trying to connect via APPX. After installing and testing the connector, you must set the following environment variable in APPX: APPX_ODBC_LIB=<path to the shared library> <span style="background-color: transparent;">If you aren't sure what the APPX_ODBC_LIB path should be, check the 'odbcinst.ini' file and use the path indicated by the 'Driver' line.</span> These should be set in the $APPXPATH/appx.env file, i.e., #<br /># EasySoft Driver Setup<br />#<br />APPX_ODBC_LIB=/usr/local/easysoft/sqlserver/lib/libessqlsrv.so Once you have a working connection, then configure the <a href="UsingAPPXODBCConnection" target="_blank">APPX ODBC</a> connection as usual. ---++ Troubleshooting * If you get the error "*Can't load ODBC driver manager" your APPX_ODBC_LIB path is incorrect. * Most modern versions of Linux will not recognize a new library path if you have the 'setuid' bit set on the APPX executable. Remove the 'setuid' bit and configure the Login Manager to impersonate the APPX user and group. Comments: _Read what other users have said about this page or add your own comments._ --- <br /><span>%COMMENT%</span>
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r10
<
r9
<
r8
<
r7
<
r6
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r10 - 2019-04-11
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback