Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to write a stored procedure to get Image

Posted on 2003-12-01
5
Medium Priority
?
251 Views
Last Modified: 2009-07-29
I want to pass a PK value to a store procedure, and the get an Image from SQL 2k which is Image field. Finally, I want to test this by using VB or asp application.

I searched the net, but only found inserting, but not retrieving.

Any ideas how to write the sp?
0
Comment
Question by:mscprojhot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 9856323
I would say don't store the images in a database.  Performance suffers, the database size grows very QUICKLY, and backup operations tend to be slower and harder to manage.

But, if you must, check this out (one of many examples):

http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_10307313.hml
0
 

Author Comment

by:mscprojhot
ID: 9856368
Thanks for your info! But,

1. Since the old app is using this approach, I need to follow.
2. What I want is Stored Procedure Method.

Thanks!
0
 
LVL 34

Accepted Solution

by:
arbert earned 300 total points
ID: 9858372
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question