Crystal Reports connection problem in Visual Studio

Hi,

I'm trying to use Crystal Reports in Visual Studio 2008 to make a 3D chart. However, I'm having a problem making a connection to the MS SQL database. I get an error saying Logon failed, SQL State 42000.

I tried using several different connections from the Database Expert wizard, including the OLE DB (ADO) provider for SQL Server, SQL Native Client, and SQL Server Native Client. I used the same connection information as I found in SQL Server Management Studio, trying both with and without the Integrated Security checkbox, and trying the username both with and without the server name preceding it.

What is the correct way to make a connection?

Thanks.
GoldenBearAsked:
Who is Participating?
 
13598Commented:
You state you are using the Windows account, i take it that means windows authentication. When you go into SQL Server Management Studio under security/logins do you see your username and what rights do you have to the db/tables you are trying to access?
0
 
Brendt HessSenior DBACommented:
Assuming you are trying to log in with SQL Server security (as opposed to Windows accounts), have you allowed the SQL Server to accept those logins?  You need to check your SQL Server's security properties to ensure that authentication is set to BOTH SQL Server and Windows.
0
 
mlmccCommented:
I would use the OLE connection method.  The others you mention require the SQL Server client be installed on each user's machine which requires a license from MS.

Where are you entering the connection information?

mlmcc
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
13598Commented:
I am unclear where/when you are trying to connect. Is it with code in your program or in designer view?
0
 
13598Commented:
If you use sql native client and check the Integrated Security box you shouldn't need to enter a username or password just the server and db name.
0
 
GoldenBearAuthor Commented:
@bhess1:
I'm using the Windows account

@mlmcc:
I believe I already tried the OLE connection method. I tried the "OLE DB (ADO) provider for SQL Server" option which I assume is the same thing.

@13598:
standard report creation wizard

@13598:
I get an error message saying SQL State: 28000
0
 
13598Commented:
Also you did try to connect by only entering the servername and dbname and you did not enter a username or password, correct?
0
 
GoldenBearAuthor Commented:
This could possibly be the solution. I just went with Excel ultimately for the charting capability.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.