bulk insert image from relative path
Posted
by Markus
on Stack Overflow
See other posts from Stack Overflow
or by Markus
Published on 2010-03-30T06:10:37Z
Indexed on
2010/03/30
6:13 UTC
Read the original article
Hit count: 661
sql-server-2005
|bulkinsert
Hi, I wonder if some can help me out with this little problem. I have the following insert statement:
insert into symbol (sy_id, sy_fg_color, sy_bg_color, sy_icon)
select 302, 0, 16245177, sy_icon = (select * from openrowset(bulk 'K:\mypath\icons\myicon.png', single_blob) as image)
Is it possible to make the path relative in any way? I'm using TFS to deploy the database, so if it's not possible to make it relative with T-SQL, maybe it can be done with a little help from TFS/Visual Studio deploy?
© Stack Overflow or respective owner