Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to display part of string in varchar field

Status
Not open for further replies.

andreadd

MIS
Jan 15, 2008
67
0
0
SQL 2008 R2 / GoldMine Premium 9

i posted this question in the crystal reports forum as well - If this can be done in SQL - wahoo for me and I will gladly take it. but to do html interpretation of the email, I am running the SQL query thru crystal and formatting it as i goes.

with that said....

I need to write this query & report that will ultimately export general email correspondence. The way GoldMine stores these emails is as image so SQL sees it as binary. I have my view currently casting it as varchar:

CAST(CAST(rfc822 as varbinary(max), as varchar(max)) as [Da Email]

The first 4 lines of every email look like this:

Date: Tue, 23 Feb 2010 09:46:17 -0500 CHAR(10)
From: andreadd <andreadd@mayemail.com> CHAR(10)
Subject: Wahoo LP Meeting CHAR(10)
To: Joe Schmoe <schmoe@theiremail.com> CHAR(10)

i need to just display schmoe@theiremail.com

is this possible and how? I figured i am stuck in crystal since i have to cast the email into varchar first in order to be able to see the lines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top