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.

vb.net datenbankzugriff auf instanzen

Empfohlene Antworten

Veröffentlicht

morgen,

ich versuche gerade mit vb.net auf eine "instanz" einer MSSQL-DB zuzugreifen. irgendwie will mir das aber nicht gelingen.

fällt euch dazu irgendwas ein?

            constring = "Password=[pw]; Persist Security Info=True;" & _

                                    "User ID=[user]; Initial Catalog=DCS5;" & _

                                    "Data Source=10.10.12.22\DCS_VERTRIEB_FAS"


            Dim t_myConn As SqlConnection

            Dim t_myCmd As SqlCommand

            Dim t_myReader As SqlDataReader

            Dim sql As String


            t_myConn = New SqlConnection(constring)


            t_myCmd = t_myConn.CreateCommand

            sql = "SELECT ..."

            t_myCmd.CommandText = sql

            t_myConn.Open()

            t_myReader = t_myCmd.ExecuteReader()

            t_myConn.Close()

der selbe code funkioniert einwandfrei sobald ich das mit der instanz weglasse, und auf eine db zugreife bei der ich z.B. nur den constring.
            constring = "Password=[pw]; Persist Security Info=True;" & _

                                    "User ID=[user]; Initial Catalog=DCS5;" & _

                                    "Data Source=10.10.12.22"

verwende

danke

lg

jasso

  • Autor

ok sry....

ich bekomme die fehlermeldung:

dbfehler6dw.gif

wenn ich aber die entsprechenden daten in eine udl-datei schreibe habe ich damit zugriff auf die db (die zugangsdaten stimmen also).

lg

jasso

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.