Viewing 11 posts - 1 through 11 (of 11 total)
set gdetail = 'H:\2007' + RIGHT(convert(varchar(8000), gdetail), CHARINDEX('\', REVERSE(convert(varchar(8000), gdetail)))
I'll try this out first!
January 18, 2007 at 7:39 am
I'm getting Line 9: Incorrect syntax near '='.
on this line;
SET gdetail = 'H:\2007' + RIGHT(gdetail, CHARINDEX('\', REVERSE(gdetail)))
January 18, 2007 at 4:21 am
Ok. Thanks for that excellent info John.
I tried, it hasn't updated! is it the correct format?
declare @STR varchar(1000)
UPDATE heatgen
set @STR = 'c:\Program Files\HEAT\HEATSelfService\attachments\Winter019997.htm'
select reverse(@str)
select charindex('\', reverse(@str))
select right(@str,...
January 18, 2007 at 3:07 am
Ok. I want this to update any path with any filename, so what could I use to keep this the same?
e.g. c:\program files...\test.htm
to
h:\2007\test.htm
* does not work!!
Thanks.
January 17, 2007 at 9:25 am
That is why I came here. I have not managed to find anything useful. If I use the above syntax it just adds H:\2007 to the path H:\2007Program Files - I...
January 17, 2007 at 9:04 am
Yes the files will always be in the same folder.
January 17, 2007 at 8:49 am
Thanks I appreciate your responses to my questions. I have tested that and it does seem to work ok. I actually want to change the path of the file but not the...
January 17, 2007 at 8:00 am
I was thinking of using a DTS package - using FTP! This is not a one off, this will need to be updating the database as new attachments come in.
When I try...
January 17, 2007 at 6:25 am
Reply to RLoski.
The field includes details of all attachments. I will be moving the attachments from a webserver to a shared drive (by DTS package for automation). Then I need...
January 17, 2007 at 1:49 am
Viewing 11 posts - 1 through 11 (of 11 total)