Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Connect to an ADO DatabaseContent of Connect to an ADO Database.vbsMD5 Hash: F7341A6B639B1C760EBA15EBFA203C81 |
||
' Description: Demonstration script that deletes all the records in a table named Hardware 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 objRecordset.Close objConnection.Close | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |