![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello, i' ve some probs with server crash while UNLOAD SELECT statement with execute immediate command. I use UNC Path to UNLOAD/LOAD data. The LOAD / UNLOAD needs 3 backslashes in path to work. set @f=getEDIROOT(@md)+@fn; execute immediate 'UNLOAD SELECT replace( @RESULT, ''\x0A'', char(13)+char(10) ) TO '''+LPATH(@f)+''' QUOTES OFF ESCAPES OFF HEXADECIMAL OFF APPEND ON'; message @RESULT type info to client Calling UNLOAD without LPATH function will show Access Error (File or path does not exist). -- Function LPATH because LOAD / UNLOAD need '\' 3x . CALL DROPMETHODE('LPATH'); create function LPATH(@path_ char(255)) returns char(255) NOT DETERMINISTIC begin if left(@path, 1) = '\' then return '\\' + @path_; else return @path_; end if; end; Im using Adaptive Server Anywhere 9.0.2.3244 Is it a bug or feature ? Some tips to workaround ? What is correctusage of UNC with LOAD / UNLOAD ? Best regards, |
![]() |
| Thread Tools | |
| Display Modes | |
| |