Link to home
Start Free TrialLog in
Avatar of BrianG
BrianG

asked on

Casting Memo Field to VARCHAR in mSQL

I am having trouble finding a command to cast a memo field to a VARCHAR in SQL.  I want this as part of the WHERE clause.

Thanks,
Brian
Avatar of gmoriak
gmoriak

doesn't

select convert(varchar(255), memofield)

work?
Avatar of BrianG

ASKER

I was sorta vague on what I was doing I guess.

I am trying to run a Seagate Crystal report and I need to get records where a memo field is equal to a certain thing, however Crystal reports does not like to have a memo field in the query.  Therefore I was trying to cast the field to a varchar.
ASKER CERTIFIED SOLUTION
Avatar of gmoriak
gmoriak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianG

ASKER

This is exactly what I was thinking.  Your first comment got me heading that way, and this second one makes me feel all warm and fuzzy.

Thanks for your help!

Brian