Results 1 to 5 of 5

Thread: Crystal Reports - Trusted Connection

  1. #1

    Thread Starter
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748

    Crystal Reports - Trusted Connection

    I'm working on a designing a RDC application with Crystal Reports.

    Does anyone know how to run a report which connects to the database (SQL Server 2000) using a trusted connection?

    Is something like this...

    Set oCrystalReport = oCrystalApp.OpenReport(sReportFileName)
    oCrystalReport.Database.LogOnServer "p2ssql.dll", "my-server"

  2. #2

    Thread Starter
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    *bump*

  3. #3
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446
    Hi
    I have been using the Sqlserver2000. I used the code as follows.

    Set oCrystalReport = oCrystalApp.OpenReport(sReportFileName)
    Code:
    set crtable = oCrystalReport.Database.Tables.Item(1)
    crtable.SetLogonInfo CStr(servername), cstr(dbName) , cstr(uid), cstr(pwd)
    set crtable=nothing
    Here Item(1) represents the Table If you have 2 tables in your report u need to write twise in the above code with Tables.Item(2)
    prasad

  4. #4

    Thread Starter
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    I was doing it that way, but I don't want to give a username/password

  5. #5
    New Member
    Join Date
    Jul 2008
    Posts
    3

    Re: Crystal Reports - Trusted Connection

    Bonker,

    did you get an answer? I have to port a legacy VB6 system that uses Crystal 6 to windows authentication. Can you help with some advise?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width