SQL Server 中图像和 BLOB 文件的多重存储
我对这个插入查询有疑问。
INSERT INTO BLOBTest
(BLOBName, BLOBData)
SELECT 'First test file',
BulkColumn FROM OPENROWSET(
Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB
它效果很好,但我的问题是如何一次插入多张图像?我有一个目录,其中有 1000 多张图像需要插入。它们都按顺序命名(image0001、image0002 等...) 非常感谢任何帮助。
I have a question about this query on inserting.
INSERT INTO BLOBTest
(BLOBName, BLOBData)
SELECT 'First test file',
BulkColumn FROM OPENROWSET(
Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB
It works great, but my question is how do I insert more than one image at a time? I have a directory that has 1000+ images I need to insert. They are all named in order (image0001, image0002, etc...)
Any assistance is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下两个链接将为您提供执行此操作所需的信息。
http://social. msdn.microsoft.com/forums/en-us/transactsql/thread/AEADA520-C989-4025-8CF3-085F0BFBD373
http://www.sqlservercentral.com/Forums/Topic469199-5-1.aspx
The following two links will provide you with the information that you need to do this.
http://social.msdn.microsoft.com/forums/en-us/transactsql/thread/AEADA520-C989-4025-8CF3-085F0BFBD373
http://www.sqlservercentral.com/Forums/Topic469199-5-1.aspx