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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
13598Commented:
I am unclear where/when you are trying to connect. Is it with code in your program or in designer view?
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.