GoldenBear
asked on
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.
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.
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.
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
Where are you entering the connection information?
mlmcc
I am unclear where/when you are trying to connect. Is it with code in your program or in designer view?
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.
ASKER
@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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also you did try to connect by only entering the servername and dbname and you did not enter a username or password, correct?
ASKER
This could possibly be the solution. I just went with Excel ultimately for the charting capability.