Useful Queries: Checked out documents

The following DQL will identify which are the documents that are checked out by user. The folder filter is added to reduce unnecessary results. It can be removed if we want to find out for the entire docbase. Since we specified ‘descend’, all subfolders are included.

select object_name, r_lock_owner from dm_document where r_lock_owner is not nullstring and folder(‘/MyCabinet’, descend)

The following DQL will cancel checked out for all documents that were checked out in a specific cabinet/folder. Since we specified ‘descend’, all subfolders are included.

update dm_document object set r_lock_owner = ” where r_lock_owner is not nullstring and folder(‘/MyFolder’, descend)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: