Bonjour à tous,
Je souhaite stocker une clé MD5 dans une base MSSQL.
J'ai une table "user" et un champ "password" de type binary(16).
Je souhaite stocker le mot de passe : "PasswordTest"
En MD5 cela donne : "e9d21bb01e2a39e1ea9b3d27b6ac2e15".
Si je fais :
INSERT INTO user (username,password) VALUES ('Toto','e9d21bb01e2a39e1ea9b3d27b6ac2e15')
Ca me répond :
Error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Implicit conversion from data type varchar to binary is not allowed. Use the CONVERT function to run this query.
J'ai essayer de bricoler avec CONVERT mais sans succès 
Merci pour vos lumières
Steve
Partager