mvarConnectionString = “Provedor = sqloledb;”
mvarConnectionString & = “Fonte de dados =” & mvarServerName & “; Biblioteca de rede = DBMSSOCN;”
mvarConnectionString & = “Catálogo inicial = eAlert;”
mvarConnectionString & = “ID do usuário =” & mvarUserName & “; Senha =” & mvarPassword & “;”
mvarServerName = “”
mvarUserName = “”
mvarPassword = “”
KeyName(1) = "ServerName"
KeyName(2) = "UserName"
KeyName(3) = "Password"
ReadINIFile("C:eAlert.ini", "eAlert", KeyName, KeyValues)
mvarServerName = KeyValues(1)
mvarUserName = KeyValues(2)
mvarPassword = KeyValues(3)
Arquivo INI
[eAlert]
UserName = sa
Password = Altius2005
ServerName = CBE-SERVER