在下面的查询中,我想解密我尝试的密码,但它显示为null。我参考这个例子" http://www.dotnetheaven.com/article/encrypt-and-decrypt-text-in-sql-server-2008"我的问题。帮助我解决问题。
SELECT UserID, UserFirstName, UserLastName, UserLoginID,DECRYPTBYPASSPHRASE ('8', UserPassword) AS PASS, EmailID, ContactNo, PositionInOrg,CustomerID FROM Users