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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Connection String

Status
Not open for further replies.

shaikhintekhab

Programmer
Aug 8, 2002
4
US
I made a crystal report using Connection String.
Step used was->
Under Database select More Data Sources.
Under that Select Microsoft SQl Server.
Make new connection.

Now my point is how do i change this connections String
Dynamically in my ASP.

I saw the Article at

I have following code
userid = "sa"
password = ""


session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False

' Set the location
session("oRpt").Database.AddOLEDBSource "Initial Catalog=Database2;Data Source=ACTAEON;User Id=sa;Password=;","Table1"

It gives error

Error Type:
Crystal Reports ActiveX Designer (0x80047288)
Server has not yet been opened.
/aspxmps8/Intermediate/SimpleSetLogOnInfo/SimpleSetLogOnInfo.asp, line 95
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top