Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ExecuteSQL wird nicht ausgeführt

Empfohlene Antworten

Veröffentlicht

Hi,

beim ausführen von ExecuteSQL() wird der Datensatz nicht aktualisiert.

Dieses Problem taucht nur selten auf und deswegen kann ich es nicht nachvollziehen voran es liegen kann?

ODBC: Access2000

Entwicklungsumgebung: MS C++, MFC

z. B.

Dieser Code wird im Programm immer aufgerufen wenn ein Vorgang abgeschlossen ist

CString strSql;

long lVorlaufigeNr, lNeueNr;

lVorlaufigeNr = 10001775;

lNeueNr = 12331;

try

{

//UINT III_ID, LPCTSTR III_TEXTID, LONG lWert

rs->m_strFilter.Format("L_ID = %d AND STR_ID = '%s'", III_ID, III_TEXTID);

rs->Requery();

if(rs->GetRecordCount() > 0 )

{

rs->Edit();

rs->m_L_ID = III_ID;

rs->m_STR_ID = III_TEXTID;

rs->m_L_FORMAT = 0;

rs->m_STR_RET = "";

rs->m_L_RET = lWert;

rs->Update();

}

strSql.Format("Update MyTabelle Set Nummer = %ld, Status = TRUE Where Nummer = %ld AND Status = FALSE", lNeueNr, lVorlaufigeNr);

dbDatabase.ExecuteSQL(strSql); // Datensatz wird in seltenen Fällen nicht aktualisiert

}

catch(CDBException *e)

{

AfxMessageBox(e->m_strError, MB_ICONEXCLAMATION);

e->Delete();

return FALSE;

}

Hat jemand eine Idee?

Mfg,

kaldemor

Richtig!

Da aber es sich auch um Datenbank- und C++ - Problem handelt muss ich die

beiden Foren ansprechen.

Mfg,

kaldemor

Richtig!

Da aber es sich auch um Datenbank- und C++ - Problem handelt muss ich die

beiden Foren ansprechen.

Nein, musst du nicht. Laut unseren Boardregeln (deren Lektüre ich dir hiermit ans Herz lege) musst du dich für ein Forum entscheiden, und gegebenfalls den Moderatoren die Entscheidung überlassen, wohin dein Thread gehört.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.