I have several databases in my sql server in which some of them I have created from my application and the database name would be a GUID . On the other hand I have some engagements without name in GUID format.
however , I would like to know how do I filter the engagements which I have created from my application (which have GUID format).
Can anyone create a query to get the databases with name in GUID format . any help would be appreciated .
select * from sys.databases where ?
Starts with a
{and ends with a}and length is38.Or
If you really want it safe you can use this