Setting database parameters in code

If you are developing an application that connects to a database, you must specify the required connection parameters in the appropriate code as properties of the Transaction object.

One of the connection parameters you might want to specify in code is DbParameter. You can do this by copying DbParameter syntax from the Preview tab in the Database Profile Setup dialog box into your code.