Autor Beitrag
shil
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Di 06.02.07 15:07 
ausblenden C#-Quelltext
1:
mConnect.ConnectionString = string.Format("Driver={SQL Server};Server=localhost;UID={0};PWD={1};Database=Irgendwas;",userName ,password);					


abgesehn von den namen, wo soll da ein fehler sein? Oo

Ich verwende eine MSDE und versuche auf die Datenbank zuzugreifen. Aber wenn ich das Programm starte bekomme ich bei dem Connectionstring eine FormatExeception. ich habe
den string mehrmals mit anderen abgeglichen. Was soll da bitte am Format falsch sein -.-

schonmal danke im Vorraus


Zuletzt bearbeitet von shil am Di 06.02.07 15:19, insgesamt 1-mal bearbeitet
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Di 06.02.07 15:33 
hat sich erledigt.
das String.Format kam nicht ganz mit dem Driver={...} zurecht.