SerMajestic
Programmer
Hello there,
does anybody have a hint for my problem:
Scenario:
W2K Server / Exchange 2K Server
Task:
Listing all contacts in a public address book (public folder)
Tools used:
VB6, CDOEXM, ADSI
I tried this code, which is originally from MSDN, in a sub.
This should finally open a recordset, which should give me the opportunity to 'traversal search' the recordset and list the contents of the container-object:
....
Dim Conn As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim Info As New ADSystemInfo
Dim sDomainName As String
Dim sSQL As String
sDomainName = Info.DomainDNSName
sFolderURL = "file://./BackOfficeStorage/" & sDomainName & "/Public Folders/<Name of Public Folder>"
Conn.Provider = "EXOLEDB.DataSource"
Conn.ConnectionString = sFolderURL
Conn.Open
sSQL = "Select * "
sSQL = sSQL & " from scope ('deep traversal of " & Chr(34)
sSQL = sSQL & sFolderURL & Chr(34) & "')"
RS.Open sSQL, Conn
If Not RS.EOF Then
RS.MoveFirst
End If
While Not RS.EOF
Debug.Print RS.Fields("DAV:displayname"
.Value
RS.MoveNext
Wend
RS.Close
....
Actual Problem:
When executing this code, the following error shows up:
Error '3706'. Provider cannot be found. Possibly not installed. (This is not the original text, since I am working on a german system and quick-translated this message).
Any clues ?
Thanks in advance,
Ron
does anybody have a hint for my problem:
Scenario:
W2K Server / Exchange 2K Server
Task:
Listing all contacts in a public address book (public folder)
Tools used:
VB6, CDOEXM, ADSI
I tried this code, which is originally from MSDN, in a sub.
This should finally open a recordset, which should give me the opportunity to 'traversal search' the recordset and list the contents of the container-object:
....
Dim Conn As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim Info As New ADSystemInfo
Dim sDomainName As String
Dim sSQL As String
sDomainName = Info.DomainDNSName
sFolderURL = "file://./BackOfficeStorage/" & sDomainName & "/Public Folders/<Name of Public Folder>"
Conn.Provider = "EXOLEDB.DataSource"
Conn.ConnectionString = sFolderURL
Conn.Open
sSQL = "Select * "
sSQL = sSQL & " from scope ('deep traversal of " & Chr(34)
sSQL = sSQL & sFolderURL & Chr(34) & "')"
RS.Open sSQL, Conn
If Not RS.EOF Then
RS.MoveFirst
End If
While Not RS.EOF
Debug.Print RS.Fields("DAV:displayname"
RS.MoveNext
Wend
RS.Close
....
Actual Problem:
When executing this code, the following error shows up:
Error '3706'. Provider cannot be found. Possibly not installed. (This is not the original text, since I am working on a german system and quick-translated this message).
Any clues ?
Thanks in advance,
Ron