sys_attachment_doc Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2008 10:58 AM
Does anyone know what the sys_attachment_doc table is used for or how it goes with sys_attachment table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2008 05:27 PM
Any attachment you save in the system is broken up into 3k chunks.
Those chunks are then base64 encoded, producing 4k strings.
Those strings are then written out as sequential rows in sys_attachment_doc
There's one "master" entry in sys_attachment describing the file name, file type and whatnot, which, in turn, is associated with a record in the database like "incident INC10002".
The various entries in sys_attachment_doc then relate back to that entry in sys_attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2008 04:27 PM
Thanks Pat. I should be able to copy an attachment by using these tables on insert of an attachment, correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2008 07:03 PM
You could definitely do that, you'd just have to be real careful and make sure you copy both the sys_attachment record and the multiple sys_attachment_doc records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2008 04:59 PM
Nice. It seems to be working now.