Transfert login/password from 70-65 to 80
From: VUILLERMET (personne@laposte.net)
Date: 05/27/02
- Next message: Sue Hoegemeier: "Re: SQL Server Profiler"
- Previous message: Erland Sommarskog: "Re: Converting a users SID"
- Next in thread: [MS] Eric Yang: "RE: Transfert login/password from 70-65 to 80"
- Reply: [MS] Eric Yang: "RE: Transfert login/password from 70-65 to 80"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "VUILLERMET" <personne@laposte.net> Date: Mon, 27 May 2002 23:58:26 +0200
(Version française plus bas)
Logins passwords are stored in 32 characters in SQLS7.0 but in 256 in
SQLS2000.
(unlike the sp_addlogin article example shows in BOL SQLS2000).
So, how to do to password transferts from SQLS7.0-6.5 to 2000 ?
In SQLS70-65 :
SELECT CONVERT(VARBINARY(32), password)
FROM syslogin
--> 0x...
In SQLS2000 :
sp_addlogin 'MyLogin', 0x...
...seems not to be the good way to do.
Thanks.
Jacques.
______________________________________
Les mots de passe de login sont codés sur 32 caractères en SQL Server 7.
Mais sur 256 caractères en version 2000.
Sur BOL de 2000, l'exemple à la fin de l'article sur sp_addlogin est donc
faux (Margaret/Rose).
Il faut donc utiliser en SQLS2000 :
SELECT CONVERT(VARBINARY(256), password)
FROM syslogin
au lieu de :
SELECT CONVERT(VARBINARY(32), password)
FROM syslogin
Cela fonctionne super de SQLS2000 à SQLS2000.
Comment transférer un mot de passe de login de SQL Server 7/6.5 vers 2000 ?
Jacques VUILLERMET
- Next message: Sue Hoegemeier: "Re: SQL Server Profiler"
- Previous message: Erland Sommarskog: "Re: Converting a users SID"
- Next in thread: [MS] Eric Yang: "RE: Transfert login/password from 70-65 to 80"
- Reply: [MS] Eric Yang: "RE: Transfert login/password from 70-65 to 80"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]