Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 random char value

Author  Topic 

mdhingra01
Posting Yak Master

179 Posts

Posted - 2006-04-26 : 14:54:51
I know there is a RAND () function in SQL, but that only seems to work on int, smallint, bigint or tinyint. Is there something or someway to get random string of Alpha-numeric and special characters
eg.
ASD#T5RG

thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-04-26 : 15:26:39
SELECT NEWID()

Tara Kizer
aka tduggan
Go to Top of Page

mdhingra01
Posting Yak Master

179 Posts

Posted - 2006-04-26 : 15:40:22
Thanks
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-27 : 02:17:29
Also read this topic
http://sqlteam.com/forums/topic.asp?TOPIC_ID=59194

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -