Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP/SQL Server 2005 Varbinary Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

machinehack
Starting Member

9 Posts

Posted - 12 January 2008 :  19:53:52  Show Profile  Visit machinehack's Homepage
I have a file in a varbinary type column in my SQL Server 2005 database. My question is how can I use ASP to link to that file, so users on the website can download it?

Hopefully, this makes sense.

~MachineHack
http://www.machinehack.com

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 14 January 2008 :  16:23:21  Show Profile  Send pdrg a Yahoo! Message
There's a reason why blobs/binaries are not widely used in databases, and you've just hit it! The simple answer is you need to spool it to a disk file, then dynamically link to it

hth
Go to Top of Page

machinehack
Starting Member

9 Posts

Posted - 14 January 2008 :  18:08:17  Show Profile  Visit machinehack's Homepage
Thanks. Instead of using the binary to store the file in the database. I am storing the file in a folder on the server, then storing the link to it in the database. Much easier.

~MachineHack
http://www.machinehack.com
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 19 January 2008 :  11:35:24  Show Profile  Send pdrg a Yahoo! Message
Yep, much better idea, and it'll help with your db maintenance too. The only time I can see why it might be good to keep blobs in a db is for a configuration management system, and even then at a push! Glad you're all sorted now :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07