CodeCharge Studio All C#.NET VB.NET

ConnectionCommands Run-Time Property (.NET)

Applies to

ConnectionString Object

Syntax

C#.NET

public System.Collections.Specialized.NameValueCollection ConnectionCommands{get;}

VB.NET

Public Readonly Property ConnectionCommands() As System.Collections.Specialized.NameValueCollection

Description

Gets the collection of the SQL commands, which will be executed each time the connection is opened. These commands are usually used for setting client session variables or changing database server defaults.

Examples

C#.NET

ConnectionString1.ConnectionCommands.Add("ANSI","SET ANSI_DEFAULTS ON");

VB.NET

ConnectionString1.ConnectionCommands.Add("ANSI","SET ANSI_DEFAULTS ON")


On-line, printable versions and updates