Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have create an window application and already create its setup, also install sql server 2005 in clint computer and install my window application but one database related exception happened "Login fail to user HCL-PC\hcl".i know i need to change my server name according clint computer in app.config file. but how ?
or any other way to rum my software on clint computer?
Posted
Comments
Sergey Alexandrovich Kryukov 24-Oct-15 6:01am    
It all depends on what installation toolbox you are using. I looks like a custom action/step.
—SA

1 solution

use "." to refer to the local machine.

server=.\databaseinstancename;
 
Share this answer
 
Comments
Member 10273293 26-Oct-15 6:00am    
i have using this line in app.config file:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900