当在sql server 2005中插入图像时,我收到此错误(无法批量加载。文件“C:\photo.PNG”不存在。) [英] when insert image in sql server 2005 ,i got this error(Cannot bulk load. The file "C:\photo.PNG" does not exist.)

查看:86
本文介绍了当在sql server 2005中插入图像时,我收到此错误(无法批量加载。文件“C:\photo.PNG”不存在。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的查询



CREATE TABLE myTable(Photo varbinary(max))





INSERT INTO myTable(照片)

SELECT * FROM

OPENROWSET(BULK'C:\photo.PNG',SINGLE_BLOB)as Image





错误:无法批量加载。文件C:\photo.PNG不存在。







请帮帮我........... 。

This is my query

CREATE TABLE myTable(Photo varbinary(max))


INSERT INTO myTable(photo)
SELECT * FROM
OPENROWSET(BULK 'C:\photo.PNG', SINGLE_BLOB)as Image


ERROR:Cannot bulk load. The file "C:\photo.PNG" does not exist.



please help me ............

推荐答案

SQL Server的C:\驱动器上是否有该文件? SQL BULK INSERT等始终只适用于SQL Server计算机上的本地驱动器。您的SQL Server无法访问您自己的本地驱动器。



您需要将文件放到SQL Server的C:\驱动器上,然后重试。
Is that file on the SQL Server's C:\ drive?? SQL BULK INSERT etc. always works only with local drive on the SQL Server machine. Your SQL Server cannot reach onto your own local drive.

You need to put the file onto the SQL Server's C:\ drive and try again.


确保您是否有权直接从C盘读取。尝试将文件添加到文件夹中。像C:\Folder\photo.PNG这样的东西。
Make sure if you have permission to read directly from C drive. Try adding the file into a folder. Something like "C:\Folder\photo.PNG".


这篇关于当在sql server 2005中插入图像时,我收到此错误(无法批量加载。文件“C:\photo.PNG”不存在。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆