Platform API Connection

(imported topic written by null)

Is there some way other than creating a DSN on the local machine to use BESAPILib?

I would like to create a connection programatically.

I can create an OdbcConnection by specifying the driver, database, and server in the connection string, but it looks like specying by DSN is the only option in BESAPILib.

Am I missing something?

(imported comment written by Lee Wei)

It is correct that the API prior to 8.2 only provides the interface for specifying an ODBC DSN.

You cannot use a connection string instead.

What version of the TEM Server are you using?

In TEM 8.2 and above, the different objects have a SetServer() method instead of SetDefaultDSN().

Use this link to go to the

TEM Documentation

, look for the API Reference Guide and section “Connecting to the API”.

SetServer() take a URL for the TEM Server, such as http://temserver:52311.

Lee Wei