Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a Record from a RecordsetContent of Delete a Record from a Recordset.vbsMD5 Hash: 0FA092026C8C3025758BB84C780F9492 |
||
' Description: Demonstration script that deletes the record for a computer named WebServer from an ADO database with the DSN "Inventory."
Const adOpenStatic = 3 Const adLockOptimistic = 3 Const adUseClient = 3 Set objConnection = CreateObject("ADODB.Connection") Set objRecordset = CreateObject("ADODB.Recordset") objConnection.Open "DSN=Inventory;" objRecordset.CursorLocation = adUseClient objRecordset.Open "SELECT * FROM Hardware" , objConnection, _ adOpenStatic, adLockOptimistic strSearchCriteria = "ComputerName = 'WebServer'" objRecordSet.Find strSearchCriteria objRecordset.Delete objRecordset.Close objConnection.Close | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |