Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Message Meaning
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Error Message Meaning
Divers
Thread ID:
00791275
Message ID:
00791275
Vues:
45
Never mind...I forgot the word WHERE :)

In SQL Analyizer i'm getting the following:
Server: Msg 155, Level 15, State 1, Line 3
'mpinumber' is not a recognized OPTIMIZER LOCK HINTS option.
When trying the following statement:
select patientid,rtrim(lastName)+', '+rtrim(FirstName) as PatientName,mpinumber
from patients
datalength(mpinumber) < 9 and   datalength(mpinumber) > 0) and mpinumber is not null
I'm not sure what this means or how I should address it.
If I put datalength(mpinumber) in the fields, and remove the where clause it works. But I need the where.

Thanks
Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform