Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Open a Database Using a DSNContent of Open a Database Using a DSN.vbsMD5 Hash: BDB9FB200D3A9A927F88BE63B6A13FF3 |
||
' Description: Demonstration script that uses a DSN to open a database named Northwind.
Const adOpenStatic = 3 Const adLockOptimistic = 3 Set objConnection = CreateObject("ADODB.Connection") Set objRecordSet = CreateObject("ADODB.Recordset") objConnection.Open _ "Northwind;fabrikam\kenmyer;34ghfn&!j" objRecordSet.Open "SELECT * FROM Customers", _ objConnection, adOpenStatic, adLockOptimistic objRecordSet.MoveFirst Wscript.Echo objRecordSet.RecordCount | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |