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.

keine Verbindung bei inaktiver Netzwerkkarte zu MSSQL7

Empfohlene Antworten

Hallo Forum,

Quelltext:

With con

.Provider = "SQLOLEDB"

.Properties("Network Address") = modINI.IP 'Network-IP aus ModINI hohlen

.Properties("Initial Catalog").Value = modINI.Datenbank 'Datenbank aus modINI hohlen

.Properties("User ID").Value = temp_user

.Properties("Password").Value = temp_password

.Open

End With

so.. dass Problem ist folgendes:

Wenn eine Netzwerkverbindung besteht funktioniert der Connect auf den lokalen SQL-Server.. sobald die Netzwerkverbindung getrennt wird oder inaktiv ist kann er nicht mehr auf den lokalen Server connecten.

Zur Information: Ja, con ist global

Bei Inaktivität der Netzwerkverbindung ist die Variable Con leer!

Woran kann das liegen, bzw. wie kann ich dem Programm sagen, dass es auch eine

Verbindung bei Inaktivität der Netzwerkkarte herstellen soll?

MFG

Druid :cool:

To connect to SQL Server running on the same computer

oConn.Open "Provider=sqloledb;" & _

"Data Source=(local);" & _

"Initial Catalog=myDatabaseName;" & _

"User ID=myUsername;" & _

"Password=myPassword"

benutze einfach "local"

(siehe www.able-consulting.com, da ist all about connectionstrings)

Grüße

Buell

Danke, so hat es funktioniert!!

Warum ich da nicht gleich drauf gekommen bin *kopfschlag*

Hab noch ne andere Lösung gefunden, für alle dies interessiert:

Einfach den SP2 über den Server spielen *g*

MFG

Druid :cool:

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.