Behnam
Behnam

Reputation: 1063

How to Change Connection String of Published Application

I have published a windows form application with a certain sql connection string . for security reasons i should change the password of my sql server user wich is used in connection string. I tried to change password in published path in config.exe file but program did not consider the changes in connection string. Is there any way to change connection string without publishing the program again?

Upvotes: 1

Views: 881

Answers (2)

Awais Jan
Awais Jan

Reputation: 7

yes Open Publish Folder>then open Application File>then open next folder thats name of your projects > then open file your projectname.exe.config in Notepad then you change your connectiostring

Upvotes: 1

Wasiq Muhammad
Wasiq Muhammad

Reputation: 3138

Here config.exe is a compile file you publish it again to make work

Upvotes: 0

Related Questions