Click here to Skip to main content
15,912,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made a simple application using ADO.Net. while I run the program in my computer it worked well. But it does not work in my friends computer. My friend says that I must include the database file while publishing. Please anyone tell me how to do this.... Please tell me how to solve the problem....
Posted
Updated 25-Mar-10 0:46am
v2

Prabin P B wrote:
My friend says that I must include the database file while publishing.

NO! this is wrong...

You just need to make sure that the database that you are connecting using ADO.NET is available for remote access. The database serve should be up and running and the SQL Server should be configured to allow remote connections (google 'Surface Area Configuration' if needed).
 
Share this answer
 
If you want the DB should be on your machine then you need to make sure that the server is accesible from remote servers. If you want to deploy DB on the local server then you can create a new DB on the PC using SQL DB scripts. For this have a look at it: http://www.firebirdsql.org/dotnetfirebird/create-a-new-database-from-an-sql-script.html[^]
 
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