Created
November 16, 2014 17:04
-
-
Save seanbamforth/6ca7efee800b1bdda9fe to your computer and use it in GitHub Desktop.
Crashes MariaDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim ad | |
Dim sql_query | |
Dim objFSO, objOutFile | |
Dim intCount, i | |
sql_query = "show databases" | |
sConnect = "Driver={MariaDB ODBC 1.0 Driver};Server=localhost;Uid=root;pwd=password" | |
set ad = CreateObject("ADODB.Connection") | |
ad.ConnectionString=sConnect | |
ad.Open | |
Set rs = ad.execute(sql_query) 'execute query | |
intCount = rs.Fields.Count | |
do while not rs.eof | |
Wscript.Echo rs.fields.item(0) | |
rs.MoveNext | |
loop | |
ad.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment