ComponentOne True DataControl 8.0
ConnectionString Property

 

ConnectionString Property

This property determines the ADO connection string used to establish a data connection when creating SourceRecordset in data source mode (DataMode = 0 - DataSource).

Syntax

TData.ConnectionString = string

Remarks

Read/Write at run time and design time. Property applies to TData control.

Contains detailed information organized as a series of argument=value statements separated by semicolons. The connection string contains all necessary information (except UserName and Password) for establishing a connection with a data source, usually a database.

At design time, the DataSource property page provides three options for specifying the ConnectionString:

·      By Data Link File Name

·      By ODBC Data Source Name

·      By building a connection string with the standard Build dialog, or by entering it directly.

ConnectionString is a standard ADO property. It can be set at any time during the control’s lifetime, but it will take effect only if set at design time, in WillOpenData event or after the Refresh method is called.

See Also

TData Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback