SQLGetDiagFieldW

Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
version(Windows)
extern (Windows)
static if(ODBCVER >= 0x0300)
SQLRETURN
SQLGetDiagFieldW
(
SQLSMALLINT
,
SQLHANDLE
,
SQLSMALLINT
,
SQLSMALLINT
,
SQLPOINTER
,
SQLSMALLINT
,
SQLSMALLINT*
)

Meta