Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am working on windows form application in c# i have also used database in it but now i want that my project run on every computer (i know that sql server must be installed). i copied database file in bin-debug folder but stil it is not working ...any suggestion??
Posted
Comments
Member 10451599 7-Dec-13 15:05pm    
What error are you getting?
joginder-banger 7-Dec-13 15:10pm    
open your database and Generate the Script with data.after then copy the script and Run another Sys. I hope your problem as been solve. for any problem you faced share your error what you getting.
footballpardeep 7-Dec-13 15:29pm    
may be you are using wrong connection string
Sergey Alexandrovich Kryukov 7-Dec-13 18:58pm    
Not enough information.
—SA

changed data source parts,if you have set in sql both security like window and user then change data source parts. if you are set a data Source=. then your c# form under standing the windows based security. so I think you can check your connection string again. if any problem you are faced free feel left the message.
C#
Data Source=.;Initial Catalog=employee;Integrated Security=True
 
Share this answer
 
use this :


Data Source=.;Initial Catalog=employee;Integrated Security=True;username=" " ;password="";
 
Share this answer
 
You should be check your connection string and must be attach with sql.
may b your server name and uid,pwd is different
 
Share this answer
 
In connectionString problem.
"Data Source=changing only Data source mean changing pc name like ANICHUR-PC\\SQLEXPRESS ;Initial Catalog=Database name;Integrated Security=True;
 
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