Export Image column from SQL Server 2000 using BCP
问题 I've been tasked with extracting some data from an SQL Server 2000 database into a flat format on disk. I've little SQL Server experience. There is a table which contains files stored in an "IMAGE" type column, together with an nvarchar column storing the filename. It looks like there are numerous types of files stored in the table: Word docs, XLS, TIF, txt, zip files, etc. I'm trying to extract just one row using BCP, doing something like this: bcp "select file from attachments where id =