SQL Server BCP export corrupted file?
问题 i have a small problem with BCP functionality in SQL Server 2012. The things is: im loading .jpg image (167KB in size) using below command: INSERT [tabela_testowa] ( Data ) SELECT * FROM OPENROWSET (BULK N\'C:\\foty\\ch6_MagicShop.jpg\', SINGLE_BLOB) a; and then im trying to export it back to disk using: BCP \"SELECT data FROM tabela_testowa WHERE ID = 1\" queryout \"C:\\test\\file.jpg\" -T -n -d test File gets saved on disk no problem, size is also 167 KB but.. it cant be opened like the