Autor Beitrag
saxe66
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: So 03.06.07 19:07 
Liebe Delphianer, sicher hat jemand eine Idee, wo mein Problem zu suchen ist.

Ich habe eine SQL-Datenbank ("Daten") auf einem PC Namens "Server" liegen. Die dortige SQLExpress-Installation wurde mit beiden Zugriffsmodi installiert. Von meinem "PC1" bekomme ich jedoch über ADO keine Verbindung auf die entsprechende Datenbank, weder im "sa-Modus" noch über die integrierte NT-Sicherheit. Wo könnte das Problem liegen ? Lokal funktioniert alles prima.

Danke im Voraus ...
Andreas Schilling
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 1

WIN XP, WIN 7
Delphi 5 Ent, Delphi 2007 Pro, XE4
BeitragVerfasst: Mo 04.06.07 06:16 
Das Probleme hatten wir auch. Lösung:
1) Im SQL-Server Configurations Manager --> Protokolle für SERVER\DATEN --> TCP/IP --> Eigenschaften --> Registerkarte IP-Adressen --> Abschnitt IPA || --> Wert TCP-Port einen Wert eintragen, wir benutzen immer Port 2301
2) Connectionstring anpassen "Data Source=SERVER\DATEN,2301"
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Mo 04.06.07 06:28 
- Lokale Firewalls welche die entsprechenden Ports blocken
- SQL-Server läuft nur im "lokalbetrieb" (keine passende Bindung an Netzwerkprotokolle)
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 04.06.07 12:36 
Vergiss nicht, den Instanznamen beim Zugriff auf den Server anzugeben, also nicht SERVER\DATEN, sondern SERVER\SQLEXPRESS(Standardname bei einer SQL Express-Installation). Darüberhinaus musst Du, wie erwähnt, die TCP/IP bzw. Named Pipes Kommunikation in der SQLServer Konfigurationskonsole aktivieren.