CDATABASE

xiaoxiao2021-03-06  104

#include #include #pragma Comment (lib, "odbccp32.lib") cdatabase m_dbnavdb; if (! SQLConfigDataSource (Null, ODBC_ADD_DSN, "SQL Server", // Drive Name "DSN = NAVDB / 0Server = (local) / 0DATABASE = NAVDB ")) // Test

{AFXMessageBox ("Configure Source Database DSN Failed !!!"); Return False;}

IF (! ("DSN = NAVDB; UID = SA; PWD = SA"), 0)) {AFXMESSAGEBOX ("Open Database Failed!");}

转载请注明原文地址:https://www.9cbs.com/read-103472.html

New Post(0)