Visual Studio copy existing database into MVC project for offline development - asp.net

I am using Visual Studio 2013 Community Edition for an ASP.NET MVC project which targets a database on an SQL Server 2012 instance.
I want to be able to continue development when not connected to the network so therefore need a copy of the database which I would have in my App_Data folder.
I have not come across a quick and easy solution to pull down a copy of the database into my project, which would include schema and data (the database I am working with is fairly small).
Is there anything already in Visual Studio which would allow me to take a copy and update when required? If not, what other methods are people using?
EDIT:
The full database engine is not installed locally, only the supporting applications SSMS, BIDS etc. The Express LocalDB versions are available as they were installed as part of the Visual Studio installation.

Related

Connect visual studio 2019 to xampp

I am a student and an apprentice developer. Currently I have been assigned a .NET core mvc project, the task I have to perform is to deploy the project on my own computer and test the CRUD.
I have a windows 10 on my machine. I have already installed visual studio code. For the database I use xampp - mysql.
I would like you to help me to connect visual studio with xampp to test the CRUD. Thank you very much. If you have a link or tutorials you can send them to me too. Thank you!!!
You can build data-driven apps using Object Relational Mapper (ORM) like Entity Framework Core or Dapper.
Both Dapper and EFCore work with many SQL databases like SQL Server, MySql, PostgreSQL, SQLite, and so on. You can pick the database of your choice.
For more information and tutorials you can visit the official documentation for EfCore on the Microsoft Docs website:
https://learn.microsoft.com/en-us/ef/core/
In order to deploy your .NET Core app, you can build your project in release mode and deploy it on IIS which comes pre-installed on a Windows machine. Refer to the following link to know more about hosting .NET apps on IIS:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0

Best practice and solution to migrating BizTalk 2006 application to BizTalk 2016 environment?

Is there any hidden tool from MS we can use for BizTalk application migration prior to load solution into VS2015 ? I need some information about what are characteristic we may need to change specially BizTalk.btproj solution to load all project file etc., wonder to know easy approach migrating BizTalk application solution if any.
As various blogs posts and MSDN threads you needed to have an intermediate Development BizTalk environment (BizTalk 2010) and then upgrading it to the later version like BizTalk 2013/R2 and up.
You can download the developer edition here and install the SDK so you can open it in Visual Studio.
The only other way to migrate is to create new BizTalk Projects in Visual Studio 2015 / BizTalk 2016 environment, and then copying the artefacts such as Schemas, maps and re-creating any Orchestrations.
In either case you will have to do extensive retesting as there are certain changes such as the XSLT compiled transform that may cause you issues
No need for a hidden tool. Visual Studio is the tool.
When you open a downlevel Solution, Visual Studio will attempt to update any project and provide a report of what was automatically updated and what could not be updated, requiring manual intervention.
You can do this on a copy of you Solution to get a preview of any work necessary for the real upgrade.
Coming from BizTalk Server 2006, you will need an intermediate version to eventually target BizTalk Server 2016. You can download BizTalk Server 2010 from MSDN. All you need to install is the SDK. You don't need to setup/configure full BizTalk Server.

SSDT 2013 is free for use in Company or need license?

in our company we still have SQL Server 2008 R2.
We use BIDS.
Can we use SSDT 2013? Is it a free tool? Or it needs a license?
Could not find this info on Microsoft site.
If it´s free, I need something to show Directors Board that we are not having problem using it.
Thanks!
First there is a difference between SSDT and SSDT-BI. SSDT is the database projects which lets you manage t-sql. SSDT-BI is for ssis, ssas, ssrs projects.
SSDT and SSDT-BI have merged to become one in the Visual Studio 2015 version but unless you are on sql 2012+ you will need to install the version of SSDT-BI that you need for your sql. If you are on sql 2008 r2 then that is actually SSDT-BI predecessor "BIDS".
If you are using SSDT-BI (or BIDS) just run the installer that comes with the version of SQL you are targetting and install from there, these are free and you pay a license to use the server (unless it is express ahhhhh).
If you are looking at SSDT database projects, then it is a little bit complicated in that SSDT itself is free but it is hosted inside visual studio so your options are:
Free as in no license cost
SSDT in Visual Studio Shell
If you do not have visual studio installed when you download SSDT it will install the visual studio shell which is a limited version of visual studio.
SSDT (DB tools) in Visual Studio Express
If you download and install Visual Studio Express you will get a copy of SSDT database tools (no BI). Downloading a later copy of SSDT will install it into Visual Studio Express.
Express and shell are limited in that you cannot add add-ins (vspackages) to them but they functionally work.
Not Free as in require a license
SSDT in Visual Studio Pro / Ent
If you already have visual studio professional or enterprise installed you will need a license for that. They ship with a version of SSDT and downloading the latest SSDT will install into it.
Free as in doesn't require a license but does have restrictions
SSDT in Visual Studio Community Edition
Visual Studio community edition is the same as professional but it is for community projects or small companies (current requirements, no idea if these ever change):
For organizations
An unlimited number of users within an organization can use Visual
Studio Community for the following scenarios: in a classroom learning
environment, for academic research, or for contributing to open source
projects.
For all other usage scenarios: In non-enterprise organizations, up to
five users can use Visual Studio Community. In enterprise
organizations (meaning those with >250 PCs or >$1 Million US Dollars
in annual revenue), no use is permitted beyond the open source,
academic research, and classroom learning environment scenarios
described above.
(Taken from "Visual Studio Community Edition" https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
Ed
Yes. It is free. All versions of SSDT are free as I can remember.
Please read https://msdn.microsoft.com/en-us/library/mt204009.aspx
Quoted:
"
SQL Server Data Tools (SSDT) is a modern development tool that you can download for free to build SQL Server relational databases, Azure SQL databases, Integration Services packages, Analysis Services data models, and Reporting Services reports. With SSDT, you can design and deploy any SQL Server content type with the same ease as you would develop an application in Visual Studio.
This release supports SQL Server 2016 through SQL Server 2005, and provides the design environment for adding features that are new in SQL Server 2016.
SSDT is based on Visual Studio and co-released with SQL Server as a free web download.
"

Web Deployment tools for Visual Studio 2013

I am responsible for supporting a relatively complex Website project written with .NET 3.5.
Previously I was using Web Deployment Project with Visual Studio 2010 to deploy this website but at the moment I have only access to Visual Studio 2013.
As far as I know, there is no longer such a tool to be used for deployment in Visual Studio 2013 and I do want to compile the code before deploying to the production server. As mentioned earlier, the project is a bit complex and this would not be easy to be converted to a Web Application.
Any idea?
Unless I missed it, unsure what the issue is - in VS2013, Publish is what you are looking for (either WebSite or Application).
What exactly do you mean by "none of the (vs 2013 publish) options worked"? What is/was the issue?
In one of your comments, you state you want to "pre-compile" (aka "don't want to upload .cs source files) and that's a setting in Publish.
You can Publish to your local file system: "Custom" -> File System:
This extension still exists for Visual Studio 2013: http://www.iis.net/downloads/microsoft/web-deploy
Little bit confused with the question because you are keep referring about website rather web application.
If you are looking to convert web site to web app then you need to follow this: http://msdn.microsoft.com/en-us/library/vstudio/aa983476(v=vs.100).aspx
Otherwise, if you are referring about the deployment project. Yes, it is no longer available.
I'd a very similar situation like you and Since 2013 I have stopped using any deployment project, instead I have started using Publish that creates a deployment package for you on a Network , FTP, Local Drive or even on Azure.
Here is a nice guide from Microsoft
http://msdn.microsoft.com/en-us/library/dd465323(v=vs.110).aspx
If you still want to go for Deployment Project, then you would need to go for "Installshield" limited edition,which is free (http://samirvaidya.blogspot.com.au/2013/11/how-to-enable-installshield-le-for.html).
http://msdn.microsoft.com/en-us/library/2kt85ked(v=vs.110).aspx

Getting Sql Server Data Tools to work with Visual Studio 2012 Express Release Candidate

I'm struggling with migrating to Visual Studio 2012 Express Edition to handle a project that includes a database project with a .dbproj extension. This blog http://visualstudiomagazine.com/blogs/data-driver/2012/06/getting-visual-studio-2012-and-ssdt-to-work-together.aspx gives the impression that with a bit of work this is all basically manageable.
First you have to convert the .dbproj to a .sqlproj in Visual Studio 2010.
I managed to install Visual Studio 2010. This allowed me to convert the .dbproj to a .sqlproj. From there the idea is to install Sql Server Data Tools (http://msdn.microsoft.com/en-us/data/tools.aspx) and open the sqlproj project in Visual Studio 2012, but I was unable to open the sqlproj in Visual Studio 2012.
I've tried the suggested repair from here http://blogs.msdn.com/b/ssdt/archive/2012/06/07/upgrade-issue-to-visual-studio-2012-rc.aspx and also the advice about repairing here http://social.msdn.microsoft.com/Forums/en-US/ssdt/thread/c66c2296-c94e-4f21-993e-7d3090a596a5, but no matter what I do I can't create or open a sqlproj type project in Visual Studio Express 2012 RC for Web. Does anyone know how to resolve this?
UPDATE:
This FAQ http://msdn.microsoft.com/en-us/subscriptions/hh322942.aspx makes it clear that you have to work with an SQL Server Database Project in Visual Studio 2010 Shell not in Visual Studio 2010 or 2012 for Web.
My problem now is that I can create a completely new project by importing SQL scripts manually and going from there, but when I open up the .sqlproj file and try to work with that SQL Server Project I get a lot of spurious errors from Stored Procedures which are in fact perfectly valid.
I got a clear answer from Microsoft here http://social.msdn.microsoft.com/Forums/en-US/ssdt/thread/c66c2296-c94e-4f21-993e-7d3090a596a5
Visual Studio Express 2012 for Web does not support the new Sql Server Data Tools. To work with a database project (converting from the old dbproj or creating a new project from scratch), you have to use Visual Studio 2010 Shell. The errors I got from Stored Procedures were caused because the sql scripts were not properly imported. The old dbproj had the sql scripts in arbitrary folders. The solution was to exclude all sql scripts from the project I had just converted from a dbproj, then re-import the sql scripts. When you do that, the project recognises them and doesn't raise errors.

Resources