database-project

In the new Visual Studio 2010 SQL Server project type, what is the .dbproj.schemaview file for?

≯℡__Kan透↙ 提交于 2019-12-06 19:26:53
问题 And should I add it to the source code repository? 回答1: It is for state persistence for Schema View. The state of this view is saved locally, there is no need to add it to source code. The SQL Server project type has a special Schema View window and an extra Data menu item. Also the Solution Explorer gets two extra buttons: Database Schema View and Reanalyze Project . When the Schema View is open, 4 menu items under Data|Schema View are activated with the same functionality as 4 of the

Visual Studio 2012 - Database Project - setting a default profile for publish

吃可爱长大的小学妹 提交于 2019-12-06 16:43:11
问题 Just wondering if anyone knows how to set a saved publish profile as the default i.e. profile that's automatically loaded when I select publish. I love the new profile approach but I'm a bit over having to reselect the same profile over and over while I'm developing. 回答1: In VS2012 and up, you can set the Default Publish Profile by right-clicking on the .xml profile file and clicking the Set As Default Publish Profile option. It will then be auto-loaded when you click to Publish the project.

Setting DefaultDataPath and DefaultLogPath on Deploy in VS2010 Database Project

会有一股神秘感。 提交于 2019-12-06 05:23:28
To be true the following query is not originally mine, but I am facing the exact issue in my work. And thus copying the problem statement as it is. I am not able to find any solution. I would really appreciate any suggestions or highlights of the following Problem Set: I do not have any hardcoding in Schema Objects\Database Level Objects\Storage\Files - both in database and log files. The deployment script that gets generated when I click "deploy" from db project has hardcoding in :SETVAR with database and log file path assigned to $(DefaultDataPath) and $(DefaultLogPath) - see below: :setvar

Do I need the .dat file when I place a visual studio database project under version-control

半腔热情 提交于 2019-12-05 15:58:22
I have a visual studio 2008 database project that is under version control (git). I am getting conflicts in the project_name.dat when I try to merge my branches. So my questions ares: What is the project_name.dat file? Do I need it? That is can I leave it out of my version control No , you shouldn't have it under sourcecontrol as it's autogenerated. Offtopic but maybe useful: You should configure your VCS so that special files and folders will be ignored during your commit. I use Subversion in a Windows environment and the only thing to do is to put a file called config in %APPDATA%/subversion

Database schema compare options in Visual Studio 2013 - where to set global options?

拟墨画扇 提交于 2019-12-05 14:51:13
问题 I'm just in the middle of migrating my solutions from Visual Studio 2010 to Visual Studio 2013. I have this (maybe) silly problem with database comparisons options. I would like to exclude certain object types from comparison globally so that I don't have to do this every time. In Visual Studio 2010 those options were available in Tools -> Options -> Database Tools -> Schema Compare. I cannot find anything corresponding in Visual Studio 2013. 回答1: There isn't a corresponding option with the

VS2010 Database Compare. How do you create a *.DBSchema extensioned file?

Deadly 提交于 2019-12-05 10:10:29
I'd like to take a snapshot of my database, make some changes and then use the db compare functionality to identify the changes, and who knows, maybe even generate scripts to make the change. I'd like to avoid having to backup the current db and restore it as a separate db just to have a "before" snapshot. I'm guessing I shouldn't have to. Obsviously, I'm clueless about db projects and am looking to be pointed in the right direction. ty! On the machine which you will generate the schemafile, do the following: Download Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows Desktop .

Visual Studio 2010 - Database Project with imported database fails to build

谁都会走 提交于 2019-12-05 09:19:27
问题 I'm looking at the Database Project in VS2010, the idea being that I want something I can use to keep track of the database schema (in source control) and the ability to generate "new install" scripts, and change scripts. When I create a new database project wizard and import my existing database schema, it won't "build". I get the error: SQL03006: User: [scanner] has an unresolved reference to Login [scanner]. The SQL that generates this error: CREATE USER [scanner] FOR LOGIN [scanner]; The

How to Publish Visual Studio Database Project in VS 2015

女生的网名这么多〃 提交于 2019-12-05 01:25:10
I was unable to google this. We have an existing database project (sql server). Some new files (scripts) were added. We have an existing server / database where some new scripts need to be run into that context. In Visual Studio 2015, how can I accomplish this? I was told to stay inside Visual Studio 2015. Ideally, I'd like to issue one command vs one for each individual script. You have a couple of choices. The Publish option. This is a totally automated deployment of what's in the db project to the target server. Do this by right-clicking your project and selecting Publish. This option can

In the new Visual Studio 2010 SQL Server project type, what is the .dbproj.schemaview file for?

女生的网名这么多〃 提交于 2019-12-05 01:09:25
And should I add it to the source code repository? It is for state persistence for Schema View. The state of this view is saved locally, there is no need to add it to source code. The SQL Server project type has a special Schema View window and an extra Data menu item. Also the Solution Explorer gets two extra buttons: Database Schema View and Reanalyze Project . When the Schema View is open, 4 menu items under Data|Schema View are activated with the same functionality as 4 of the buttons in the Schema View window (a rather strange button in the Schema View window is the Solution Explorer

How can I script the deployment of a Visual Studio database project?

巧了我就是萌 提交于 2019-12-05 00:08:13
问题 How can I script the deployment of a Visual Studio database project? I have a DB project in visual studio and I would like to use it in order to deploy on remote machines via a script. I notice that when I 'deploy' from visual studio, it generates a .sql file. I intercepted this file and tried running it from the command line with osql.exe, but I didn't have any success. Should this work, is there a better way to deploy a database programatically from a database project, may be by referencing