Creating a linked table in NAV with a blob

JoshRingJoshRing Member Posts: 14
Hi there,

In a table in a second database outside of NAV we store external documents (pdf, images, textfiles etc) in a varbinary field. We would like to be able to send an e-mail to an employee - from NAV - that can pick up the right external documents and attach them to that mail.

I thought a new NAV table, linked to a view on that second databasetable, would do the trick. But it seems a NAV 'blob' field is not quite the same as a varbinary in SQL Server. When I run the new table, NAV raises an error on incompatibility between the blobfield in nav and the bigint (?) field in SQL Server. In the blobfield properties, I've set compression to No, but that doesn't seem to help.

Perhaps someone can shine a light on this? Is it even possible to 'map' a blobfield to a varbinary in a view? Or what would be the best (hence: fastest) way to get these varbinaries in NAV?

Best regards,

Josh

Best Answers

  • JoshRingJoshRing Member Posts: 14
    Answer ✓
    Thanks Slawek & Juhl! I will try your approaches.

    Josh

Answers

  • JoshRingJoshRing Member Posts: 14
    Answer ✓
    Thanks Slawek & Juhl! I will try your approaches.

    Josh
Sign In or Register to comment.