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.
| Author |
Topic |
|
shapper
Constraint Violating Yak Guru
450 Posts |
Posted - 2009-04-12 : 22:25:54
|
| Hello,I have a table name Test with columns ID and Value.My ID will be a NVarChar with 8 characters length from:"abcdefghijklmnopqrstuvxyz0123456789"How can I create an SQL function that creates a Random ID?And if possible providing the length of the ID and the allowed characters as inputs?Of course the ID generated should not exist in table Test.Thanks,Miguel |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|