Try OpenEdge Now
skip to main content
WebSpeed Administration : Connecting WebSpeed to a Data Source : Connecting to an OpenEdge RDBMS : Connecting programmatically
Connecting programmatically
You can also provide connection information programmatically with the SpeedScript CONNECT statement. You can specify a parameter file that includes connection information with the CONNECT statement. However, you cannot connect to a database in the same procedure that accesses that database. You cannot connect to a database within an embedded SpeedScript program that then accesses the database tables and fields. Instead, you should include the CONNECT statement in a separate procedure (.p) that the embedded SpeedScript calls. This ensures that all agents receive the information they need to connect to the database.