|
-
Oct 1st, 2002, 10:40 AM
#1
Thread Starter
Fanatic Member
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"
-
Oct 3rd, 2002, 04:41 AM
#2
Thread Starter
Fanatic Member
*bump*
-
Oct 3rd, 2002, 05:23 AM
#3
Hyperactive Member
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)
-
Oct 3rd, 2002, 07:46 AM
#4
Thread Starter
Fanatic Member
I was doing it that way, but I don't want to give a username/password
-
Jul 15th, 2008, 02:41 AM
#5
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|