[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]
static extern short SQLConnect (int connectionHandle, string serverName,
short nameLength1, string userName, short nameLength2,
string authentication, short nameLength3);
Declare Function SQLConnect Lib "odbc32.dll" (TODO) As TODO
None.
Please add some!
'''int''' RetCode;
'''int''' hdbc = 0;
'''int''' hEnv = 0;
...
'''if''' ( SQLAllocEnv('''ref''' hEnv)'''!=''' SQL_ERROR)
{
RetCode = SQLAllocConnect(hEnv,ref hdbc);
RetCode = SQLConnect(hdbc, "Northwind",-3,'''''null''''',-3,'''null''',-3);
...
}
...
Do you know one? Please contribute it!