connecting to the data source
-
I have a VC++ application when executed gives the following message "[Microsoft][ODBC Microsoft Acess Driver]'(unknown)'". How do I fix this?
Looks like your ODBC connection string may be incorrect. What is it set to?
Affordable and reliable hosting? Click here!
-
Looks like your ODBC connection string may be incorrect. What is it set to?
Affordable and reliable hosting? Click here!
-
below is the part where it tries to connect to the data source...and fails to connect nConnect = SQLDriverConnect( m_hDBC, NULL, psvSource, SQL_NTS, szConnectOutput, sizeof(szConnectOutput), &nResult, SQL_DRIVER_NOPROMPT);
-
_TUCHAR *psvSource=new _TUCHAR[ strlen( svSource )+1 ]; It is really weird. I've also checked in the control panel to see if the MS Access driver was listed as a data source. May be i can email you the files? I am new to this site. Is there a way to attach the files on this site so u don't have to give your email address to me?
-
_TUCHAR *psvSource=new _TUCHAR[ strlen( svSource )+1 ]; It is really weird. I've also checked in the control panel to see if the MS Access driver was listed as a data source. May be i can email you the files? I am new to this site. Is there a way to attach the files on this site so u don't have to give your email address to me?
psvSource needs to be set to a DSN that you have registered in ODBC administrator. If you haven't specified one, that is probablky why you can't connect.