VBScript Question
Here's my line of VBScript code:objCommand.CommandText = _ "SELECT givenName, SN, department, telephoneNumber FROM " _ & "'LDAP://s0-dc01/OU=Chester,OU=Navmar Users & Computers,DC=navmar,DC=com' WHERE " _ & "objectCategory='user'AND SN = 'B%'"It doesn't like the last part of the filter, returning an error code of "BOF or EOF is true".There are records in the source table that begin with "B".Any ideas?Thanks,Dave
January 7th, 2009 6:20pm

Hi Dave,I think you need to use * instead of % for wildcard search.Howerver this is Exchange Server - General discussion forum, suggest you to use scripting forum to get better responses on scripting query.Scripting Forum:Microsoft TechNet>Forums Home>ScriptingAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
January 7th, 2009 7:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics