-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSQL Server Compact Script.sqlce
More file actions
37 lines (30 loc) · 996 Bytes
/
SQL Server Compact Script.sqlce
File metadata and controls
37 lines (30 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-- Script Date: 29/07/2012 13:13 - Generated by ExportSqlCe version 3.5.2.15
SELECT [LogSubscriptionId]
,[Name]
,[Url]
,[LogProviderTypeName]
FROM [LogSubscriptions];
GO
SELECT [LogEntryId], [Revision], [CommittedDate], [Author]
FROM [LogEntries] WHERE [LogSubscription_LogSubscriptionId] = 5
SELECT [LogEntry_LogEntryId], [ChangedFileId], [ChangeTypeValue], [FileName]
FROM [ChangedFiles]
WHERE [ChangeTypeValue] <> 'Added'
--UPDATE [ChangedFiles]
--SET [ChangeTypeValue] = 'Added'
--WHERE [ChangeTypeValue] = 'Add'
--
--UPDATE [ChangedFiles]
--SET [ChangeTypeValue] = 'Deleted'
--WHERE [ChangeTypeValue] = 'Delete'
--
--UPDATE [ChangedFiles]
--SET [ChangeTypeValue] = 'Modified'
--WHERE [ChangeTypeValue] = 'Modify'
DELETE FROM [ChangedFiles] where LogEntry_LogEntryId > 695
DELETE FROM [LogEntries] where logentryid > 695
select Revision, count(*)
from [LogEntries] le
inner join [ChangedFiles] cf
on cf.[LogEntry_LogEntryId] = le.[LogEntryId]
group by Revision