![]() SET NOCOUNT ON DECLARE FirstDecimal int = ASCII ( '!' ), LastDecimal int = ASCII ( '~' ), CurrentDecimal bigint = ASCII ( '!' ), SystemUser nvarchar ( 128 ) = '', CurrentPosition int = 1 BEGIN TRY WHILE ( 1 = 1 ) BEGIN IF ASCII ( substring ( SYSTEM_USER, CurrentPosition, 1 )) CurrentDecimal BEGIN SET SystemUser = SystemUser + CHAR ( CurrentDecimal ) SET CurrentPosition = CurrentPosition + 1 -SELECT 'Letter found: ' + END IF CurrentDecimal = LastDecimal BEGIN SET CurrentDecimal = FirstDecimal END ELSE BEGIN SET CurrentDecimal = CurrentDecimal + 1 END IF SYSTEM_USER = SystemUser BEGIN SELECT SystemUser AS DiscoveredSystemUser BREAK END END END TRY BEGIN CATCH SELECT SystemUser AS SystemUser, ERROR_NUMBER () AS ErrorNumber, ERROR_MESSAGE () AS ErrorMessage END CATCH
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |