How to Create a Random Password in MS SQL
November 23rd, 2006 by Ivan Uzunov
This function uses NEWID() function to create a random password with 8 symbols length:
MS SQL Server, T SQLDECLARE @generated_password varchar(8)
SET @generated_password = LEFT(CONVERT(varchar(255), NEWID()), 8 )SELECT @generated_password




simple and nice
thanks!
[…] If you are looking for the same functionality in MS SQL click here. MySQL, Random Password, T SQLShare and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages. […]