Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

NS Collection SQL Query

Updated: 27 May 2010 | 2 comments
xxzab's picture
0 0 Votes
Login to vote

I am trying to make a SQL query based on server name, to see if it is a test server, Production server, etc.

We have this as part of the name

example:
LLL-XXXXXE123

Where LLL is the location code
XXXXX is some discription
E is the enviroment
123 is if there are more then one of them (could be no number or up to 3)

My question is there a way to make a SQL query to filter by E?

I am trying to deploy a small package based on enviroment.

Thanks in advance for any help.

Comments

negal_2001's picture
06
Aug
2008
0 Votes 0
Login to vote
xxzab's picture
07
Aug
2008
0 Votes 0
Login to vote

Thanks to negal_2001, I got

Thanks to negal_2001, I got it to work with:

SELECT [vResourceEx].[Guid]
FROM [vResourceEx] INNER JOIN [Inv_AeX_AC_Identification]
ON [vResourceEx].[Guid] = [Inv_AeX_AC_Identification].[_ResourceGuid]
WHERE [vResourceEx].[IsManaged] = 1
AND [vResourceEx].[Name] LIKE '%-%E[0-9]%'

____________________________________
Eric

Blog: http://theregime.wordpress.com

Altiris Sites:
http://forums.altiris.com/
http://www.altirigos.com/index.php?page=home