Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 8th, 2006, 11:10 AM
Authorized User
Join Date: Feb 2006
Location: Bluefields, , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MAKO
Default inserting image data type object

Hi, I'm new using SQL Server, I've bougth the book Beginning SQL Server Programming from Wrox. Now, my question for the experienced people is: How can I insert or pass an image object to my database? Thanks in advance.

MAKO - "El super simio"
MAKO - \"El super simio\"
Reply With Quote
  #2 (permalink)  
Old September 8th, 2006, 04:44 PM
Friend of Wrox
Join Date: Dec 2005
Location: , AZ, .
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post

For SQL 2005 it is recommended that you use a varbinary(max) datatype to store it. You could also use an image data type.

So you can create a table with one of these datatypes and then a storedprocedure with the same datatype. Then call the stored procedure from your client side code and pass in the bits you want to store.

David Lundell
Principal Consultant and Trainer
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in Image Data Type ayan.mukherjee VB Databases Basics 0 June 30th, 2008 03:54 AM
Data type for unbound object !!! vubinhsg BOOK: Access 2003 VBA Programmer's Reference 0 September 14th, 2006 04:10 PM
insert image in to oracle blob data type rajesh_bamane Pro VB Databases 3 July 15th, 2006 02:06 AM
How can INSERT Image into BLOB data type shah_shah Pro VB Databases 0 July 6th, 2006 03:51 AM
IMAGE Data type ranakdinesh BOOK: Professional C#, 2nd and 3rd Editions 6 March 18th, 2005 08:35 AM

All times are GMT -4. The time now is 09:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.