We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Hi Brian; thank you for taking the time. I've never actually used a function! Had to do some reading on that -- I'm mostly just a query and report kind of person. So, after doing some reading, I ran the script to create the function, then I tried customizing what you did in the top window to how I thought it fit with my stuff and I just get an error message. I think I'm missing the link in my brain as to how the function actually interacts with the query to convert the comma separated field. Can you tell me where I've gone wrong here:
Brian Crowe
Gonna do a little trouble-shooting. Run this and tell me if it works.
SELECT * FROM dbo.SplitText('a,b,c,d,e,f', ',')
akscott
ASKER
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Brian Crowe
That shows that the function is working correctly. verify the datatype of sysdba.accountroomsurvey.ReasonBuying. Also you will want to select Split.Value instead of ReasonBuying.
akscott
ASKER
Aha, now we're getting somewhere. I added an LTrim to remove the spaces that were showing up in the split results and it looks like I'm off to the races. THANK YOU, Brian.
Vitor Montalvão
akscott, do you still need help with this question?