PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Change analisys connection on IIS
Change analisys connection on IIS
Débuté par Hernandez, 14 oct. 2018 03:58 - 4 réponses
Membre enregistré
28 messages
Posté le 14 octobre 2018 - 03:58
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.
Membre enregistré
204 messages
Popularité : +5 (5 votes)
Posté le 14 octobre 2018 - 10:15
If I really understand what you need, try (in the project's code) :

IF InTestMode() = True THEN
HchangeDir("*","C:\MyPathOnMyTestEnvironment\")
END
Membre enregistré
28 messages
Posté le 14 octobre 2018 - 20:22
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.
Membre enregistré
204 messages
Popularité : +5 (5 votes)
Posté le 14 octobre 2018 - 23:29
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.
Membre enregistré
17 messages
Popularité : +1 (1 vote)
Posté le 15 octobre 2018 - 10:28
Hi Hernandez,
Look at the Help for hOpenConnection.