Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6885641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:39:36+00:00 2026-05-27T05:39:36+00:00

heres the quick background of the app Basically.. Multiple users(usually only one) per machine

  • 0

heres the quick background of the app

Basically..

  1. Multiple users(usually only one) per machine
  2. local sql server database running on each machine holdings its own data
  3. WPF app has ability to export data in the table to zip files

As it sits now, I cannot change the environment its on.

I see two options with dealing with saving/uploading attachments to docs(pdf,doc)
currently there are no sizing requirements or required extensions to my knowledge

  1. Saving each file as a varbinary directly into the database and using FK’s and a reference table to get those file attachments back in the application for opening

  2. Having the same FK’s and reference tables, but I save to file to some folder on the local harddrive(hash + encryption?). Then I rename that file to a generic name and store the name and location of that file in the database.

the first option seems hokey when I dealt with this in web development, but since I had an application server I didn’t have to worry about possible user interference.

I like option two, but the files can be moved by the user and throw everything out of whack, and possibly leaves the option for orphaned child records in the database or orphaned files.

Is there a best practice for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:39:37+00:00Added an answer on May 27, 2026 at 5:39 am

    If using a supporting version of SQL Server your best bet is to use the FILESTREAM data type as it provides a lot of performance benefits to make it worth while unless all the stored objects will be less than 1MB.

    From the article:

    If the following conditions are true, you should consider using
    FILESTREAM:

    Objects that are being stored are, on average, larger than 1 MB.

    Fast read access is important.

    You are developing applications that use a middle tier for application
    logic.

    For smaller objects, storing varbinary(max) BLOBs in the database
    often provides better streaming performance.

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Quick question: One of my forms in my winform app (c#) makes an async
Quick background: writing a module. One of my objects has methods that may or
Here's the quick background: I've got a client and a server program that are
I've got an app working semi-background stuff in the GUI thread. Another thread won't
The quick overview is this: for my web app I can write most of
Quick question: Will KnockoutJS provide a solid ground for developing a large web app?
Real quick background : We have a PDFMaker (HTMLDoc) that converts html into a
Quick background: I'm setting up a quick and dirty templating scheme where all of
Quick background of what I have going on. UIMapView loads and shows a single
Here's a quick overview of my problem. I've got a list with initial background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.