Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2004, 08:07 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing E-Invoices (pdf-files) in SQL-Server

I know there has been a lot of discussions here on whats the best practise: Storing images in the database, or just storing the path to the image on the network.

However, I wonder if any of you know what is the most common use regarding E-Invoices and archives. Is it safest then to store the image directly in the database? Or is it so mutch clutter with this that it is not recommended for any use?

Any thoughts appreciated.

Gert

 
Old September 17th, 2004, 09:07 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One method is not safer than the other just based on OS or Database server security. It all depends on your security settings for both SQL Server and OS. I would keep my images on a network drive that has been dedicated to just that, images. Keep the partial path of the file. Do not store the IP address/servername in the file path because it will eventually have to be moved and then you will have to change all records in the database to reflect this change.

As far as "safe", this depends on what you are referring to as safe. I am having to put files inside of a database right now simply because the customers network settings vary so much that keeping this rather small files in the OS would keep some users from viewing the files. With this I know that I am affecting every other user of the SQL Server, but there is no other work around for this.

Remember that PDF files are read onlyu anyway, so users will not be able to edit them that easily. You can create a share on a server that keeps your files and allow users specific access to the share.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing & retrieving swf file from sql server tarduk2004 ASP.NET 2.0 Basics 2 October 30th, 2007 02:31 AM
storing and retrieving pdf files in an sql databas jake ASP.NET 1.0 and 1.1 Basics 3 December 14th, 2006 03:09 PM
storing serialized object in sql server ACE2084 General .NET 0 October 13th, 2005 01:35 PM
syntax for storing chr(0) in sql server through vb neeraj.khattar Beginning VB 6 1 January 10th, 2005 02:20 PM
Storing Graphic Image on Sql Server kasie ADO.NET 3 March 27th, 2004 04:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.