Executes a stored procedure or a command

ParameterDescriptionExample
Command or procedure nameSQL Command or stored procedure name

"testproc"

"UPDATE FOO Set bar = @bar"

Command typeStoredProcedure or Command 
Data return type
Enum valueDescription
AffectedRowsNumber of rows affected by the command
XmlStringResult value in XML
XDocumentResult values as XDocument object
ParametersList of name/value pairs to use as parameters
Connection stringThe connection string to use
Timeout secondsThe command timeout