We help IT Professionals succeed at work.
Get Started

.NET, C#, Windows App, Crystal Reports, SQL - asks for password - can't use - examples don't work

dcass
dcass asked
on
755 Views
Last Modified: 2012-06-21
I am using .NET, C#, Windows App, Crystal Reports, SQL which is easy to create and runs but it asks the USER for the SQL password.  I can't use it because I can't give the users the SQL password and from what I read there is no way to specify the password in Crystal, you have to do it in the C# program.  I've tried about 10 examples I found on the internet, but none of them would compile, including the Microsoft example with ConnectionInfo.   If you know what I'm talking about, it uses REPORT which doesn't exist and it doesn't tell where it came from (maybe I need a using statement, but I've tried every one that has anything to do with Crystal and it still didn't work).  I'm a C# novice, so if you would rather send a VB example, feel free - I'll take anything that will get rid of the password inquiry.   But I need the entire code, not just pieces like Microsoft does, so a full example would be great.
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE