Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

how Documents are saved in sql server using navision

Posted on by 10

hello everyone, I've a client who wants to retrieve documents from sql server using C# but has no idea how they saved it in the first place, all they know is that they used navision and hp scanner. 

I want to know if anyone can tell me how navision   save documents in the database? (field in navison database is content which is type image and stores blob) I tried to get those bytes and retrun them as pdf but it didnt work.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,160 Most Valuable Professional on at
    RE: how Documents are saved in sql server using navision

    Do you mean that you want to store BLOB fields in NAV? Standard NAV attachment table (attachments to document) stores links to external files, not BLOB. I'm not a huge fan of saving BLOB inside the database (it generates inefficiency) but if you need that my suggestion is to create a custom table with the primary key of your document in NAV and a blob field instead of adding a BLOB field to the standard document table. For example, to save the PDF of a Sales Order, instead of adding a BLOB field to the Sales Header table I suggest to create a new "Sales Order PDF" table with fields like Document Type, Document No, BLOB and then insert the pdf on this new table.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans