PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Change analisys connection on IIS
Change analisys connection on IIS
Started by Hernandez, Oct., 14 2018 3:58 AM - 4 replies
Registered member
28 messages
Posted on October, 14 2018 - 3:58 AM
Hi,

I have a Web Dev application published on IIS. I need to change the database connection because I do not have permissions to connect to the test environment.

Thanks in advanced.
Registered member
204 messages
Popularité : +5 (5 votes)
Posted on October, 14 2018 - 10:15 AM
If I really understand what you need, try (in the project's code) :

IF InTestMode() = True THEN
HchangeDir("*","C:\MyPathOnMyTestEnvironment\")
END
Registered member
28 messages
Posted on October, 14 2018 - 8:22 PM
Hi,

Thanks for your answer. But I really don't understand, how that code can change my sql server name, user and password.

Is there a way to change the string connection after deployment?

Hope you can help.
Registered member
204 messages
Popularité : +5 (5 votes)
Posted on October, 14 2018 - 11:29 PM
Ok sorryI misunderstood your need.
I don't see how to achieve what you want.
What I suggested allows to switch between two bases, assuming you have control of the webdev app, one base on your test environment, the other for real conditions.
Sorry I can't help.
Registered member
17 messages
Popularité : +1 (1 vote)
Posted on October, 15 2018 - 10:28 AM
Hi Hernandez,
Look at the Help for hOpenConnection.