57 questions
0
votes
0
answers
41
views
In Grate, why do database modifications appear in RunScript but the version in grate version stays the same?
I'm testing Grate for deployment database migrations, and I noticed something I'm not sure about.
When I modify the database (e.g., create new tables, alter tables, insert data):
I see new records ...
0
votes
1
answer
99
views
How to deploy Azure CI/CD to deploy solution that has 2 sqlproj
I have CI/CD pipeline that deploy .Net MVC Web App to web Server.
The release task has
"D:\Deployments\sqlpackage-win-x64-en-162.2.111.2\sqlpackage.exe"
/a:publish /targetservername:test....
1
vote
1
answer
577
views
Azure SQL Database Deployment "ALTER DATABASE failed because a lock could not be placed on database"
I've gotten myself a little stuck.
We've been using Azure DevOps release pipelines to deploy DacPacs to all our internal test database environments. Some of these are Azure SQL databases, and others ...
10
votes
2
answers
1k
views
Cannot Edit Database Connection String in Visual Studio 2022
I have a very unusual bug when trying to connect to a live Azure database via Visual Studio 2022 (17.5.0) using the following connection properties:
Encryption = true
Trust Server Certificate = true
...
2
votes
1
answer
2k
views
How to script and load assemblies list to SQL Server?
My SQL CLR procedure depends on log4net, it depends on System.Web.dll.
When I upload this System.Web.dll :
create assembly [System.Web]
from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web....
0
votes
1
answer
927
views
deploying Prisma with Nuxt on heroku
I have spend several days now trying to figure out why my back-end is not working on the online version of my app. I created a Nuxt project that uses Prisma for a very small and simple database.
I had ...
0
votes
0
answers
464
views
How do I prevent database triggers from being deployed in Azure DevOps when I deploy a DACPAC as part of a release pipeline?
So I figured out how to disable the triggers from being part of a DACPAC, but unfortunately that's just a user level setting in Visual Studio, so I can't save it to source control and deploy the ...
0
votes
1
answer
868
views
How do I exclude database triggers from a DACPAC project created in Visual Studio?
I have a database project in Visual Studio, and I need to exclude the database triggers from the generated DACPAC, because one of them is LockdownTriggers which prevents triggers from being altered - ...
0
votes
0
answers
512
views
Azure DevOps dacpac release on SQL database with Always Encrypted
I have an SQL database in Azure with always encryption enabled (master key in Azure key vault) to encrypt the data in a particular table. Azure DB is on version Azure SQL Database v12.
Somehow, I am ...
1
vote
1
answer
1k
views
how to deploy asp.net website in intranet- Copy paste folders
I am new to web developing and some how managed to create one web page with SQL database. Now I would like to deploy my website in localhost server by that users who are having access to that server ...
1
vote
1
answer
5k
views
When relating two tables, should you do a composite key, or primary/foreign key separately?
What is the industry design standard for representing the relationship between two tables? Should you use a composite key, or a primary key and foreign key separated? Are there performance differences ...
-2
votes
1
answer
64
views
Visual Studio 2015 Database project
I need to exclude some tables from publishing in a database project, the main idea is to publish only a subset of tables depending on the build configuration, if it's Debug I want to publish all the ...
1
vote
3
answers
2k
views
VSTS build - Incremental database deployment in distributed environment
I have a sql server database working with a .net 2015 mvc 5 application. My database code is source controlled using SSDT project. I am using SqlPackage.exe to deploy database to the staging ...
0
votes
1
answer
142
views
Using SSDT is it possible to have only selective scripts/objects maintained rather than maintaining the whole database?
Is it possible for me to have a database project to maintain "only" a selective list of DB-objects or scripts rather than importing the entire/whole database?
I am tasked with writing an integration ...
0
votes
0
answers
70
views
How to use SSDT to maintain "changes only" for a subset of a database and not a "whole" database?
Off late, I am searching the internet for a custom solution to automate SQL server database changes deployment. Can I use SSDT to just maintain changes to the database rather than creating a database ...
0
votes
1
answer
2k
views
Examples or Tools for SQL server database deployment automation
Off late I am searching the internet for an automated solution for SQL server database deployments primarily to avoid manual steps of maintaining and deploying sql scripts for deployments.
My ...
0
votes
1
answer
41
views
How do you organise 1 VS Team Services release definition for separate app and db deployment?
I have 2 different Visual Studio solutions. 1 for my asp.net web application and 1 for my database (dacpac). I have included the required deployment tasks under 1 release definition in order to ...
0
votes
1
answer
385
views
How to synchronize deployments (especially of database object changes) on multiple environments
I have this challenge. I am the DevOps engineer and a software engineer in a team where months back, the developers moved from having a central Oracle DB to having the DB on a CentOS VM on their ...
-1
votes
1
answer
160
views
Which tool for database vesioning to use? liquibase vs mysql binary logs [closed]
I'm trying to build a process of refactoring, testing and deployment of my databases. After some kind of research I found liquibase as a nice tool for managing my database versions. As well similar ...
1
vote
1
answer
714
views
modify encoding for database deploy script
Is there a way to change the encoding for the deploy script generated by Sql Server Data Tools from UTF-8 to ANSI?
The problem that I have is that I have a string in a function that contains the ...
0
votes
1
answer
1k
views
SSDT/ VS2015 Database deployment -- publishing is ignoring nested views
I am attempting to gain some knowledge and use cases on SSDT Database development and deployments and strugling with some deployment issues.
Specifically when using nested views. For some unknown ...
2
votes
1
answer
300
views
How to run database sql script in appHarbor SQL Server
I have successfully deployed my asp.net web form application on appHarbor and also installed SQL Server.
But I don't know how to make database as I could not find any query box of shell where I can ...
0
votes
1
answer
52
views
How to provide an option in a Setup project dialog box where the user can choose the instance names from the local machine or a server?
Suppose I have a dialog box for giving an instance name and I want to see what are the other instances available in the local machine or the server and what if the user has both SQL Server 2005 and ...
1
vote
1
answer
881
views
Can a mysql backup be transfer by copying and pasting data files from the mysql dir?
I need to reformat my computer and reinstall the OS. I have plenty of databases that are connected to sites running on my XAMPP stack. If I copy an paste the data files from the mysql folder into a ...
1
vote
2
answers
798
views
Custom script files in VS2012 Sql server project
I am supposed to migrate a database into VS2012 sql server project. I have already imported all the schema from the target database. The seed data will be added to the a Post-Deployment script in the ...
59
votes
5
answers
95k
views
SQL Server 2008 R2 Stuck in Single User Mode
Having executed a DB deploy (from a VS SQL Server database project) on a local database, which failed, the database has been left in a state where it has single user mode left on (the deploy runs as ...
0
votes
1
answer
337
views
Code first migrations - how to rollback first migration
Using code first migrations it is trivial to migrate to any given migration by using -TargetMigration [MigrationName].
But how do you rollback to before the first migration? What migration do you ...
5
votes
2
answers
4k
views
DACPAC not including composite objects
I have a VS2012 database project which includes tables, stored procs, views etc.
I then have a second database project which contains a database reference to the first project. I have ensured that ...
1
vote
1
answer
326
views
Deploy database project without knowledge of target database
I've got a question. I'm used to using Teamcity + Database project which was able to deploy the database to all of the DTAP servers. I loved the way that worked - it allowed me to deploy to production ...
14
votes
3
answers
11k
views
What is the syntax for adding multiple arguments onto the "Variables" parameter in sqlpackage.exe?
I am using SqlPackage.exe for my deployment. I have read the documentation here for the usage of SqlPackage.exe.
The documentation only states the synax for one variable:
Specifies a name value ...
1
vote
1
answer
595
views
what is the risk of using sparse columns instead of normal relational tables?
I have three table that related to one table,in my new design I want to replace the relationship by using sparse columns.
you Can see diagram below.
I know I would have Redundancy.but i want to know ...
2
votes
1
answer
2k
views
Port number that SQL database project uses for deploying database
I want to know which port number uses a dbproj(Database Project) in visual studio 2010 to deploy a database in a remote server or how can I find that info
thanks!
1
vote
1
answer
1k
views
How to limit post deployment script to run only once in Visual Studio database project
We have a post deployment script in our visual studio database project. It populates lookup tables with data. The problem is that every time we change schema and generate update script, post ...
6
votes
0
answers
3k
views
Visual Studio Database Deployment - Script not running in SQLCMD mode
I have a SQL Server 2008 Database Project that I'm attempting to deploy using Visual Studio 2010. When I click deploy, the build works fine, but after it creates the deployment script and begins to ...
5
votes
1
answer
2k
views
How do you prevent a VS2010 Database Project Deployment from generating a drop database?
Suppose you have a database project and you do NOT have "Always re-create database" checked off in your Database.sqldeployment settings. And suppose you deploy to a server that already has a database ...
4
votes
1
answer
5k
views
Update database feature not working in Publish Web dialog in Visual Studio 2012
I'm developing an ASP.NET Web Forms application under Visual Studio 2012. I'm using Web Deploy and Publish Web dialog for application deploy. I'm trying to deploy a database schema using the Update ...
0
votes
1
answer
366
views
VS 2010 Database Project deployment is not deploying indexes
I have a database project in Visual Studio 2010 that deploys tables and stored procedures to the server without issue. However, none of the index scripts get included in the sql output script and ...
5
votes
4
answers
1k
views
Execute SQL Script with .net executable
I have a c# .net application that has been distibuted separately to several clients, Once in a while we add some new features or fix some bugs and frequently make changes in the DB. I use click once ...
0
votes
2
answers
237
views
Distributed Database
I NEED YOUR HELP
ANY IDEA ANY SOLUTION
SCENARIO:
An organization suppose Jason industries have its branches in different regions of country. In each branch there is a local database where they ...
3
votes
1
answer
5k
views
Deploying database and web projects during TFS build process
I have a mixed solution with a couple of Web applications and SQL Database projects.
I also have a remote test server with MS SQL 2012 and IIS 7. The TFS build server is on another machine. All the ...
0
votes
1
answer
447
views
How do I troubleshoot when VSDBCMD does not deploy, but shows no errors?
I am trying to use VSDBCMD.exe (Visual Studio 2010 version) to deploy the output of a database project. I am including the /dd:+ switch in my command line. Every time I run the command, I get one ...
1
vote
0
answers
178
views
Database project generate deployment script without any database creation
This may be a stupid question or it might be that I am just not googling with the right strings. I am trying to have my database project generate a deployment script that does not contain any create ...
1
vote
1
answer
331
views
Deploy a database project build output (dbschema & co) to various databases
I am trying to build a database project, and then use the output along with VSDBCMD to deploy it to different databases. I have added different sqldeployment & sqlcmdvars files corresponding to ...
3
votes
1
answer
6k
views
How does an Entity Framework .edmx.sql file generate database in a deployed application?
I'm building a c# application in Visual Studio 2010, that uses database.
To create the database I used Entity Framework model-to-databse approach.
So in VS i added a "ADO.NET Entity Data Model" file, ...
1
vote
4
answers
433
views
VS1010 Database Projects and reference data scripts
Just wondering the best way to handle the following....
I want to have a VS2010 database project to keep the schema of my database in the dev, integration test and production environments in sync.
...
0
votes
1
answer
2k
views
How to Deploy Database in Application Installtion
I have an application which uses Sql Server Express Edition to store data. I have a database with 8-10 tables in it. I have mdf and ldf file with me. Now i want to install my application in some other ...
0
votes
1
answer
556
views
How to make database name a parameter on deploymanifest?
I am trying to customize default TFS build process by adding a step where a database is deployed using the database project. I followed [these steps][1] and the DB deployment works when the database ...
1
vote
2
answers
2k
views
TFS2010 Team build - how to deploy databases before running unit tests
I followed How to prepare database for TFS deployment walkthrough
and my build script successfully deploys the database at the end of the build process. However, I need the database to be deployed ...
3
votes
1
answer
2k
views
TFS build - VSDBCMD.EXE cannot find deploymanifest
I have the following problem.
I am trying to customize default TFS build process by adding a step where a database is deployed using the database project. I strictly followed these steps, the only ...
3
votes
2
answers
1k
views
How to deploy my application if it requires a database with tables created?
I was previously using a database in SQL Server CE. That's kind of easy, because I can have a database in a simple .sdf file and deploy it with my application (either empty or with data already added)....