Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Like '%

Author  Topic 

AdamWest
Constraint Violating Yak Guru

360 Posts

Posted - 2013-09-16 : 18:21:27
OEIND94.IDPRLC LIKE 'F%'

This says that the IDPRLC Col. does contain “F” ?
I am seeing more than this in the crystal report. this statement tho
is in the SHOW SQL of the Crystal Report.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-09-16 : 18:49:02
Could you show us some sample data? I don't have any knowledge of Crystal Reports, but have you run a trace to confirm the SQL statement that is executing?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2013-09-16 : 18:51:22
quote:
Originally posted by AdamWest
This says that the IDPRLC Col. does contain “F” ?

This says that the column starts with an "F". If you are getting results that don't start with an "F" I suspect that your WHERE clause contains an OR condition. If you'd show us the code in its entirety we could, perhaps, arrive at a solution.

=================================================
The cure for anything is salt water -- sweat, tears, or the sea. -Isak Dinesen
Go to Top of Page
   

- Advertisement -