NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLCommand Constructor

Initializes a new instance of the SQLCommand class.

Overload List

Initializes a new instance of the SQLCommand class without any parameters.

[Visual Basic] Overloads Public Sub New()
[C#] public SQLCommand();
[C++] public: SQLCommand();
[JScript] public function SQLCommand();

Initializes a new instance of the SQLCommand class with the given command text.

[Visual Basic] Overloads Public Sub New(String)
[C#] public SQLCommand(String);
[C++] public: SQLCommand(String*);
[JScript] public function SQLCommand(String);

Initializes a new instance of the SQLCommand class with the given command text and a connection string.

[Visual Basic] Overloads Public Sub New(String, String)
[C#] public SQLCommand(String, String);
[C++] public: SQLCommand(String*, String*);
[JScript] public function SQLCommand(String, String);

Initializes a new instance of the SQLCommand class with the given command text and a SQLConnection.

[Visual Basic] Overloads Public Sub New(String, SQLConnection)
[C#] public SQLCommand(String, SQLConnection);
[C++] public: SQLCommand(String*, SQLConnection);
[JScript] public function SQLCommand(String, SQLConnection);

Initializes a new instance of the SQLCommand class with a SQLConnection, the command text, a CommandType, and parameters.

[Visual Basic] Overloads Public Sub New(SQLConnection, String, CommandType, SQLParameter())
[C#] public SQLCommand(SQLConnection, String, CommandType, SQLParameter[]);
[C++] public: SQLCommand(SQLConnection*, String, CommandType, SQLParameter[]);
[JScript] public function SQLCommand(SQLConnection, String, CommandType, SQLParameter[]);

[To be supplied.]

[Visual Basic] Overloads Public Sub New(SQLConnection, String, CommandType, SQLParameter(), UpdateRowSource)
[C#] public SQLCommand(SQLConnection, String, CommandType, SQLParameter[], UpdateRowSource);
[C++] public: SQLCommand(SQLConnection*, String, CommandType, SQLParameter[], UpdateRowSource);
[JScript] public function SQLCommand(SQLConnection, String, CommandType, SQLParameter[], UpdateRowSource);

Example

The following example creates a SQLCommand and sets some of its properties.

See Also

SQLCommand Class | SQLCommand Members | System.Data.SQL Namespace