Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am using visual studio 2010 , MSSQL server 2008 R2

a web config file contains the below data

XML
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="MyConnectionString"
            connectionString="Data Source=SMS-PC;Initial Catalog=DBNAME;User ID=sa;Password=PASSwORD"
            providerName="System.Data.SqlClient" />
	</connectionStrings>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
    </startup>
</configuration>



i need to create a setup such that

1) the EXE and other files should gets copied to a location
2) the database gets automatically inserted to the new system
3) app.config file should be rewritten to the current connection string of the system.

please get me the solution step by step
thanking you ...

Sid
Posted
Comments

1 solution

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