Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique STRING
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00436401
Message ID:
00436427
Vues:
28
>Hi,
>
>Anyone knows if it's possible to get a completely unique string from SQL Server? Like SYS(2015) from VFP?
>
>Thanks,
>
>Ric



NEWID (T-SQL) creates a unique value of type uniqueidentifier.
You can convert it into string as follow

SELECT CAST(NEWID() AS varchar(36))
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform