Click here to Skip to main content
15,878,231 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi every body,

i had a web application contains database using (C# and SQL EXPRESS). i was published the application on my local host and it is run correctly. now i want to publish it to the remote server on other company, such that i want to give them a license of the application but not application source code. how can i deal with it and how can i install them the database on there server?

thank you

1 solution

Provide application set-up file and install it in the remote computer,root the application to your Database through public IP.
Share this answer
Badour alsamaraie 22-Apr-15 2:52am    
how can i create set-up file for web application? and how can i includes the database table???
Member 11631705 22-Apr-15 2:58am    
1. To Create set-up:
Check this link out , Hope this can Help u[^]

2. How you are connecting to your Database in Local Machine?
Badour alsamaraie 22-Apr-15 3:14am    
1- link not work ! it is appear content not found!!
2- yes i am connecting the database in my local machine when i published the application on my machine. but i want to create database on remote machine when publish the application on there machine
Member 11631705 22-Apr-15 4:46am    
1.Sorry for that,Try this One:

2. You can take a backup copy of your Database from your Local system and Restore it the Remote machine.

Step 1: Take a DB back up from your System.(You can do it from SQl server Management Studio)
Step 2: Install SQL server in the remote machine and restore the DB.

Step 3: Change the Connection string in the web.Config file.

Please follow steps to back up and restore the DB:

To back up a database
1.After connecting to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.
2.Expand Databases, and depending on the database, either select a user database or expand System Databases and select a system database.
3.Right-click the database, point to Tasks, and then click Back Up. The Back Up Database dialog box appears.
4.In the Database list box, verify the database name. You can optionally select a different database from the list.
5.You can perform a database backup for any recovery model (FULL, BULK_LOGGED, or SIMPLE) FULL here

To restore a full database backup
1.Right click on the database you wish to restore, and select Tasks-->Restore-->From Database.
2.Select the "From Device:" radio button.
3.Select ... and choose the backup file of the other database you wish to restore from.
4.Select the backup set you wish to restore from by selecting the check box to the left of the backup set.
Select "Options".
5.Select Overwrite the existing database (WITH REPLACE)

Click OK.

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