EX_PASSWORD is defined in example.h as “ ”. Before running the sample programs, you may want to edit example.h and change “ ” to your server password.
You have three options regarding EX_PASSWORD. Choose the one that best meets your needs:
Option 1 – Change your server password to “server_password” while you are running the samples. This creates the possibility of a security breach, because while your password is set to this published value, an unauthorized person might take the opportunity to log in to the server as you. If this is a problem, choose one of the other methods of handling passwords for the sample programs.
Option 2 – In example.h, change the string “server_password” to your own server password. Use the operating system’s protection mechanisms to prevent others from accessing the header file while you are using it. When you are finished with the samples, edit the line so that it again says “server_password.”
Option 3 – In the sample programs, modify the ct_con_props code that sets the server password and substitute your own code to prompt samples users for their server passwords. (Because this code is platform-specific, Sybase does not supply it.)