Another interesting problem came up when working with TM1 as newbie

Well, two issues actually..
1st - I'm writing out element description (using vDesc=ATTRS('WIN',vWIN,'Description'); ) to SQL table
result is "123456 - Product Description"
How to remove part of string starting with 1st character and ending with "-" character. so it would be only "Product Description"
2nd - Some of product descriptions contains single quotation mark - '1234567 - SANTA'S BASKET' which leads SQL to fail with message "Incorrect syntax near 'S'
How do I wrap this correctly?
Thanks in advance
