Error (-2141913058,Microsoft OLE DB Provider For Exchange)

Error (-2141913058,Microsoft OLE DB Provider For Exchange)

Post by SGVybWVzIE » Sun, 22 May 2005 04:51:16


i have the same problem with a code which makes a query to the exchange
store, the code works sometimes for a couple of hours then the error code in
the subject appears:

Error (-2141913058,Microsoft OLE DB Provider For Exchange)
Unexpected store error: !d! (0x!8.8x!)

..... what does this code mean? how can i fix it?

my code is something like this...

Set objRs = CreateObject("ADODB.Recordset")
Set objRec = CreateObject("ADODB.Record")


sDomainName = MyConfig.sDomain
sUser = MyConfig.sUserWin
sPwd = MyConfig.sPwdWin
....

sLocalPath = sLocalPath & "/inbox"

....

sURL = "file://./backofficestorage/" & sDomainName & "/" & sLocalPath

sSQL = "select * "
sSQL = sSQL & " from scope ('shallow traversal of " & Chr(34) & sURL &
Chr(34) & "')"
sSQL = sSQL & " where ""urn:schemas:httpmail:read"" = false "
sSQL = sSQL & " order by ""urn:schemas:httpmail:datereceived"" desc"

objRec.Open sURL, , adModeReadWrite, , , sUser, sPwd
objRs.Open sSQL, objRec.ActiveConnection
If objRs.RecordCount > 0 Then
While Not objRs.EOF .....

.................................

for any help.


thanx a lot