To continue reading for free, register below or login
To read more you must become a member of SearchSQLServer.com
');
// -->

Yes, you can store image files in SQL Server. In fact, SQL Server has a datatype called image for exactly this purpose. It will store any binary data up to 2 GB in size.
There are many ways to get image files into your image column. Among the easiest is the Textcopy utility located in the Program FilesMicrosoft SQL ServerMSSQLBinn directory. Use the command "textcopy /?" to get the command line syntax for this utility.
Another way to get image files in and out of SQL Server is to write your own program using ADO or ADO.Net, or create an ActiveX dll that can be called by SQL Server's sp_OA* extended stored procedures.
Do you have comments on this Ask the Expert Q&A? Let us know.
|