Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Data Connectivity
Message Icon Topic: VB6 - SQL Server with trusted Connection Post Reply Post New Topic
Author Message
dqueijo
Newbie
Newbie
Avatar

Joined: 23 Jul 2008
Location: Uruguay
Online Status: Offline
Posts: 3
Quote dqueijo Replybullet Topic: VB6 - SQL Server with trusted Connection
    Posted: 23 Jul 2008 at 5:27am

Hi!

I am developing an application that uses a Crystal report component. So far I have no problems connecting that report with SQL Server using user and password.

This is the code:
 
CrystalReport1.Connect = "Data Source=" + strServer + ";UID=" + strUser + ";PWD=" + strPass + ";DSQ=Example;"
CrystalReport1.ReportFileName = gsCaminoApli & "\" & strNombre & ".rpt"
CrystalReport1.SelectionFormula = strCrit
CrystalReport1.Destination = crptToWindow
CrystalReport1.Action = 1
 
Now I need to make this connection with a trusted connection (Windows authentification). I have tryed any possiblities with the connection string, but I was not able to figure it out.
 
Please help me Cry
 
Thanks!!!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.