简体   繁体   中英

OPENROWSET and SINGLE BLOB in SQL SERVER 2005

I am using sqlserver 2005 here i wrote simple bulk image upload query using openrowset with single blob function. But my query is not executing. showing T-Sql is not support Sql server 2005 and below version.

Here i using query like,

create table Student_Images(Image_Id int identity,Images image Primary key(Image_Id))

INSERT INTO Student_Images(Images) 
SELECT * FROM
OPENROWSET(BULK N'E:\COE\Images\UHSA1406.jpg',SINGLE_BLOB) as Images

Can u suggest the reference link. Thanks in Advance :)

Judging by the actual error message you posted in the comment, it seems that you are trying to run your query from SQL Server Management Studio with a higher version than your server is running. This could be because thge machine you're attempting to run the query from has a later installation.

To resolve the error, install the 2005 SQL Server Management Studio, or run the query directly on the server using the SQL Server 2005 Management Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM