Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
when i deploy a windows application i attach a .bak file with application files... then i install app in other computer which has no server installed but as a prerequisites i install sql compact edition on that computer......
so the problem is that the code written for database restore fails with the error (can not connect to PC2(other computer) while it work fine on computer on which it is designed...
help me .. what the wrong i m doing...
Posted

1 solution

If your aim is to use the .BAK file to build a new, known copy of the database, why not use either:
1) An SqlCE database file instead? These are self contained, and can be copied / moved like all other files as part of an installation process.
2) An SQL Script file which contains the data as well as the schema? This is not a backup, it is a sequence of SQL commands which re-generates the database. You can generate this from SQL Server Management studio.
 
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