Opens a login record, establishes a connection to the server, and then deallocates the login record.
SqlOpenConnection% ( server$, loginid$, pwd$, workstation$, app$ )
where
The identifier of a SQL Server connection. If the connection cannot be created, 0 is returned.
SqlOpenConnection performs the actions required to open a login record, establish a connection to the server, and then free the memory allocated for the login record. It is the equivalent of combining calls to SqlLogin%, SqlSetLUser%, SqlSetLPwd%, SqlSetLApp%, SqlOpen%, and SqlFreeLogin.
Important Do not modify the identifier returned by SqlOpenConnection in any way. Modifying the identifier can cause unpredictable results.
SqlFreeLogin, SqlLogin%, SqlOpen%, SqlSetLApp%, SqlSetLPwd%, SqlSetLUser%