Changes

Jump to: navigation, search

Check Attachments

244 bytes added, 15:15, 9 November 2016
no edit summary
<ol>
<li> Open the Command window and navigate to ''C:\IMSMAng\server\attachments'' folder.
[[Image:DOS cmd list.png|600px|center]]<br/>
<li> List the file names with the command ''dir /b > myfile.txt''
<li> Use Navicat and import the file ''myfile.txt'' to table ''test''
:If needed delete the row with ''myfile.txt'' from the table ''test''.
<li> Add field ''guid'' to table test (varchar 38).
[[Image:Check attachment1.png|700px|center]]<br/>
<li> Now the field ''guid'' table ''test'' should be populated. The value is part of the file name and therefore the UPDATE query has to be run for each case.
:'''Example query'''
:'''Missing in the table''' (in my example 6625)
<pre>
6625SELECT"public".attachment.filename,"public".test.f1FROM"public".attachmentRIGHT JOIN "public".test ON "public".attachment.attachment_guid = "public".test.guidWHERE"public".attachment.attachment_guid IS NULL
</pre>
</ol>
[[Category:SQL Queries]]
[[Category:NoPublic]]
{{NavBox Hub}}
6,632
edits

Navigation menu