Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RDC DSN-Less Connection to MS SQL Server

Status
Not open for further replies.

agersh

Programmer
May 8, 2003
12
US
Visual Basic 6 and Crystal Reports 9.

Using the Report Designer Component Database Object I am trying to dynamically connect to a MS SQL Server 2000 database. From the technical reference documentation I was able to find the required Connection Properties except for the property that is needed to tell RDC what type of database I am connecting to.

What connection property am I missing?


CrReport.Database.Tables(1).ConnectionProperties.Item(???????) = DBConnString.Driver
CrReport.Database.Tables(1).ConnectionProperties.Item("server") = DBConnString.Server
CrReport.Database.Tables(1).ConnectionProperties.Item("database") = DBConnString.Database
CrReport.Database.Tables(1).ConnectionProperties.Item("password") = DBConnString.Password
CrReport.Database.Tables(1).ConnectionProperties.Item("user ID") = DBConnString.UserId
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top