92 references to SqlCommand
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1146return new SqlCommand(null, this); 1988SqlCommand c = new SqlCommand(TdsEnums.SP_SDIDEBUG, this);
fx\src\data\System\Data\SqlClient\SqlDataAdapter.cs (2)
42SelectCommand = new SqlCommand(selectCommandText, connection); 46SelectCommand = new SqlCommand(selectCommandText, selectConnection);
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (1)
335using (SqlCommand transactionLevelCommand = new SqlCommand("set @out = @@trancount", (SqlConnection)(_innerConnection.Owner))) {
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
1050var command = new SqlCommand(commandText, sqlConnection);
System.Web (86)
Cache\SqlCacheDependency.cs (3)
536sqlCmd = new SqlCommand(SqlCacheDependencyManager.SQL_POLLING_SP_DBO, holder.Connection); 1496sqlCmd = new SqlCommand(null, sqlConnection); 1691sqlCmd = new SqlCommand(SQL_QUERY_REGISTERED_TABLES_SP_DBO, sqlConn);
DataAccess\SqlConnectionHelper.cs (2)
265SqlCommand command = new SqlCommand("USE master", connection); 267command = new SqlCommand("sp_detach_db", connection);
Management\SqlServices.cs (3)
412sqlCmd = new SqlCommand(null, connection); 558cmd = new SqlCommand("SELECT DB_ID(@database)", sqlConnection); 609SqlCommand cmd = new SqlCommand("dbo.aspnet_AnyDataInTables", sqlConnection);
Profile\SqlProfileProvider.cs (9)
163SqlCommand cmd = new SqlCommand("dbo.aspnet_Profile_GetProperties", holder.Connection); 228SqlCommand cmd = new SqlCommand("dbo.aspnet_Profile_SetProperties", holder.Connection); 333cmd = new SqlCommand("BEGIN TRANSACTION", holder.Connection); 338cmd = new SqlCommand("dbo.aspnet_Profile_DeleteProfiles", holder.Connection); 351cmd = new SqlCommand("COMMIT TRANSACTION", holder.Connection); 357SqlCommand cmd = new SqlCommand("ROLLBACK TRANSACTION", holder.Connection); 386SqlCommand cmd = new SqlCommand("dbo.aspnet_Profile_DeleteInactiveProfiles", holder.Connection); 420SqlCommand cmd = new SqlCommand("dbo.aspnet_Profile_GetNumberOfInactiveProfiles", holder.Connection); 507SqlCommand cmd = new SqlCommand("dbo.aspnet_Profile_GetProfiles", holder.Connection);
Security\SQLMembershipProvider.cs (17)
361SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_CreateUser", holder.Connection); 464SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_ChangePasswordQuestionAndAnswer", holder.Connection); 621SqlCommand cmd = new SqlCommand( "dbo.aspnet_Membership_SetPassword", holder.Connection ); 740SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_ResetPassword", holder.Connection); 821SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_UpdateUser", holder.Connection); 886SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_UnlockUser", holder.Connection); 938SqlCommand cmd = new SqlCommand( "dbo.aspnet_Membership_GetUserByUserId", holder.Connection ); 1026SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_GetUserByName", holder.Connection); 1115SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_GetUserByEmail", holder.Connection); 1171SqlCommand cmd = new SqlCommand("dbo.aspnet_Users_DeleteUser", holder.Connection); 1234SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_GetAllUsers", holder.Connection); 1317SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_GetNumberOfUsersOnline", holder.Connection); 1371SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_FindUsersByName", holder.Connection); 1469SqlCommand cmd = new SqlCommand("dbo.aspnet_Membership_FindUsersByEmail", holder.Connection); 1581SqlCommand cmd = new SqlCommand( "dbo.aspnet_Membership_UpdateUserInfo", holder.Connection ); 1642SqlCommand cmd = new SqlCommand( "dbo.aspnet_Membership_GetPasswordWithFormat", holder.Connection ); 1722SqlCommand cmd = new SqlCommand( "dbo.aspnet_Membership_GetPassword", holder.Connection );
Security\SQLRoleProvider.cs (16)
114SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_IsUserInRole", holder.Connection); 172SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_GetRolesForUser", holder.Connection); 244SqlCommand cmd = new SqlCommand("dbo.aspnet_Roles_CreateRole", holder.Connection); 297SqlCommand cmd = new SqlCommand("dbo.aspnet_Roles_DeleteRole", holder.Connection); 348SqlCommand cmd = new SqlCommand("dbo.aspnet_Roles_RoleExists", holder.Connection); 428(new SqlCommand("BEGIN TRANSACTION", holder.Connection)).ExecuteNonQuery(); 435(new SqlCommand("COMMIT TRANSACTION", holder.Connection)).ExecuteNonQuery(); 441(new SqlCommand("ROLLBACK TRANSACTION", holder.Connection)).ExecuteNonQuery(); 461SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_AddUsersToRoles", conn); 543(new SqlCommand("BEGIN TRANSACTION", holder.Connection)).ExecuteNonQuery(); 550(new SqlCommand("COMMIT TRANSACTION", holder.Connection)).ExecuteNonQuery(); 555(new SqlCommand("ROLLBACK TRANSACTION", holder.Connection)).ExecuteNonQuery(); 573SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_RemoveUsersFromRoles", conn); 628SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_GetUsersInRoles", holder.Connection); 697SqlCommand cmd = new SqlCommand("dbo.aspnet_Roles_GetAllRoles", holder.Connection); 757SqlCommand cmd = new SqlCommand("dbo.aspnet_UsersInRoles_FindUsersInRole", holder.Connection);
State\sqlstateclientmanager.cs (15)
1003cmd = new SqlCommand("Select name from sysobjects where type = 'P' and name = 'TempGetVersion'", sqlConnection); 1029cmd = new SqlCommand("dbo.GetMajorVersion", sqlConnection); 1068SqlCommand cmdTempGetAppId = new SqlCommand("dbo.TempGetAppID", sqlConnection); 1283_cmdTempGet = new SqlCommand("dbo.TempGetStateItem3", _sqlConnection); 1325_cmdTempGetExclusive = new SqlCommand("dbo.TempGetStateItemExclusive3", _sqlConnection); 1366_cmdTempReleaseExclusive = new SqlCommand("dbo.TempReleaseStateItemExclusive", _sqlConnection); 1380_cmdTempInsertLong = new SqlCommand("dbo.TempInsertStateItemLong", _sqlConnection); 1396_cmdTempInsertShort = new SqlCommand("dbo.TempInsertStateItemShort", _sqlConnection); 1411_cmdTempUpdateLong = new SqlCommand("dbo.TempUpdateStateItemLong", _sqlConnection); 1428_cmdTempUpdateShort = new SqlCommand("dbo.TempUpdateStateItemShort", _sqlConnection); 1445_cmdTempUpdateShortNullLong = new SqlCommand("dbo.TempUpdateStateItemShortNullLong", _sqlConnection); 1461_cmdTempUpdateLongNullShort = new SqlCommand("dbo.TempUpdateStateItemLongNullShort", _sqlConnection); 1478_cmdTempRemove = new SqlCommand("dbo.TempRemoveStateItem", _sqlConnection); 1493_cmdTempInsertUninitializedItem = new SqlCommand("dbo.TempInsertUninitializedItem", _sqlConnection); 1509_cmdTempResetTimeout = new SqlCommand("dbo.TempResetTimeout", _sqlConnection);
UI\WebParts\SqlPersonalizationProvider.cs (20)
88SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_FindState", connection); 208SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_FindState", connection); 314SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_GetCountOfState", connection); 390SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_GetCountOfState", connection); 510command = new SqlCommand("dbo.aspnet_PersonalizationPerUser_GetPageSettings", connection); 513command = new SqlCommand("dbo.aspnet_PersonalizationAllUsers_GetPageSettings", connection); 586command = new SqlCommand("dbo.aspnet_PersonalizationPerUser_ResetPageSettings", connection); 589command = new SqlCommand("dbo.aspnet_PersonalizationAllUsers_ResetPageSettings", connection); 644SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_DeleteAllState", connection); 696SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_ResetSharedState", connection); 708(new SqlCommand("BEGIN TRANSACTION", connection)).ExecuteNonQuery(); 721(new SqlCommand("COMMIT TRANSACTION", connection)).ExecuteNonQuery(); 727(new SqlCommand("ROLLBACK TRANSACTION", connection)).ExecuteNonQuery(); 809SqlCommand command = new SqlCommand("dbo.aspnet_PersonalizationAdministration_ResetUserState", connection); 843(new SqlCommand("BEGIN TRANSACTION", connection)).ExecuteNonQuery(); 864(new SqlCommand("BEGIN TRANSACTION", connection)).ExecuteNonQuery(); 878(new SqlCommand("COMMIT TRANSACTION", connection)).ExecuteNonQuery(); 884(new SqlCommand("ROLLBACK TRANSACTION", connection)).ExecuteNonQuery(); 912command = new SqlCommand("dbo.aspnet_PersonalizationPerUser_SetPageSettings", connection); 915command = new SqlCommand("dbo.aspnet_PersonalizationAllUsers_SetPageSettings", connection);
Util\SecUtil.cs (1)
268cmd = new SqlCommand("dbo.aspnet_CheckSchemaVersion", connection);