SQLConnect

[DllImport("odbc32.dll", SetLastError = true)]
public static extern int SQLConnect(
   IntPtr hdbc,
   IntPtr szDSN,
   short cbDSN,
   IntPtr szUID,
   short cbUID,
   IntPtr szAuthStr,
   short cbAuthStr
);

Microsoft documentation: Link

Last updated