2 writes to _com
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
142
_com
= new SqlCommand();
201
_com
= null;
27 references to _com
System.Data (27)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (27)
143
_com
.Connection = _con;
146
_com
.CommandText = "select is_broker_enabled from sys.databases where database_id=db_id()";
148
if (!(bool)
_com
.ExecuteScalar()) {
155
_com
.Parameters.Add(_timeoutParam);
172
_com
.CommandText = _receiveQuery;
199
if (
_com
!= null) {
200
_com
.Dispose();
307
_com
.BeginExecuteReader(callback, null); // NO LOCK NEEDED
318
using (SqlDataReader reader =
_com
.EndExecuteReader(asyncResult)) {
446
_com
.CommandText = _beginConversationQuery;
448
_concatQuery = _endConversationQuery +
_com
.CommandText;
582
_com
.CommandText = (null != _beginConversationQuery) ? _beginConversationQuery : _receiveQuery; // If we're doing the initial query, we won't have a conversation Guid to begin yet.
583
if (
_com
.Parameters.Count > 1) { // Remove conversation param since next execute is only query.
584
_com
.Parameters.Remove(_conversationGuidParam);
586
Debug.Assert(
_com
.Parameters.Count == 1, "Unexpected number of parameters!");
589
_com
.CommandText = _concatQuery; // END query + WAITFOR RECEIVE query.
591
if (
_com
.Parameters.Count == 1) { // Add parameter if previous execute was only query.
592
_com
.Parameters.Add(_conversationGuidParam);
594
Debug.Assert(
_com
.Parameters.Count == 2, "Unexpected number of parameters!");
791
_com
.Cancel(); // Cancel the pending command. No-op if connection closed.
855
using (SqlDataReader reader =
_com
.ExecuteReader()) {
873
if (
_com
.Parameters.Count > 1) { // Need to close dialog before completing.
881
_com
.CommandText = _endConversationQuery;
882
_com
.Parameters.Remove(_timeoutParam);
883
_com
.ExecuteNonQuery();
901
_com
.CommandText = "BEGIN TRANSACTION; DROP SERVICE "+_escapedQueueName+"; DROP QUEUE "+_escapedQueueName+"; DROP PROCEDURE "+_sprocName+"; COMMIT TRANSACTION;";
903
_com
.ExecuteNonQuery();