I have the following expression in ssis
(ISNULL [rowguid]? (DT_WSTR, 255)"00000000-0000-0000-0000-000000000000":[rowguid])
What I want is to assign that guid if there is null present. I just can't seem to get it working
I finally figured this one out. You need to include "{" and "}" on the front and end of your default GUID. So for example, (DT_GUID) "{00000000-0000-0000-0000-000000000000}".
A little frustrating, I tried "[]" but never even thought to try "{}".
FInally通过跟踪和错误得到了答案
(DT_STR,50,1252) (ISNULL( [rowguid]) ? "00000000-0000-0000-0000-000000000000" : (DT_STR,50,1252) [rowguid]) != (DT_STR,50,1252) (ISNULL( [rowguid]) ? "00000000-0000-0000-0000-000000000000" : (DT_STR,50,1252) [rowguid])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.