Click here to Skip to main content
15,991,071 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all
i making program using c# and sql server database,the main process add,update and delete
all the process ok but when i make publish for project and setup in another pc then return to edit in program in c#
the function add do not add to database and the update do not update in data in database also delete and no error
i do not know what is the wronge
Posted
Comments
Richard C Bishop 24-Sep-12 15:49pm    
You need to post the code you have, no one can read your mind or see your computer.
[no name] 24-Sep-12 15:52pm    
Please try to run fresh copy of your application and then try again .

O u can Past Code here....so that i can help you better
[no name] 24-Sep-12 15:54pm    
or put check point on add function
supernorb 24-Sep-12 16:41pm    
It seems that you have some problem in connection string which involves the server name, the server name may also involve the computer name and that's why changing the computer can make your program not work. As others suggested, you should post some of your code in which you think the problem might be.
Yes this may be the case...

1 solution

Check you connection string to the database and make sure that you write the correct server name i.e. your pc name will change from computer to computer and therefore you are getting the errors due to incorrect path to database.
 
Share this answer
 

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