web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Access BC .bacpac Data & PDFs in Azure SQL Without a License?

(2) ShareShare
ReportReport
Posted on by 20

Hey everyone!

I used to have a Business Central SaaS environment but no longer want to pay for a license. I exported the database via a .bacpac file and restored it to Azure SQL so I can still access historical data.

Question: What’s the best way to view and query all that data (especially PDF attachments) directly in SQL?

  • Context: I’ve located some of my PDF references in [Tenant Media] (and possibly [Document Attachment]), but simply writing the BLOB to a .pdf file doesn’t always yield a valid PDF (there may be headers or compression).
  • Goal: I need a straightforward way to grab the data, confirm it’s a PDF, and either export it or query it, all without paying for Business Central.

Has anyone done this successfully? Whether using T-SQL, C#, PowerShell, or a reporting tool—any insights on how to handle the file attachments and the typical Business Central table relationships would be super helpful.

Thanks in advance!

I have the same question (0)
  • Verified answer
    Steven Renders Profile Picture
    5,672 Moderator on at
    Without a valid license you are not allowed to even open the database and query it.
  • Suggested answer
    YUN ZHU Profile Picture
    95,739 Super User 2025 Season 2 on at
    It is recommended to develop a tool to export all attachments before the license expires.
     
    Thanks.
    ZHU
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    hi,
    In that case you need to first run some query in SQL to know about that what is blob size length. and after the need to have some more query to export all blob data into one place, since Business Central often compresses BLOBs using zlib or similar kind of applcations, then you need to decompress those data into actual PDF might be you need to go with .Net programming to convert that data into actual PDF.
     
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,614 Super User 2025 Season 2 on at

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans