Using Crystal Reports, mySQL, Visual Studio 2010 with change in database at runtime
Can someone please explain to me how to use crystal reports with mySQL on visual studio? The problem I have is that all the runtime servers are different from the design time servers. The structures of the databases are the same though. So what I need is to design a crystal report using a connection then change that connection on the clients computer.

Sam HobbsRank #107 · 20.5K reputationPosted Aug 24, 2011, 7:46 AM EDT
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Aug 20, 2011, 6:18 AM EDT
http://social.msdn.microsoft.com/Forums/en-AU/vscrystalreports/thread/c4782911-8bfb-43f8-8206-3e523eff4b6a
Sam HobbsRank #107 · 20.5K reputationPosted Aug 21, 2011, 7:00 PM EDT
patrickRank #4,458 · 342 reputationPosted Aug 23, 2011, 2:45 PM EDT
http://www.codeproject.com/KB/database/MySQLCrystal.aspx in this article it gives instructions on how to connect to a dataSet, but wouldn't I have to reload that on the client computer everytime?
Would it be easier if I set up a windows ODBC connection using the mySQL driver and connected to that?
Sam HobbsRank #107 · 20.5K reputationPosted Aug 23, 2011, 4:16 PM EDT
patrickRank #4,458 · 342 reputationPosted Aug 24, 2011, 5:05 AM EDT
So my original issue was trying to get the mysql database to load data into a crystal report using the same connection string that the rest of the program uses, which is always specified by the client settings.
What I have done so far to make progress was to set up and ODBC connection (which i never used in the program before) on my computer and matching ones on the client computers using windows admininstrator tools -> data sources.
So, essentially, my current issue comes down to this: how can I let the user choose an ODBC connection at runtime to ensure they are not having an issue connecting to their database?
Like I said, I've never used crystal reports or the mySQL ODBC connector before, I have always just connected with code, so let me know if I am going in the wrong direction.