Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i insert a SQL Server image datatype? 1

Status
Not open for further replies.

jollyplay

Programmer
Dec 16, 2003
90
Hi,
I need to insert a image datatype data from one table to another table in the SQL Server.
Please provide me a suggestion.

Thanks in advance.
 
Wow, stefan, your Java knowledge always impresses me.

Cheers,
Dian
 
@dian: Of course you're free to get a blob from the db, keep it in an byte array, and send it to the other table.

Code:
statement.executeQuery ("INSERT INTO t1 (image) SELECT image FROM t2 WHERE id=5432");
better? ;)


seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top