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.

Stored Procedure, MS-SQL-Server, Centura Team Developer 1.5

Empfohlene Antworten

Veröffentlicht

Moin,

zugegeben eine seltsame Kombination:

MS-SQL-Server 200 und Centura Team Developer 1.5

Wie kann ich aus CTD eine "Stored Procedure" aufrufen? Bitte mit einem flachen Beispiel. Jede richtige Antwort gewinnt einen Kaffee :D

Reinhold

Mit SqlStore die Procedure einmalig speichern:

Call SqlStore ( hSql, 'NameSP', 'Statement SP' )

Dann mitSqlRetrieve die Procedure ausführen

Call SqlRetrieve ( hSql, 'NameSP', commaseperated Liste der Bind Variablen aus NameSP, Möglich:commaseperated Liste aus IntoVariablen, muss anzahlmässig der bind Liste entsprechen)

Den Kaffee beim nächsten Bayern Stammtisch abgeben....

> Mit SqlStore die Procedure einmalig speichern:

> Call SqlStore ( hSql, 'NameSP', 'Statement SP' )

>

> Dann mitSqlRetrieve die Procedure ausführen

> Call SqlRetrieve ( hSql, 'NameSP', commaseperated Liste der Bind Variablen

> aus NameSP, Möglich:commaseperated Liste aus IntoVariablen, muss

> anzahlmässig der bind Liste entsprechen)

Leider klappt das (zumindest bei mir) nicht mit dem MS-SQL-Server, sondern vermutlich nur mit Oracle oder Gupta. Die Lösung, die ich gefunden habe (mit elend viel googlen) erfordert eine benutzerdefinierte Installation, damit die ODBSAL32.APL vorhanden ist und sieht so aus:

Call SqlSetResultSet( hSql,FALSE )

Set bOK = OdrPrepareProc

(hSql ,'{Call MyProc (:v1, :v2 )}','strNull')

If bOK

Call SqlExecute(hSql)

Else

Call SalMessageBox ( "Fehler in Procedure", "UZB", 0)

> Den Kaffee beim nächsten Bayern Stammtisch abgeben....

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.