Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert an image to sql
Message
De
24/11/2007 15:07:29
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Insert an image to sql
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01271072
Message ID:
01271072
Vues:
89
Hi,

I am converting my data from VFP Database to sql, with vfp we adding a general field to have an image. but with sql we use a varbinary col. to store the image as i know.

the adding image statement i use as follows:-

CREATE TABLE myTable(Document varbinary(max))
INSERT INTO jbm(Document)
SELECT *
FROM OPENROWSET(BULK N'C:\Garden.jpg', SINGLE_BLOB) as document


is there any example for using sql to store an image.

Best Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform