mirror of https://github.com/kacos2000/Queries
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
624 B
SQL
18 lines
624 B
SQL
-- This query is to show the content of the SecurityDescriptor table
|
|
-- of the new SecStore.db (Win 11 search database)
|
|
--
|
|
-- Database location:
|
|
-- C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Projects\SystemIndex\SecStore\SecStore.db
|
|
|
|
Select
|
|
Id,
|
|
-- Since the field 'Value' is a BLOB containing Text
|
|
-- but has many separator which might cause mis-handling from, DB Browser & CSV tools,
|
|
-- this will show the content in quotes:
|
|
quote(value) as 'Value',
|
|
-- Remove null value from columns
|
|
case when EnterpriseIds notnull
|
|
then EnterpriseIds else ""
|
|
end as 'EnterpriseIds'
|
|
|
|
from SecurityDescriptor |