المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Problem in connecting with SQL database on client machine



C# Programming
08-26-2009, 03:51 PM
hi,

I was not sure whether to post this message in database forum or C#, plz guide.

I have developed a simple database application which reads records from table and displays them in grid, it runs fine on my system but when I try to run it on client's machine it either gives exception or just crashes. It seems that there is some issue in connection string but I have not been able to identify..

here's some information:

Connection String: Data Source=.\SQLEXPRESS;AttachDbFilename=D:\dev\POS\POS\bin\Release\POS_DB.mdf;Integrated Security=True;User Instance=True;Connect Timeout=200

Exception: "The timeout period elapsed prior to completion of the operation or the server is not responding."

I have tried many things but nothing worked, any kind of help will be appreciated. Thanks,


Regards,
Affan Ahmad Toor

..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!