[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Crystal Reports prompts for DB logon

Posted on 2014-02-10
10
Medium Priority
?
247 Views
Last Modified: 2014-02-19
In visual studio Crystal Reports prompts for DB logon. The catch is it only does it when my platform target is in x64 mode but if i'm in x86 there is no prompt and the report shows up fine.

This is what I have installed:
Installed components
What can I do to have the x64 version not prompt for a logon.
0
Comment
Question by:ButtonDownBobby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 39848703
You probably have ODBC DSN created correctly on the 32 bits machine. On the 64 bits machine you need to create DSN using  this exe:

%windir%\SysWOW64\odbcad32.exe
0
 
LVL 40
ID: 39849051
If you are using a .mdb Microsoft Access database, you cannot compile for x64. You need to compile for x86.
0
 

Author Comment

by:ButtonDownBobby
ID: 39850131
We have an ODBC DSN created using %windir%\SysWOW64\odbcad32.exe. Also we are using SQL Server 2005.
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 18

Expert Comment

by:vasto
ID: 39850757
Are you using the same user on both machines? Crystal will no ask you for credentials if it is able to connect to the database. With ODBC connection this means that you need to have a DSN set to work with a connection with integrated security. I can see 2 possible reasons to have DB Login dialog shown:
1. The user who is logged in on the 64 bits machine does not have permissions to connect to the database
2. The DSN on the 64 bits machine is not using integrated security
0
 

Author Comment

by:ButtonDownBobby
ID: 39851099
The user we use to log into the DB is the same for everyone.

Another thing is that when I publish the application in x64 the reports work on most of the machines. I think this has something to do with the crystal report runtime on my machine and the machines that have the same issue... I've upgraded my own to 13.0.8 with no change in results.
0
 
LVL 18

Expert Comment

by:vasto
ID: 39851519
How do you pass the password for this user ? ODBC DSN does not include the password.
0
 

Author Comment

by:ButtonDownBobby
ID: 39853478
It's through ODBC DSN called "TDEV"
rptReport.DataSourceConnections[Inti].SetConnection("TDEV", "TDev", "user", "Password");

Open in new window

0
 
LVL 18

Accepted Solution

by:
vasto earned 2000 total points
ID: 39853592
My guess is that your code doesn't work. Try another viewer and if it works with the current DSNs on both 32 and 64 bit machines you should look into your code.
0
 

Assisted Solution

by:ButtonDownBobby
ButtonDownBobby earned 0 total points
ID: 39858912
We found the solution to the problem. It  turned out that we had to set the odbc dsn in system32. We only had it set for syswow.
0
 

Author Closing Comment

by:ButtonDownBobby
ID: 39869801
I don't know why the 64 bit version of our code required a 32 bit ODBC DSN but, it did...
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question