database-project

Setting DefaultDataPath and DefaultLogPath on Deploy in VS2010 Database Project

谁都会走 提交于 2019-12-22 16:29:54
问题 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

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

好久不见. 提交于 2019-12-22 07:11:41
问题 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! 回答1: On the machine which you will generate the

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

北城以北 提交于 2019-12-22 07:11:14
问题 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! 回答1: On the machine which you will generate the

How to Publish Visual Studio Database Project in VS 2015

不打扰是莪最后的温柔 提交于 2019-12-22 02:24:19
问题 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. 回答1: You have a couple of choices. The Publish option. This is a totally automated deployment of what's in the db

How to Publish Visual Studio Database Project in VS 2015

痴心易碎 提交于 2019-12-22 02:24:07
问题 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. 回答1: You have a couple of choices. The Publish option. This is a totally automated deployment of what's in the db

Creation of default data in Visual Studio database projects / SQL Server

ⅰ亾dé卋堺 提交于 2019-12-21 17:16:33
问题 Are there way to using data generation plans in VS 2010's database projects to create a set of default data? Or am I barking up the wrong tree i.e. are data generation plans best suited to create dummy example data? We have a bunch of data (default settings, default users etc etc) that needs to be created for each database deployment. It would be nice to have tooling to help us with this, so it can be source controlled and better managed. I'm guessing that there are probably third party

Unresolved References to Same Database Project

谁说胖子不能爱 提交于 2019-12-21 07:50:10
问题 I've created a SQL Server database project in Visual Studio 2013 and imported a DACPAC taken from a production database. When I tried to build the project I get hundreds of SQL71501 and SQL71561 errors (both of which are "unresolved reference to an object"). Examining the scripts the problem is that many views and stored procedures use three part names: [database].[schema].[object]. It appears that Visual Studio 2013 throws this error whenever it comes across a three part name that includes

How to publish DACPAC file to a SQL Server database project via SQLPackage.exe of SSDT?

我是研究僧i 提交于 2019-12-21 03:51:05
问题 I'm using SSDT for Visual Studio 2012 here and using its command-line tool SQLPackage.exe to publish a .dacpac file. I want to publish that to an SQL Server database project . I'm trying to use parameter at this guide but cannot find ways how to do it. How can I do that? 回答1: Are you trying to publish to a Database, or create a database project from a dacpac? These are two different things. To create a database project based on a dacpac, create a new SQL Server Database Project in Visual

How to properly manage database deployment with SSDT and Visual Studio 2012 Database Projects?

谁都会走 提交于 2019-12-20 07:58:21
问题 I'm in the research phase trying to adopt 2012 Database Projects on an existing small project. I'm a C# developer, not a DBA, so I'm not particularly fluent with best practices. I've been searching google and stackoverflow for a few hours now but I still don't know how to handle some key deployment scenarios properly. 1) Over the course of several development cycles, how do I manage multiple versions of my database? If I have a client on v3 of my database and I want to upgrade them to v8, how

EF Reverse POCO against a SQL Database Project?

断了今生、忘了曾经 提交于 2019-12-20 03:31:12
问题 Can I use the EF Reverse POCO generator directly against a SQL Database Project? I keep my SQL database definition in a "Visual Studio SQL Database Project", which gives me some nice version control capabilities, schema comparison, and a few nifty deployment features. Sometimes I update the project files from a temporary database during development, but the version-controlled project is always the "truth" for any version. If I use the EntityFramework Reverse POCO Code First Generator, will I