Comments (3)
Have you tried creating the database in advance?
from dacextensions.
It took me a while but after creating the database first, it seems to work OK. I guess I should raise an issue against the docs in that case!
from dacextensions.
@lukos I see that you closed this - but I noticed that you're using sa to run sqlpackage here so the database would be created by the import action.
My guess is that the engine hasn't finished starting up (despite the stackoverflow method).
For what it's worth, my preferred method of checking that the engine is ready to run queries is using sqlcmd to run something like "select * from sys.databases" in a limited loop until it responds. I've been doing this in the past prior to publishing dacpacs and just tested it with importing a bacpac without an issue.
https://github.com/dzsquared/sql-development-tools/blob/main/.devcontainer/mssql/postCreateCommand.sh
from dacextensions.
Related Issues (20)
- Where to report bugs from Microsoft.SqlServer.TransactSql.ScriptDom.dll?
- Updated docs?
- DAC incorrectly sets containment type = Partial when restoring to SQL 2019 instance HOT 6
- Running .NET Core SqlPackage from a Linux Host against a Windows-based SQL Server results in errors HOT 1
- Running DacServices.Extract() from a .NET Core 3.1 application results in errors
- SqlPackage `CREATE function` casing issues
- Contributor DLL in DACPAC package folder does not load automatically HOT 1
- .NET Core - Unable to register data tier application HOT 1
- Import bacpac: Object reference not set to an instance of an object. HOT 1
- How to add DML scripts to DacPackageExtensions.BuildPackage(...) HOT 1
- sqlpackage publish fails to create views in correct order (view on view) HOT 3
- Publishing a DACPAC to a database ignores master.dacpac same directory HOT 3
- Exception when extracting a database into a DACPAC as impersonated user
- Deploying Dacpac's via Powershell using Service Principals HOT 3
- IgnoreColumnOrder not working with temporal tables HOT 3
- DacServices.ExportBacpac: Intermittent errors when extracting a package from a database with numbered stored procedures HOT 8
- Error when building SSDT Rules Test cases on linux HOT 1
- How to install Extension into Visual Studio by VSIX?
- This repo is missing important files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dacextensions.