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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abdalla ElawadPosted Aug 28, 2018, 4:43 AM
Jignesh KumarPosted Aug 28, 2018, 4:18 AM
Abdalla ElawadPosted Aug 28, 2018, 3:47 AM
Mohammad SbeehPosted Aug 27, 2018, 10:15 AM
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 "/>
Jignesh KumarPosted Aug 27, 2018, 9:59 AM