Hello Guys
Please help me .
i already puplished web app asp.net on iis local , firstly this app build on my local host but now different connection string to other local server , i ask how to publish this sql server on the new local server .
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abdalla ElawadRank #1,443 · 1.1K reputationPosted Aug 28, 2018, 12:43 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 27, 2018, 5:59 AM EDT
Mohammad SbeehRank #771 · 3K reputationPosted Aug 27, 2018, 6:15 AM EDT
First step you need to deploy your asp.net app to IIS
https://docs.microsoft.com/en-us/visualstudio/deployment/deploy-iis-with-web-deploy?view=vs-2017
Next step you need to Generate SQL Database Script
https://docs.microsoft.com/en-us/sql/relational-databases/scripting/generate-and-publish-scripts-wizard?view=sql-server-2017
Next you need to import this SQL Script
https://onlinehelp.coveo.com/en/ces/7.0/administrator/running_a_script_in_microsoft_sql_server.htm
Finally, you need to change the SQL Server Name and Database Name in web.confing in connection string on new server.
Connection string example
providerName="System.Data.SqlClient"
connectionString="Data Source=SQLInstanceServerName;Initial Catalog=DatabaseName;Integrated Security=True "/>
Abdalla ElawadRank #1,443 · 1.1K reputationPosted Aug 27, 2018, 11:47 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 28, 2018, 12:18 AM EDT