开发者

SSIS 2008 Lookup Transformation SQL Query loses formatting

Since the SQL query box of an SSIS Lookup transformation is almost unusable, I usually write my code in SSMS (formatted with Redgate's SQL Prompt tool) and copy it to the Lookup.

When you close this window and later come back in, sometimes the formatting is preserved, but sometimes the carriage returns are replaced by the "square" character, as if the editor doesn't know how to display a carriage return, making the SQL unreadable. Copying it back into SSMS renders it perfectly readable again, and copying it back to the Lookup usually restores the formatting.

Any idea why the SQ开发者_运维百科L box sometimes can't display the carriage returns properly? Is there any way to fix it, or is it just an annoyance you have to live with in SSIS?


Have you tried clicking on the 'SqlCommand' edit button in the property grid (in the 'Custom Properties' section)? I find that the string value editor that pops up renders the CRLFs correctly even when the object's native (custom) form doesn't.

F4 is a useful shortcut to jump to the properties list for the selected object, if it's not already showing.


Just an annoyance you have to live with in SSIS. I've encountered the same problem over and over again in other screens and googling it resulted in nothing useful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜