Purpose
Get an ODBC connection string for the solution database in the current DMP solution.
Synopsis
function insightgetsoldbconnstr:text
Return value
A connection string that can be used to connect to the solution database.
Example
SQLconnect(insightgetsoldbconnstr)
if not getparam('SQLsuccess') then
writeln('ERROR connecting to solution database')
exit(1)
end-if
Example of using
mmodbc to connect to the solution database.
Further information
1. Attempting to use the solution database when the Insight app is not being run in DMP will cause the model to abort with an error. The
ispopulated field of the
insightdmpcontext record can be used to distinguish between an app executing within DMP (
true) and on-premise (
false).
2. Attempting to get the solution database when the model is not run though Xpress Insight will cause the model to abort with an error, except when test mode has been activated by setting
insight_testmode.
3. When called from test mode, the value returned will be generated from the configuration set by
insightsetsoldb
Related topics
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.