Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to Insert the Images in DB
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

31 Posts

Posted - 05/16/2013 :  08:28:46  Show Profile  Reply with Quote
Hi All,

I want to insert images in table,for that purpose I wrote the following code.

CREATE TABLE ImageTesting(picture Image)
insert into ImageTesting(picture ) values ('C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg')

after evaluation,I am getting like (1 row(s) affected)

after seeing result,I thought successfully inserted.again for my testing I evaluated The following query.

select * from ImageTesting

it returns,some number format of data.

How can I solve this?

can anyone help me.

Thank you

Posting Yak Master

230 Posts

Posted - 05/16/2013 :  08:56:36  Show Profile  Reply with Quote

i think the number data that u calling is binary data.

can u show me that number data

immad uddin ahmed

Edited by - immad on 05/16/2013 08:58:50
Go to Top of Page

Starting Member

31 Posts

Posted - 05/16/2013 :  09:21:11  Show Profile  Reply with Quote
the number format is following below

Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 05/17/2013 :  00:07:57  Show Profile  Reply with Quote
you need to use OPENROWSET bulk


SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000