Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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
 
Old May 30th, 2005, 12:40 PM
Registered User
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default How to manually save image to database?

Hi, I'm a newcomer in Sql Server...

Image is one of many data types in Sql Server, but not like the others, we cannot manually bind the cell contained this type by using table designer ( am I right? ). Anyone knows the way to fill the table manually?

One more, I don't know how to view it ( manually ).

Term manually I used is we don't use any scripting or programming language ( like PHP or ASP.NET ), we just clicking, or use certain program like paint... You know what I've meant!

Thanks...

Precision is not truth!
 
Old May 31st, 2005, 04:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

to just view what u have in ur Image field in DB (for image content files) u can use Crystal Report. Retrive ur Data from DB & drop it to ur report to be shown.
but about showing it in ur program!? its a long story.. do u need it?!

Always:),
Hovik Melkomian.
 
Old June 23rd, 2005, 01:51 PM
Registered User
 
Join Date: Jun 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Havic

I will be pleased if you can show me how you can insert Images in to Sql Server with VB. Net
This is how I did it but could not work:

mycommand.commandtext = "INSERT INTO student_master" & _
                        " ( st_picture, st_signature)" & _
                        " values ( @picture1, @picture2)" & _
                        " where student_id = @stu_id"
mycommand.parameters.add( "@picture1", picturebox1.image)
mycommand.parameters.add( "@picture2", picturebox2.image)
mycommand.parameters.add( "@stud_id", txtstudent_id.text)

I also tried EXEC SP_tableoption student_master, 'txt In row', 'ON'
on the table and executed the above code again; but did not work

Adamu Sufi, Nigeria






Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Add/Update/Delete Database records MANUALLY jn148 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 14th, 2008 10:18 AM
How to save an image in a folder using c#.net2005 aneesh_sunu@yahoo.co.in C# 2005 1 October 31st, 2006 10:42 AM
save an image ming C# 2005 0 July 11th, 2006 07:14 PM
i need help to save slides as image Fatma General .NET 1 April 7th, 2006 12:21 AM





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