cancel
Showing results for 
Search instead for 
Did you mean: 

ADS Local server connection can't find table - error 7041

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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;

joachim_drr
Contributor
0 Kudos

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.