10 The Sybase Data Provider : Connection String Options

Connection String Options
Connection string options can be defined directly in a connection string, or set in the Advanced Properties dialog box in Visual Studio (see “Defining Connection String Values in Server Explorer”.
Constructing a Connection String
“Sybase Data Provider Connection String Options” lists the connection string options supported by the Sybase data provider, and describes each option. The options have the form:
option=value
Each connection string option value pair is separated by a semicolon. For example:
"Host=Accounting1;Port=4100;User ID=lucy;Password=qu3sts;Database Name=Accounting"
See “Using Connection Strings” for guidelines for the syntax and use of connection string options.
Defining Connection String Values in Server Explorer
See “Creating a New Connection in Server Explorer” for more information about using Visual Studio to add and modify connections.
To add a connection:
1
Right-click the Data Connections node and select Add Connection.... The Add Connection window appears.
Default values are displayed in the Port field of the Add Connection window. Standard connection and Use Sybase Authentication have been selected.
Do one of the following steps:
2
The Choose Data Source window has DataDirect Technologies selected in the Data source list box. The DataDirect Connect for ADO.NET Sybase data provider is selected in the Data provider drop-down list.
Do one of the following actions:
a
b
In the Data provider drop-down list, select Progress DataDirect Connect for ADO.NET Sybase Data Provider.
c
d
If the DataDirect Connect for ADO.NET Sybase data provider is not listed in the Data provider drop-down list, use the Visual Studio Provider Integration Tool, located in the DataDirect Connect for ADO.NET program group. The DataDirect Connect for ADO.NET installation automatically integrates the data providers into Visual Studio. However, if you install the data providers before installing Visual Studio, or uninstall and reinstall Visual Studio, the DataDirect data providers will not appear in the Data provider drop-down list until you use the Visual Studio Integration Tool.
e
Click OK. The Add Connection window appears.
3
To use a standard connection, select the Standard Connection option. Type the values for Host and Port. See “Sybase Data Provider Connection String Options” for a description of these connection properties.
4
If you select Use Kerberos Authentication, type the Service Principal Name, as described in “Service Principal Name”, in the SPN text field.
If you select Use Sybase Authentication, type the User ID and Password into the corresponding fields. These values are required for authentication.
5
6
7
8
Click Advanced... to specify additional provider-specific property values.
The Advanced Properties window for the Sybase data provider with default value showing for the Validate Server Certificate.
To change the values in the Advanced Properties window, type a value into the field or select a value from a drop-down list. The value that appears in the field below the description of the property is added to the connection string. If you accept the default values, the connection string field remains unchanged. The properties are grouped in the list box in categories. See “Sybase Data Provider Connection String Options” for a complete list of the properties and their descriptions.
9
Click Test Connection. At any point during the configuration process, you can click this button to attempt to connect to the data source using the connection properties specified in the Add Connection dialog box.
NOTE: If you are configuring alternate servers for use with the connection failover feature, be aware that the Test Connection button tests only the primary server, not the alternate servers.
10
Click OK or Cancel to close the Add Connection window. If you click OK, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.
Default Values for Connection String Options
“Sybase Data Provider Connection String Options” describes the connection string options. Table 10-1 lists the connection string options the Sybase data providers support, along with the default values for each option.
0x10 or ShowParameterDirections