Changeset 12883 for trunk/sources/HeuristicLab.Services.Hive.DataAccess
- Timestamp:
- 08/19/15 13:44:42 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/PluginDao.cs
r12761 r12883 57 57 #region String queries 58 58 private const string DeleteUnusedPluginsStringQuery = @" 59 DELETE FROM [Plugin] 60 WHERE [Plugin].[PluginId] NOT IN ( 61 SELECT DISTINCT rp.[PluginId] 62 FROM [RequiredPlugins] rp 63 WHERE EXISTS (SELECT [TaskId] 64 FROM [Task] t 65 WHERE t.[TaskId] = rp.[TaskId]) 66 ); 67 "; 59 DELETE FROM [Plugin] WHERE [PluginId] IN ( 60 SELECT [PluginId] FROM [Plugin] 61 EXCEPT 62 SELECT DISTINCT [p].[PluginId] FROM [Plugin] p, [RequiredPlugins] rp 63 WHERE [p].[PluginId] = [rp].[PluginId])"; 68 64 #endregion 69 65 } -
trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Manager/PersistenceManager.cs
r12853 r12883 203 203 204 204 public TableInformation GetTableInformation(string table) { 205 string query = string.Format("sp_spaceused '{0}' , @updateusage='true'", table);205 string query = string.Format("sp_spaceused '{0}'", table); 206 206 var result = dataContext.ExecuteQuery<SqlServerTableInformation>(query).FirstOrDefault(); 207 207 if (result == null) return null;
Note: See TracChangeset
for help on using the changeset viewer.