- Newest
- Most votes
- Most comments
I would try testing with the following option /p:TableData=<table name>
Please mark this as the accepted answer if it is helpful in extracting the specific table, so that the re:Post community may benefit. Thank you!
Hi AWS-Eric, I used these two versions of the command and got these errors:
- ** SqlPackage /Action:Extract /TargetFile:result.dacpac /p:ExtractAllTableData=true /p:VerifyExtraction=true /SourceServerName:EC2AMAZ-DC3KDV1 /SourceDatabaseName:bank /SourceUser:sqldemopoc /SourcePassword:sqldemo1234@# /p:TableData=bank.BankInfo /sec:false**
ERROR: Connecting to database 'bank' on server 'EC2AMAZ-DC3KDV1'. *** Error extracting database:Argument 'ExtractAllTableData' has an invalid value:'true'. 'ExtractAllTableData' cannot be 'true' because individual user tables are also specified using the 'TableData' argument. Set 'ExtractAllTableData' to 'false' to extract data from the specified user tables. Time elapsed 0:00:00.17
- SqlPackage /Action:Extract /TargetFile:result.dacpac /p:ExtractAllTableData=false /p:VerifyExtraction=true /SourceServerName:EC2AMAZ-DC3KDV1 /SourceDatabaseName:bank /SourceUser:sqldemopoc /SourcePassword:sqldemo1234@# /p:TableData=bank.BankInfo /sec:false
ERROR: Connecting to database 'bank' on server 'EC2AMAZ-DC3KDV1'. Extracting schema Extracting schema from database Resolving references in schema model Validating schema model Validating schema model for data package Validating schema *** Error extracting database:Table with schema "bank" and name "BankInfo" was specified for data import or export, but does not exist in the database schema. Time elapsed 0:00:02.82
Relevant content
- asked 3 years ago
- asked 10 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
One more question I have why the DDL and DML commands (INSERT, DELETE, UPDATE, ALTER, DROP) etc. are not getting triggered using CI/CD pipeline for both .bacpac and .dacpac. I was expecting the changes would be triggered when exporting the data to .bacpac file but it is not true for the databases which has no tables and records.