on 07-21-2017 11:56 AM
Using Tokyo 10.2 and ADS local server 10.10....
Here is .add connection string to local C:\dai\plx_data\planfaxsystem.add
rc = AdsConnect60((unsigned char*)m_strConnect.GetBuffer(0), ADS_LOCAL_SERVER, (unsigned char*)"guest", (unsigned char*)"4417", ADS_TCP_IP_CONNECTION | ADS_COMPRESS_NEVER | ADS_IGNORERIGHTS , &m_connection);
followed by attempt to connect o a local table that's a non-free ADT table owned by Planfaxsystem.add
rc = AdsOpenTable(pAdxDb.m_connection, (unsigned char*) "system_runtimeparameters"/*tableName.c_str()*/, NULL, ADS_ADT, ADS_ANSI, ADS_PROPRIETARY_LOCKING, ADS_IGNORERIGHTS, ADS_SHARED, &hTable);//ADS_CHECKRIGHTS,
Error returned is a 7041 -- can't find file....file is there as evidenced by using DatArch to open and access same.
No other users present.
Any ideas?
The ads_err.adt table says its trying to open file "ENU".....which is the name of the table were sending it. Heres the code.
UNSIGNED32 rc;
unsigned long hTable1=0;
m_connection = 0;
int tryCount = 0;
CString codex;
char xxx[132];
strcpy(xxx,"system_logins");
m_strConnect = "\\\\planfaxserver\\lac\\plx_data\\planfaxsystem.add";
rc = AdsConnect60((unsigned char*)m_strConnect, ADS_REMOTE_SERVER, (unsigned char*)"guest", (unsigned char*)"4417", ADS_TCP_IP_CONNECTION | ADS_COMPRESS_NEVER | ADS_IGNORERIGHTS , &m_connection);
rc = AdsOpenTable(m_connection, (unsigned char*)xxx, NULL, ADS_ADT, ADS_ANSI, ADS_PROPRIETARY_LOCKING, ADS_CHECKRIGHTS, ADS_SHARED, &hTable1);
if (rc == SUCCESS) { codex.Format("Created Connection %s %i", m_strConnect, m_connection); logError(codex); } break;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check out ads_err.adt for the file name ADS tries to open. Do oyu try to open the file including the extension? Using ADD you don't need it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.