Microsoft Cursor Engine error 
Author Message
 Microsoft Cursor Engine error

when I run the script that I got from microsoft's website, it run but then I
get  (40,1)Microsoft Cursor Engine: Data provider or other service returned
an E_FAIL status.
Here is the script

Set objConn = CreateObject("ADODB.Connection")
Set objRS = CreateObject("ADODB.Recordset")
objConn.Open "DSN=EventLogs;"
objRS.CursorLocation = 3
objRS.Open "SELECT * FROM EventLogs" , objConn, 3, 3
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colRetrievedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile = 'application'")
For Each objEvent in colRetrievedEvents
objRS.AddNew
objRS("Category") = objEvent.Category
objRS("ComputerName") = objEvent.ComputerName
objRS("EventCode") = objEvent.EventCode
objRS("Message") = objEvent.Message
objRS("RecordNumber") = objEvent.RecordNumber
objRS("SourceName") = objEvent.SourceName
objRS("TimeWritten") = objEvent.TimeWritten
objRS("Type") = objEvent.Type
objRS("User") = objEvent.User
objRS.Update  <- (40,1) This is the linewith the error
Next
objRS.Close
objConn.Close
MsgBox "Done"



Thu, 18 Aug 2005 10:39:06 GMT  
 Microsoft Cursor Engine error
But how did you define the "Eventlog" DSN in your system?

Pablo



Sat, 20 Aug 2005 23:39:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Microsoft Cursor Engine error '8007000e'

2. Microsoft JET Database Engine (0x80004005) error

3. The Microsoft Jet database engine cannot......

4. What version of Microsoft Scripting Engines ?

5. How to know if the Microsoft Script engine is installed

6. Installing Microsoft Scripting Engines Version 5.0

7. redistribution of Microsoft Scripting Engines 5.1

8. redistribution of Microsoft Scripting Engines 5.1

9. Version 5.0 of Microsoft Windows Script Engines Released

10. Cursor hourglass change without moving cursor?

11. Changing the mouse Cursor to a non-standard cursor

12. Open Cursor Error

 

 
Powered by phpBB® Forum Software