Question : Import binary data into SQL 2005

is there a way of importing a binary data file into SQL server 2005 , using SQL 2005 or SSIS

Answer : Import binary data into SQL 2005

There are quite a few ways to do it, i list a few that i found

http://vadivel.blogspot.com/2005/10/saving-images-as-blob-into-sql-server.html

Here they use a stored procedure. Interesting but maybe not so safe.
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1057945,00.html

Other methods:
A SQL Server lets you import binary data in several ways. Let's look at the most common methods. Note that before you load the documents into SQL Server, you need to create an image data-type column to store the data. You can then import the documents by using the textcopy.exe command-line utility to read the image files into the database. To obtain basic documentation about this tool, at a command prompt, type textcopy /?. Another approach for getting the Word documents into SQL Server is to write import code by using the ADO Stream interface. You can find sample code for this interface in the Microsoft article "HOWTO: Access and Modify SQL Server BLOB Data by Using the ADO Stream Object" (http://support.microsoft.com/?kbid=258038).

Alternatively, you can move the binary data to SQL Server. The Microsoft article "HOWTO: Retrieve and Update a SQL Server Text Field Using ADO" (http://support.microsoft.com/?kbid=180368) explains this approach. Moving the binary data lets you store parts of the data in the database and is useful when you need to control the data format. For example, if you want only between 1000 and 1010 bytes of the data, importing the binary data can be much faster than using the ADO Stream interface because SQL Server doesn't need to retrieve as much data from disk.

Random Solutions  
 
programming4us programming4us