Connecting to the database

Once you establish the connection parameters by assigning values to the Transaction object properties, you can connect to the database using the Transaction object’s Connect method:

[Visual Basic]
InitializeComponent()
TR1.Connect()

[C#]
InitializeComponent();
TR1.Connect();