This is a migrated thread and some comments may be shown as answers.

Connection String Issue

0 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 07 Jan 2012, 02:16 AM
It's simple enough to set a design-time connection string with the Report Wizard. But I'm having a very difficult time trying to set a connection string that will work once the  Winforms App is deployedl.  I have tried using Path.GetDirectoryName Application.ExecutablePath etc. but nothing wants to work. I know there's some simple and probably elegant solution to this, but I'm stuck and must reach out for help.  Any ideas on the best way to do this? I'm using a SQLDataSource and it's connection string finds everything I try disagreeable.  Thanks in advance.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Share this question
or