Re: Help needed to connect to remote Access database using C++ (not MFC)
- From: Bob Hairgrove <rhairgroveNOSPAMPLEASE@xxxxxxxxxxx>
- Date: Thu, 11 Dec 2008 16:38:47 +0100
marek-knows.com wrote:
I'm working on a project which requires me to connect to a remote
Access database on a server, using C++ (not MFC). I've written some
code to connect to a LOCAL access database file on my own machine and
everything works fine. I can't seem to figure out how to get ODBC to
talk to a remote Access database though. Can anyone suggest what I
might try to get this to work?
To make the local access database connection I used function
SQLDriverConnect.
I tried modifying the connection string to include the keyword
SERVER=www.myurl.com but for some reason I just get this error
message:
IM006:1:0:[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed
01S00:3:8:[Microsoft][ODBC Microsoft Access Driver]Invalid connection
string attribute SERVER
It looks to me like I can't use SERVER with the SQLDriverConnect
function?
Any help would be greatly appreciated,
thanks,
Marek
MS-Access is not a database server. You need file access to the MDB file in order to connect to it remotely. This is very different from true client/server database servers which communicate through network ports with the client. That's why with Access, you always end up doing all the processing on the client and pulling in much more data over the network than you would normally need.
HTH
.
- References:
- Help needed to connect to remote Access database using C++ (not MFC)
- From: marek-knows.com
- Help needed to connect to remote Access database using C++ (not MFC)
- Prev by Date: Help needed to connect to remote Access database using C++ (not MFC)
- Next by Date: Create Access database with odbc
- Previous by thread: Help needed to connect to remote Access database using C++ (not MFC)
- Next by thread: Create Access database with odbc
- Index(es):
Relevant Pages
|