How host the ASP Websites with Database? - sql

I have developed asp website using Visual Studio and i have SQL Database designed in SQL Management Studio. My query is how to deploy my website along with the database in Web.

There are multiple ways to do this with Azure and Visual Studio, I'm laying out the most common and simple scenario:
Deploying your ASP website with visual studio to an Azure App Service
Deploying your SQL database to Azure SQL
Connecting your ASP website to Azure SQL with connection string

You can deploy a Web Project Using One-Click Publish in Visual Studio
More details here https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

Related

How to deploy VB.net application that uses VS Studio for desktop 2012 and MS SQL Server Management Studio 2008

I'm actually done doing the small-scale application for our office, however, I really don't have any idea how to deploy this one. Can someone provide me any links on how to do this? This project will be deployed in one pc.
If its a Windows application you need to create a setup project.
If its a web based application, install your application on your web server and provide clients with the appropriate link.

How to connect visual web developer (website) with SQL Server 2008 for website designing?

Am new for designing portal using visual web developer 2010 express edition. Almost i have finished designing work for a website. And, now i want to connect with database. but i dont know how to do that. So can anyone help me on this. Specifications are below
Visual web developer 2010 express edition
SQL server 2008

Web Deploy does not update SQL database schema changes

I am newer to Visual Studio 2012 and MVC4, and have a development project of a website using C# and MVC4 and SQL server 2012.
The Publish using web deploy works for the website portion of the project, but it does not automatically update the database portion (schema). If I right click the database portion of the project in VS2012 and click Publish, then the database schema is updated properly. I am only interested in schema updates. What could be wrong?
I programmed my development system to use Web Deploy 3.0. Here is a summary of my configuration:
Computer running win8 x64
SQL Express 2012 as my database server, running as the default instance (i.e. at localhost, NOT as .\SQLEXPRESS)
IIS Express 8 as my webserver, using the "Default Web Site" site (localhost)
Visual Studio 2012 Pro using MVC4 and C#
Web Deploy 3.0
The latest dates are all applied to the software
I programmed an SQL server user WDeployAdmin for managing the database updates and gave it full permissions over the database being used for the website. I also tried using Integrated Security (my administrator login) but that does not help.
I can correctly update the Default Web Site (views and controllers etc) using the Publish feature in VS2012 which uses Web Deploy 3.0.
When I use the Test Connection feature of the publishing setup options, it correctly connects to the database, and that certainly works fine when I do a separate Publish DB operation (right-click DB project, click Publish, and then pick my profile) for that part of my project.
So why doesn't the standard website Publish feature include the database schema updates? The standard website Publish always shows an empty change to database when the schema changes (e.g. a table or a stored procedure).
I have read through much MS docs but nothing is apparent to me.
Any help is appreciated,
Bruce

Visual Studio 2012 Express for Web Publish Database?

I need to deploy my database to a shared hosting enviroment and cannot use a file-based connection. The Database "Publish To Provider" option is not available anymore in VS2012 Express. I used to work with it in VS2010 and it was very handy. Is there any workaround to this in VS2012 Express? I know can use SQL Management Studio to generate the scripts but i'll have to attach the database for each project as i usually keep my databases in each project's App Data folder. There are also the SSDT but they don't work for VS express editions.
Thanks in advance.

SQL Azure via Visual Studio

Does anyone know when a tool will be available to manage a SQL Azure database from within Visual Studio or SQL Enterprise Manager?
At present one can only cannect via:
1) SQL Management Studio (SSMS)
(The cancel and connect via new query method)
2) Azure Storage Manager: http://azurestoragemanager.codeplex.com/
3) SQL Azure Migration Wizard: http://sqlazuremw.codeplex.com/
4) Custom Application
I have gone down the custom route, an application that basically runs scripts within different folders to Update Tables and Stored Procesures etc.
Plus:
SQL Azure Explorer on Codeplex - free and with source code (addin for VS2010 Beta1)
Cerebrata Cloud Storage Studio - Winforms app to browse SQL Azure
Cerebrata Omega.MSSQL browser-based admin of SQL Server including SQL Azure (see announcement in blog post here)
Marc
Few corrections below:
Cloud Storage Studio is for managing Windows Azure Storage (Tables, Blobs & Queues) and not SQL Azure.
Omega.MSSQL is for managing SQL Server (2008/2005/2000) via a browser based interface (IE only). We customized Omega.MSSQL to work against SQL Azure. That customized version is available online only. To read more about it and access the application please visit this link: http://cerebrata.com/Blog/post/Browser-based-SQL-Azure-Explorer.aspx
Haven't tried personally, but according to the SQL Azure team the November CTP of SQL Server 2008 R2 has a version of Management Studio that will allow direct connections to SQL Azure without having to do the cancel/connect workaround:
http://blogs.msdn.com/ssds/archive/2009/11/10/9920168.aspx