C # implements SQL Server to store photos and read photos

Source: Internet
Author: User

Applet: C # implements SQL Server to store photos and read photos

Build database: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/D2/wKiom1RF2lDAQIRPAAAOn3FO4as090.jpg "title=" Qq20141021115944.png "alt=" Wkiom1rf2ldaqirpaaaon3fo4as090.jpg "/>;

Build a table: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/D2/wKiom1RF2q_i3NW_AAANUVaL2Wc003.jpg "title=" 11.png "alt=" wkiom1rf2q_i3nw_aaanuval2wc003.jpg "/>,650) this.width=650; src=" Http://s3.51cto.com/wyfs02/M00/ 4c/d3/wkiom1rf2t2jg1zbaacqhhvuliw521.jpg "title=" 22.png "alt=" Wkiom1rf2t2jg1zbaacqhhvuliw521.jpg "/>

New stored procedure: CREATE PROCEDURE Sp_insertphoto2

@name as VARCHAR (50),

@image as Image

As

INSERT into Photps (Name,photo)

VALUES (@name, @image)

RETURN @ @identity

GO

The program is in the attachment.


C # implements SQL Server to store photos and read photos

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.