I don't have many experience with Sql server and I want to know how I can insert a JPG picture in a image field only using SQL language in other words only using the Query Analyzer.
You can use batch programs to load images or use the WRITETEXT and UPDATETEXT Transact-SQL (T-SQL) statements to insert them into SQL Server. SQL Server Books Online (BOL) includes code samples with the references for those statements.
If transactional consistency doesn't matter, or can be achieved programmatically, then it is easier to store the image outside the database as an ordinary file. Within the database just hold a UNC pointer to the file. This makes it easier to display/edit the data as the name can simply be passed to whatever tool is doing the manipulation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.