Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

how Documents are saved in sql server using navision

(0) ShareShare
ReportReport
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,162 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans