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.

c#: Einlesen eines Insert Scriptes

Empfohlene Antworten

Hallo,

gibt es eine Möglichkeit in C# ein Insertscript auszuführen?

Mit diesem hier

OdbcCommand com = new OdbcCommand();

com.CommandText = "@" + strFileName + ";";

com.Connection = m_odbcConnection;

com.ExecuteNonQuery();

gehts nicht.

Gibt es evtl. eine andere Möglichkeit das ganze Script ausführen zu lassen?

Em du solltest eventuel die Datei auslesen. Schau dir mal StreamReader bzw. Text oder FielReader an. da gibts ne methode ReadtoEnd die dir den Kompletten text ausliest.

Das wäre meine Notlösung wenn es nicht anders geht.

Könnte ja aber sein das man doch irgendwie das Script einlesen kann?!

Gibt es evtl. eine andere Möglichkeit das ganze Script ausführen zu lassen?

weder besitzt ODBC an sich die möglichkeit, noch OdbcCommand die methoden, die den dateisystemzugriff unterstützen.

wäre dennoch interessant zu wissen, worauf du überhaupt zugreifst.

s'Amstel

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.