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

  • SEARCH
  • Home
  • 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 7954377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:24:42+00:00 2026-06-04T03:24:42+00:00

I have a standard WinForms application that connects to a SQL Server. The application

  • 0

I have a standard WinForms application that connects to a SQL Server. The application allows users to upload documents which are currently stored in the database, in a table using an image column.

I need to change this approach so the documents are stored as files and a link to the file is stored in the database table.

Using the current approach – when the user uploads a document they are shielded from how this is stored, as they have a connection to the database they do not need to know anything about where the files are stored, no special directory permissions etc are required. If I set up a network share for the documents I want to avoid any IT issues such as the users having to have access to this directory to upload to or access existing documents.

What are the options available to do this? I thought of having a temporary database where the documents are uploaded to in the same way as the current approach and then a process running on the server to save these to the file store. This database could then be deleted and recreated to reclaim any space. Are there any better approaches?

ADDITIONAL INFO: There is no web server element to my application so I do not think a WCF service is possible

  • 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-06-04T03:24:44+00:00Added an answer on June 4, 2026 at 3:24 am

    Is there a reason why you want to get the files out of the database in the first place?

    How about still saving them in SQL Server, but using a FILESTREAM column instead of IMAGE?

    Quote from the link:

    FILESTREAM enables SQL Server-based applications to store unstructured
    data, such as documents and images, on the file system. Applications
    can leverage the rich streaming APIs and performance of the file
    system and at the same time maintain transactional consistency between
    the unstructured data and corresponding structured data.

    FILESTREAM integrates the SQL Server Database Engine with an NTFS file
    system by storing varbinary(max) binary large object (BLOB) data as
    files on the file system. Transact-SQL statements can insert, update,
    query, search, and back up FILESTREAM data. Win32 file system
    interfaces provide streaming access to the data.

    FILESTREAM uses the NT system cache for caching file data. This helps
    reduce any effect that FILESTREAM data might have on Database Engine
    performance. The SQL Server buffer pool is not used; therefore, this
    memory is available for query processing.

    So you would get the best out of both worlds:
    The files would be stored as files on the hard disk (probabl faster compared to storing them in the database), but you don’t have to care about file shares, permissions etc.

    Note that you need at least SQL Server 2008 to use FILESTREAM.

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

Sidebar

Related Questions

I have a standard winforms application that runs on most machines. On a 2003
I have a WinForms application, which I need to support in multiple languages. I
I have a winforms application that has one tabcontrol with 2 pages. On both
In a standard WinForms application, is it possible to have a scenario like the
I have a WinForms app that I deploy using ClickOnce. In the application project
I have a listbox control (in a WinForms application) that lists a bunch of
I have a Winforms application that is working correctly on various versions of windows
I have standard source code package under Linux which requires to run ./configure make
I have a standard active record model with an attributes that is required: class
I have a standard store schema with an InvoiceLine table that contains Products. I'd

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.