Click here to Skip to main content
14,662,169 members
Rate this:
Please Sign up or sign in to vote.
See more:
I've create a simple CrystalReport application from window 7 with SQL server 2005 express. Everything is ok. But, when i install it on window XP sp3 with SQL server 2005 express, it ask for database ID and password. How to solve this?
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You will need to get the database id and password from the code that creates the database connection in the first place and then set it for the connection of the crystal report as well.
E.g. connection.SetLogon(user, password)
   
Comments
thanhvinh0906 26-Jun-11 11:44am
   
But, my connection string is:

@"Data Source=.\sqlexpress;Initial Catalog=ResManager;Integrated Security=True";

There is no username or password here.
thanhvinh0906 27-Jun-11 0:12am
   
On window 7, it doesn't prompt any thing. But, On Window XP, it prompt for ID and password. Help me, please!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100