Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2003, 04:06 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Password Rejected Using Crystal 9 in VB6

I am attempting to convert my VB app from using integrated (NT) security to SQL Server 2000 security. We are doing this to regulate database access.
I have found that when I change the SQL Server user ('Admin') password to 'nothing' I am able to run the report. When I change the Admin user password to anything else I get an error stating: "Login failed for user 'Admin'".
Here is the code that works without a password:

Dim crystal As New CRAXDRT.Application
    Dim report As New CRAXDRT.report
    Set crystal = New CRAXDRT.Application
    crystal.LogOnServer "p2ssql.dll", "LAPTOP_02", "Production", "Admin", ""
    Set report = crystal.OpenReport("D:\ACS\Report1.rpt")

******************************************
Here is the code that fails when I assign a password to the user Admin:

Dim crystal As New CRAXDRT.Application
    Dim report As New CRAXDRT.report
    Set crystal = New CRAXDRT.Application
    crystal.LogOnServer "p2ssql.dll", "LAPTOP_02", "Production", "Admin", "Admin"
    Set report = crystal.OpenReport("D:\ACS\Report1.rpt")

Running the report directly from Crystal 9 works fine.

Any thoughts are appreciated.
Thanks,
Brad
 
Old March 31st, 2004, 05:06 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Infact in you following thread

crystal.LogOnServer "p2ssql.dll", "LAPTOP_02", "Production", "Admin", "Admin"

do specify User name & Password as empty string. Only server name is nessary there.

Regards

Tanveer D.K.







Similar Threads
Thread Thread Starter Forum Replies Last Post
crystal report9 with password protected MSACCESS zrtv Beginning VB 6 4 April 22nd, 2009 03:23 PM
How to set password to exported Crystal Report jdaulagar Beginning VB 6 0 January 10th, 2007 04:19 PM
Call Rejected By Callee Exception gooseprasad General .NET 0 November 7th, 2006 02:22 AM
Call was Rejected by Callee Exception mailanand General .NET 0 July 24th, 2006 11:53 PM
Crystal Web Report asking User name/password abmohan75 Crystal Reports 2 January 22nd, 2006 04:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.