DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 18 Jun 2007 10:24:00 -0700,    posted on: microsoft.public.dotnet.framework.wmi        back       

Thread Index
  1    Insider
          2    Glen Scales [MVP]


Problems with LIKE clauses on WMI queries to MicrosoftExchangev2   
I'm having trouble specifying a WHERE or LIKE clause on my WMI query to the 
MicrosoftExchangev2 namespace.

This works OK
Select * From Exchange_Mailbox Where MailboxDisplayName='MyAlias'

This returns no data:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My*'
neither does this:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My%'
Other options fail too (LIKE '*Alia*', LIKE '%Alia%' etc etc etc)

I can use the LIKE clause on the root\CIMv2 namespace wihtout any problems. 

Does the MicrosoftExchangev2 support the LIKE clause? Can anybody else get 
it working, specifically with the Exchange_Mailbox class.

Regards,
Steven
Date:Mon, 18 Jun 2007 10:24:00 -0700   Author:  

Re: Problems with LIKE clauses on WMI queries to MicrosoftExchangev2   
I've never got this to work personally (always Error 80041024)  there really 
isn't that much information in that class to worry about eg you would 
probably find the performance cost of doing a like query just as high as if 
you pulled all the data back and filtered it at the client side.

Cheers
Glen

"Insider"  wrote in message 
news:A61FFDD9-6A76-4B12-AC4A-7E9FCA8B3A87@microsoft.com...

> I'm having trouble specifying a WHERE or LIKE clause on my WMI query to 
> the
> MicrosoftExchangev2 namespace.
>
> This works OK
> Select * From Exchange_Mailbox Where MailboxDisplayName='MyAlias'
>
> This returns no data:
> Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My*'
> neither does this:
> Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My%'
> Other options fail too (LIKE '*Alia*', LIKE '%Alia%' etc etc etc)
>
> I can use the LIKE clause on the root\CIMv2 namespace wihtout any 
> problems.
>
> Does the MicrosoftExchangev2 support the LIKE clause? Can anybody else get
> it working, specifically with the Exchange_Mailbox class.
>
> Regards,
> Steven 
Date:Tue, 19 Jun 2007 09:46:37 +1000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us