I have a simple question, I should now it, but somehow this is greyed out. .Kinda embarrassad about it but here goes..
I have the following script, and I just want to list all items in the "servers" list.
Const adOpenStatic = 3
Const adLockOptimistic = 3
Set wshshell = WScript.CreateObject("WScript.Shell")
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Open _
"Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source = \\spider\e$\Inetpub\
objRecordSet.Open "SELECT * FROM Servers" , _
objConnection, adOpenStatic, adLockOptimistic
objRecordSet.MoveFirst
If Not objRecordset.EOF Then
WScript.Echo objRecordset
End If
objRecordSet.Close
objConnection.Close
WScript.Quit
Thanks
I have the following script, and I just want to list all items in the "servers" list.
Const adOpenStatic = 3
Const adLockOptimistic = 3
Set wshshell = WScript.CreateObject("WScript.Shell")
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Open _
"Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source = \\spider\e$\Inetpub\
objRecordSet.Open "SELECT * FROM Servers" , _
objConnection, adOpenStatic, adLockOptimistic
objRecordSet.MoveFirst
If Not objRecordset.EOF Then
WScript.Echo objRecordset
End If
objRecordSet.Close
objConnection.Close
WScript.Quit
Thanks