473,426 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

Insert image value into table with image data type field

Ex. I need to fill in values argument
Field1 is text
Field2 is image

Insert into tbl1 values("'+val1+"','+val2+'")

val2 is image like 0x424DFE9D00000000000036000000.................... .................

I really stuck on this with image values because I have to BCP out my data and and generate the insert statement with value data like above back to database

if I use sql server feature to generate insert statement with data, the image can easily insert into table. But the problem I can't pass the step above to get the complete insert statement like SQL server 2008 generate for me.

Normally, if the data is string, use single quote, if date we use # but for image data what can we use to package it?


Thanks for your help
May 1 '10 #1
1 4444
ck9663
2,878 Expert 2GB
How about just directly moving the data to that new table? Or create a small DB, copy the table, back it up and restore it on the other server.

Happy Coding!!!

~~ CK
May 3 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Yi | last post by:
Hi, I have a record set that is bound to a table in MS SQL Server. One filed in the table is bound to a "long" type member variable in the RecordSet. What will happen to the "long" variable when...
1
by: SD | last post by:
Hi, This is driving me nuts, I have a table that stores notes regarding an operation in an IMAGE data type field in MS SQL Server 2000. I can read and write no problem using Access using the...
4
by: Hon Yuen, Ng | last post by:
Hi This is a newbie question. I've a datatable that contains null value. Sometime i need to store this data into different variables. However, error will be thrown if the data i tried to stored...
4
by: JC Voon | last post by:
Hi: I need to convert a value reading from XML file to specific type, the XMLstring is look like this: <Field1 DataType="System.Int32", Value="123"> Dim t As Type =...
5
by: nesster13 | last post by:
Hi, Right now I have a form with a couple of fields. Let say: Name and Date. Now I want to create an append query to insert these data into a table with the field of Name and Date. I am not very...
0
by: mebimathew | last post by:
hi i am working in java swing.i have a beginner.so pls help me to display the databasetable`s fields and data to the frontend.
1
by: ritu raj shriwastaw | last post by:
I am using window xp and php trait(php3.1,mysql4.2).i have one field is of memo data type and I am unable to retrieve data from that memo data type field. what query I should write?
9
by: gggram2000 | last post by:
I need some help, cant figure out the error. SqlConnection dbConnection = new SqlConnection(xmldb); dbConnection.Open(); string sql = "SELECT InvStatus FROM SaleReceipts Where AccNum = '" +...
1
by: littlemaster | last post by:
I am having table in psql it has one field as integer array data type. From rails application I was not able to insert value in that filed. Example: Need to add multiple userid in the name...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.