Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Ivar #1
Re: Create random string
Hi,
substring(newid(),0,8)
"Jason Davis" <jasondavis19@hotmail.com> wrote in message
news:uyGV9pFSDHA.1552@TK2MSFTNGP10.phx.gbl...> How can I create a random (not necessarily unique) - 8 character string?
> Thanks!
>
>
Ivar Guest
-
Create string from vars
DisplayMonthYear.text = months & ' ' & calendar.getFullYear(); What is the proper way to joing vars into a string output...the code above... -
Create a random number (ASP VBScript)
I need to create a random number to use with the .swf so IE doesn't cache my files: <param name="movie" value=".file.swf?nochache=<% random number... -
create a random password?
Is there a tutorial (or an extension) that will explain how to create a random password (and/or username) insert it into an Access database then... -
Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To... -
substitute three random words in a string
Hudson wrote: (someone else wrote:) Quick and efficient with no need for an "e" switch. -
Jason Davis #2
Create random string
How can I create a random (not necessarily unique) - 8 character string?
Thanks!
Jason Davis Guest
-
David Portas #3
Re: Create random string
> substring(newid(),0,8)
Doesn't work: "The data type uniqueidentifier is invalid for the substring
function."
This is OK though:
SELECT LEFT(CAST(NEWID() AS VARCHAR(36)),8)
--
David Portas
------------
Please reply only to the newsgroup
--
David Portas Guest
-
Brad M. #4
Re: Create random string
Here is code for a SP that generates a random string:
[url]http://vyaskn.tripod.com/code/password.txt[/url]
Regards,
Brad
"Jason Davis" <jasondavis19@hotmail.com> wrote in message
news:uyGV9pFSDHA.1552@TK2MSFTNGP10.phx.gbl...> How can I create a random (not necessarily unique) - 8 character string?
> Thanks!
>
>
Brad M. Guest



Reply With Quote

