Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 17th, 2004, 08:07 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Norway.
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

Reply With Quote
  #2 (permalink)  
Old September 17th, 2004, 09:07 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:16 AM.


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