Article
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    API(s)
    Sencha-Touch
    Single Page App
    Bootstrap
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog

Home >> Database >> Store image in SQL Server database
Store image in SQL Server database
Store image in SQL Server database


by Arun Singh on 7/15/2011 6:55:01 PM

Views: 3657       Comments: 0

Store Image in SQL Server Database

SQL server offers to store image in database. Actually when we want to explore information for appropriate image then it is the best option to store image in database with appropriate information. And it is also cost effective in using webhosting.

To store image in database first we have to create a table which contain an image. Let’s brief example to demonstrate how store image in database table with SQL query.

-----DEMONSTRATION OF SAVE IMAGE IN SQL SERVER DATABASE-----

 

CREATE TABLE SAVEIMAGE_TABLE

(

 IMAGEID INT,

 IMAGENAME IMAGE ----- IMAGE COLUMN NAME WHICH CONTAIN IMAGE

) 

Syntax: Save image in database table

---- SYNTAX DEMONSTRATION TO STORE IMAGE IN DATABASE TABLE

INSERT INTO <TABLE_NAME> VALUES ([COLUMN_NAME],[IMAGE_PATH WITH IMAGE NAME])

---- DEMONSTRATION TO STORE IMAGE IN DATABASE TABLE

INSERT INTO SAVEIMAGE_TABLE VALUES (101,'C:\Users\Sachindra\Desktop\aa.png')

Store Image in SQL Server Database

Report Abuse Form
Reason:    
 

Title :
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
     
 
Latest Article by Arun SinghRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Latest BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 3451
Advertisement
MindStick DataConver
Advertise with Us
  
Copyright © 2009 - 2014MindStick. All Rights Reserved.