VISUALSTUDIO2013&VS2015 built-in SQL Server Introduction (III)

Source: Internet
Author: User
Tags microsoft sql server

About the deployment of LocalDB (publish):

    • Use this machine to do the server (visually non-line)
      • Double-click the project's properties-->publish-->application files and you will find that there is no. mdf file, then the package should not have a database

  

    • Create a new. mdf and put in the project

To package with a database (with no data for the database framework), create a new project-->windows Form application,

Then Project-->new items-->service-based Database, get an. mdf and open datasources-->add new data with the original project Shift+alt+d Sources

Select Database->dataset->new connection->change->microsoft sql Server Database File->ok->browse-> Select the path to the. mdf file just now, all the way next,

Will remind you to copy the. mdf into the project, you must determine. Now open the first step again properties-->publish-->application Files, you'll find out more. Mdf&_log.mdf, so you can deploy the

    • deployment to carry. NET Framework and other things
      • Properties-->publish-->prerequisites, tick, and select the second download prerequisites from the same location as my Application

Then run will error (general), this time you can refer to the error description, inside will ask you to http://go.microsoft.com/fwlink/?LinkId=616018 see

The links above will tell you the general location of the framework installation package under VS2015, for example:

By default, the path was C:\Program Files\Microsoft Visual Studio 14.0\sdk\bootstrapper\packages on a 32-bit system and C + + Program Files (x86) \microsoft Visual Studio 14.0\sdk\bootstrapper\packages on a 64-bit system

      • TIP:
        • If the version is not VS2015, click Other versions under the title to switch versions
        • If the VS installation path is not the default, copy the version corresponding path and then look under the native vs installation path
      • The final goal is the next heap of packages, and then packaged into the installation package, the user installation if the lack of framework can be directly open the installation without downloading, but the disadvantage is that the package will be larger
      • The way to download the package, the main look to save, and then follow the path in the packages to find where the lack of what, missing words in the corresponding path of the product.xml inside to find, and then find the name corresponding to the things and download links, the next may be renamed, well, after you can deploy the

  

visualstudio2013&vs2015 built-in SQL Server get Started (iii)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.