83 Commits

Author SHA1 Message Date
Steven Marturano
18c6145647 Updated TDE NuGet and contracts (#2242) 2023-09-14 21:16:37 -04:00
Siyang Yao
f32e00df48 [SqlAssessment] upgrade SQL Assessment NuGet including multiple fixes (#2231)
* upgrade SqlAssessment NuGet

* replace old nuget with new one

---------

Co-authored-by: Siyang Yao <siyao@microsoft.com>
2023-09-11 13:29:25 -07:00
Benjin Dubishar
25c18d3390 Query Store Service (#2171)
* Checkpoint

* Checkpoint

* Checkpoint

* checkpoint

* Hooking in calls to QueryExecutionService

* adding cases

* Fleshing out report handlers

* Adding parameter converters

* Adding sqlparam declarations for Top Resource Consumers and Forced Plans

* swapping to object-object to centralize conversion for sqlparams

* Adding sqlparams for GetTrackedQueries

* Added sqlparams for High Variation

* Added Overall ResourceConumption

* Adding params for regressed queries

* Removing WithWaitStats calls, since they're automatically used within QSM when waitstats is an available statistic#

* Adding PlanSummary handlers

* cleaning up orderable queries

* initial test mockout

* adding basic (incorrect) parameter translation

* first test passing, datetimeoffset swapped to ISO format

* Adding test baselines

* Updating nuget package

* Adding get/set

* Adding get/set for result object

* Switching to parameter-less constructor

* Swapping TimeInterval for string-based BasicTimeInterval

* Removing unnecessary usings

* Adding back params comments

* Fixing up request docstrings

* comment tweak

* fix tests failing in pipeline because of line endings not matching

* removing unnecessary usings

* Setting tests to generate queries in UTC for test stability

* Normalizing line endings

---------

Co-authored-by: Kim Santiago <kisantia@microsoft.com>
2023-09-01 10:56:39 -07:00
Steven Marturano
dc91e1ecf0 Updated TDE NuGet to 1.0.0-preview.1.0.20230720.98 (#2157) 2023-07-31 14:29:27 -04:00
Z Chen
325f49ff20 Update DacFx to 162.1.80-preview and Projects to 0.1.11-preview (#2149)
* Update package versions

* Use projects 0.1.11-preview
2023-07-18 16:46:58 -07:00
Kim Santiago
a12244f3d0 Add support for adding system db references as PackageReference (#2078)
* Expose adding system db references as PackageReference

* update nuget
2023-06-01 11:38:28 -07:00
Benjin Dubishar
c59211b31b Bumping Projects nuget (#2072) 2023-05-19 12:49:22 -07:00
Benjin Dubishar
b9d6657886 Updating DacFx.Projects to bring in UpdateSqlCmdVariable fix (#2045)
* checkpoint

* typo

* removing old nuget
2023-05-08 11:06:35 -07:00
Benjin Dubishar
c21203c5c2 Adding ability to only load properties and metadata for a SqlProject (#2040)
* Adding property quick-loading

* Remove whitespace
2023-05-03 18:44:17 -07:00
Benjin Dubishar
c5cdc4712a Adding move and exclude folder to SqlProjectService (#2027)
* Adding move and exclude folder

* Fixing cross-plat path bug in test
2023-04-21 11:46:11 -07:00
Benjin Dubishar
006488340c Updating DacFx.Projects to 162.0.28 (#2019) 2023-04-19 20:12:56 -07:00
Kim Santiago
13672c1d05 Add support for nupkg database references in sql projects (#2006)
* add support for nupkg database references in sql projects

* update DacFx.Projects
2023-04-14 16:18:06 -07:00
AkshayMata
909c8c4d10 Update to nuget with serializable error code strings (#1998)
https://github.com/microsoft/sqltoolsservice/pull/1998
2023-04-07 16:38:39 -07:00
AkshayMata
7f65b9c5ee Add login migrations error code (#1988)
Update login migrations nuget to expose error code + error code string
2023-04-04 15:04:38 -07:00
Steven Marturano
ffa42b4435 Added status code for TDE result (#1975)
This PR updates TDE NuGet and makes code changes to support the introduction of "StatusCode" being returned from NuGet.
2023-04-03 13:30:08 -07:00
Benjin Dubishar
8b7600eb5b Bumping DacFx.Projects (#1963)
* Updating Projects nuget package

* bump projects
2023-03-23 20:49:53 -07:00
Benjin Dubishar
b4781cf267 bump tools service (#1954) 2023-03-20 18:52:33 -07:00
Benjin Dubishar
ce731f7fe4 Updating Projects nuget package (#1950) 2023-03-17 07:28:52 -07:00
Benjin Dubishar
0b8d10009a Updating version of DacFx.Projects nuget (#1913) 2023-03-06 19:50:21 -07:00
AkshayMata
bfa64750d8 Update login migrations nuget (#1893)
Updating login migrations nuget to include change to expose error code.
2023-03-02 15:08:38 -08:00
Benjin Dubishar
38836371ed Adding missing properties to GetProjectProperties call; also renaming NoneScript to NoneItem (#1890)
* Renaming NoneScript to NoneItem

* missed a file

* Fixing comments

* Adding ProjectStyle to properties

* Projects nuget bump

* Adding DatabaseSchemaProvider to the props
2023-03-02 13:52:35 -08:00
Raymond Truong
5f78eaa41f Update assessment NuGet (#1889) 2023-03-02 12:21:47 -08:00
Benjin Dubishar
68ac1e01fc Adding project property support to SqlProj service (#1883)
* Nuget update

* Updating nuget

* implementation

* GetProperties test

* Adding SetDatabaseSource

* adding comment

* Nuget update

* PR feedback

* Fixing cross-plat path tests

* Updating to signed nuget

* fixing None test
2023-02-28 18:27:42 -08:00
Benjin Dubishar
d0d67373d1 Adding support for database literal references for Dacpac and SqlProj references (#1858)
* fixing up some nullable spots

* Adding database literal support

* Adding tests and support for same database refs

* Fixing test

* merge laggard

* Split database reference tests up

* PR feedback

* Normalizing strings for cross-plat test passing

* Updating Projects nuget package

* Fixing up test
2023-02-10 11:36:31 -08:00
AkshayMata
c2a361b2bf Update login migrations nuget to return error codes (#1850)
Updated login migrations to return error codes
2023-02-08 12:57:51 -08:00
Benjin Dubishar
19935552b1 Adds support for checking and updating cross-compatibility for SQL Projects (#1847)
* Adding cross-platform check and update

* Checkpoint

* checkpoint

* Updating for latest nuget package

* Correctly typing the result object
2023-02-07 19:06:13 -08:00
Benjin Dubishar
9cce26fcbd Initial check-in of SqlProjects service addition to SqlToolsService (#1805)
* initial commit

* Initial SqlProjects service + tests

* Added SqlObject script tests; PR feedback

* Added comments for contracts

* Swapping SqlProjectResult for ResultStatus

* Updating tests

* Added automatic test base that provides a working directory and automatic cleanup.
2023-01-25 14:16:15 -08:00
junierch
18827b1a9b update tde pkg (#1817) 2023-01-20 14:57:39 -05:00
junierch
f99bda29b5 Tde migration integration (#1806)
Adding certificate migration for encrypted databases.

Uses notifications to send events back to the client every time each database certificate is migrated.
2023-01-11 18:20:00 -08:00
AkshayMata
996e30cd7f Update login migrations nuget with perf improvements (#1789)
* Update login migrations nuget with perf improvements

* Add new nuget

Co-authored-by: Akshay Mata <akma@microsoft.com>
2022-12-16 13:14:27 -08:00
AkshayMata
c528617e18 Akma/login migrations (#1728)
In this PR, we make the appropriate backend service changes in order to enable the login migrations feature in the SQL migration extension.

Changes include:

updating the Microsoft.SqlServer.Migration.Login NuGet version to the latest version
adding a new request handler for StartLoginMigrations calls, which makes the appropriate calls to the login NuGet
adding ExtensionMethod helper to properly combine exception maps login migration nuget calls

Co-authored-by: Akshay Mata <akma@microsoft.com>
2022-11-04 21:18:48 -07:00
Raymond Truong
783ea39e8a [SQL Migration] Upgrade Microsoft.SqlServer.Migration.Assessment (#1734)
* WIP - update NuGet and add xevent assessment request

* Update API

* Update nupkg to official build

* Add try/catch around individual recommendation models

* Clean up

* Add HS to SQL DB SKU recommendation input
2022-11-01 09:29:59 -07:00
Cheena Malhotra
c0f8482e26 Update Microsoft.Data.SqlClient to v5.0.1 (#1708) 2022-10-24 20:10:04 -07:00
Kim Santiago
6b33b43d2d update Microsoft.SqlServer.Migration.Assessment to 1.0.20220816.40 to lower System.ComponentModel.Composition dependency to 4.6.0 tfix sql project build failing in ADS (#1642) 2022-08-16 21:37:41 -07:00
Raymond Truong
091f2c942e [SQL Migration] Update assessment NuGet version, removing the need to check in content files into STS (#1617)
* Update NuGet version and remove metadata

* Remove Content Include from csproj

* Remove unnecessary PrivateAssets tag

* Use official NuGet build

* Remove reference in IntegrationTests
2022-08-08 11:17:38 -07:00
Raymond Truong
0c37dc50f9 [SQL Migration] Update assessment NuGet version + mark GAed VM SKUs as non-preview (#1510)
* Update assessment NuGet version and metadata

* Consider Eb VM SKUs without preview flag as they are now GAed

* Update assessment NuGet to 1.0.20220527.33
2022-05-31 14:54:29 -07:00
Neetu Singh
d704a84740 Update Assessment package. Change Description from PR - https://msdata.visualstudio.com/Database%20Systems/_git/sql-migrate-asmt/pullrequest/747674 (#1407)
Updated the E-series VM IOPS, throughput capability based on ms doc as rest endpoint giving very low number on throughput particularly.

Updated only for SKUs with local disk.
Haven't checked if D-series has similar problem, however it wouldn't cause problem as we are not showing any Dev-test recommendation for ADS.
Note : Mostly, any other mismatches wouldn't be relevant for prod recommendations.
msdoc reference : https://docs.microsoft.com/en-us/azure/virtual-machines/edv5-edsv5-series
2022-02-11 17:31:38 -08:00
Raymond Truong
1693843ab0 [Feature] SKU recommendations in SQL migration extension (#1399)
* Initial check in for SQL migration SKU recommendation feature (#1362)

Co-authored-by: Raymond Truong <ratruong@microsoft.com>

* Integration test for Get SKU Recommendation. (#1377)

* Integration test for Get SKU Recommendation.

* Addressing comments -
1) Moving sample files to data folder.
2) Changed Assert for Positive Justification. Ideally for MI we are expecting ~6 justifications but this might change so sticking with 'recommendation should have atleast one positive justification'.

* Implement start/stop perf data collection (#1369)

* Add SqlInstanceRequirements to SKU recommendation output (#1378)

* test for data collection start and stop (#1395)

* improve error handling, add RefreshPerfDataCollection  (#1393)

* WIP - refresh data collection

* Capture messages before logging

* Update Microsoft.SqlServer.Migration.Assessment NuGet version (#1402)

* Update NuGet version to 1.0.20220208.23, update assessment metadata

* Update SKU recommendation metadata

* Include preview SKUs

* Clear message/error queue after refreshing

* Clean up

* Add 'IsCollecting' to RefreshPerfDataCollection (#1405)

Co-authored-by: Neetu Singh <23.neetu@gmail.com>
2022-02-10 19:02:27 -08:00
Aasim Khan
6f5cac4cb5 Adding a flag for migration blocker flag in sql assessment and switching to new APIs (#1242)
* Adding a flag for migration blocker in sql assessment and switching to new APIs

* Fixing var names
2021-09-08 15:15:56 -07:00
Christopher Suh
0032cc684b Update Assessment Nuget Package (#1221)
* update nuget package

* point to new assessment nuget version

* cleanup
2021-07-15 15:28:34 -07:00
Christopher Suh
ae9ec03018 Update Assessment Nuget to Enable Logging (#1215)
* wip

* updated nuget package

* removed unused nuget

* updated assessment nuget to add logging

* added logs filepath'

* updated assessment nuget

* updated nuget
2021-06-15 10:49:20 -07:00
Christopher Suh
21527637dc Update Assessment nuget (#1209)
* wip

* updated nuget package

* removed unused nuget
2021-05-11 15:26:13 -07:00
Christopher Suh
0a1ee88a12 Bumped Migration Assessment Version (#1179)
* bump migration assessment nuget

* upgraded migration version
2021-03-19 22:46:51 -07:00
Charles Gagnon
4f1530891b Switch to using public Nuget.org feed (#1178)
* Switch to using public Nuget.org feed

* Add packages

* specify woring directory

* switch to arg

* custom command

* Try using newer nuget

* Use custom command

* Use v1 of task

* Remove assessment update

* Add xliffparser package

* Add resx package
2021-03-19 15:16:03 -07:00
Charles Gagnon
d0600cd219 Consolidate to one Nuget feed (#1155) 2021-02-02 10:18:05 -08:00
Karl Burtram
b2736e5e33 Remove unneeded SqlClient patch files (#1111) 2020-11-09 14:40:02 -08:00
Benjin Dubishar
65c4fc01aa Adding External Streaming Job I/O validation to DacFxService (#1106)
* checkpoint

* Not having cake, nor eating it

* Working

* Swapping external dll for nupkg

* Extracting statement out of full TSQL

* Improving error message

* Fixing filename capitalization

* Reverting csproj changes

* Adding updated sr.cs file

* VS lost tracking on strings file?

* PR feedback

* resx additions

* More updated string files

* Swapped nuget for dll

* Revert "Swapped nuget for dll"

This reverts commit 6013f3fadf58ebc7e3590a46811d9fd9fc3eaa4a.

* Bumped netcore version to pull in support for extern aliasing nugets
2020-11-02 12:03:14 -08:00
Karl Burtram
b9e1618260 Revert "Rollback migration changes" (#1099)
* Revert "Revert "Initial migration service changes for assessment support (#1093)" (#1098)"

This reverts commit e96c0064ad.

* Move SQL Tools Service last in Main project list
2020-10-16 16:29:22 -07:00
Charles Gagnon
e96c0064ad Revert "Initial migration service changes for assessment support (#1093)" (#1098)
This reverts commit 1a0388c8cb.
2020-10-16 13:35:59 -07:00
Karl Burtram
1a0388c8cb Initial migration service changes for assessment support (#1093)
* Migration service WIP 1

* Assessment DLLs

* WIP

* WIP 2

* Add migration nuget package

* WIP2

* Fix up assessment handler

* WIP

* Fix build scripts

* WIP

* Update Assessment references

* Fix metadata copy to work with publish
2020-10-13 11:02:29 -07:00