Applies to: reported on Clarion 7 with MSSQL and the IP driver; the app was an .app file.
Problem
An IP driver solution over TPS tables also had to reach an MSSQL server. Normally the Owner field holds a global variable with the SQL connection string, but the IP driver uses the owner for its own connection. How does the SQL connection variable reach the server? In the poster's embed code, before the files were opened, he set IPDRV::OWNER = (glo:IPSConnect) and called ipx.SetFileName('TESTSQL',glo:SQLConnect); opening the IP table worked and opening the SQL table gave error 90. The variable held Server,Database,User,Password.
Solution
- The server side (the DataManager.dll) makes a standard connection to the database. The connection variable has to be defined and set there.
- Set it with a server-side (remote) procedure, called before any table is opened. Mike H. suggested a server function that sets the file name; Robert (SoftVelocity) said the same for the variable.
- The client cannot hand the connection string over: the poster found the server does not react to a variable sent by the client. The IP driver templates handle the owner strings of an .app client.
- Ben pointed to his webinar on connecting the IP driver to a SQL data set, and the poster said it solved the problem.
Caveats
- The thread does not show the final working code, only that it was found in the webinar.
- SetFileName is in the IP driver reference; the poster first read it as the answer and it was not.
Today (2026)
Not re-tested. The design, with the connection made on the server side, likely still holds. The webinar link is old.
Sources: Wim S. (Mar 2011, the question), Mike H., Robert (SoftVelocity), Ben (Mar 2011) in softvelocity.clarion.databasedrivers.