I'm using a SQLExecutor that works great on comparing two text fields from 2 different ArcGIS layers on SDE. Basically it checks to see if a value is present in another layer. When the Text field has nothing but numbers it works great. But if they contain any text like "1909087a01" then it bombs out. It doesn't like it that it is not an integer even though it is a text field. Can I add something so it sees these as text comparisons. I'm sure the "=" is what's causing the issue, it doesn't care for "LIKE" either.
Here's what I'm using:
select OBJECTID from TEST.LEASE_UPDATE_INSERT_WRITER where GIS_ID = '@Value(GIS_ID)'