Link to home
Start Free TrialLog in
Avatar of rayxx
rayxx

asked on

How to use trusted connection: CR 8.5, VB6, SQL Server

How can I programatically connect to my database using a trusted connection?  This DOES work:

  Dim CrxReport As CRAXDRT.Report
  CrxReport.Database.Tables.Item(1).SetLogOnInfo "MyServer", "MyDB", "MySQLUserID", "MyPassword"

but what is the equivalent for a TRUSTED CONNECTION to SQL Server?  

I tried this:
  CrxReport.Database.Tables.Item(1).SetLogOnInfo "MyServer", "MyDB",null,null
and this:
  CrxReport.Database.Tables.Item(1).SetLogOnInfo "MyServer", "MyDB","",""

but no luck.  Is there some other method I should be using?

Thx in advance!
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial