#include <_sql.au3>
#include <array.au3>
$server = "i6319-app007"
$db = "master"
$login = "testsql"
$pass = "111111"
_SQL_RegisterErrorHandler()
$oADODB = _SQL_Startup()
If $oADODB = $SQL_ERROR then Msgbox(0 + 16 +262144,"Error",_SQL_GetErrMsg())
If _SQL_Connect(-1,$server ,$db,$login ,$pass) = $SQL_ERROR then
; Syntax.........: _SQL_Connect($ADODBHandle,$server, $db, $username, $password)
Msgbox(0 + 16 +262144,"Error",_SQL_GetErrMsg())
else
Msgbox(0,"Ок", "Ok")
EndIf