Commit Graph

72 Commits

Author SHA1 Message Date
Aasim Khan
766f68551e Removing script as feature from service layer to sqlcore (#2189) 2023-08-28 04:28:25 +00:00
Aasim Khan
c7d75fa535 Publishing SQL Core library in nuget (#2173)
* Set up CI with Azure Pipelines

[skip ci]

* Update publishSqlCoreProject.yml for Azure Pipelines

* Update publishSqlCoreProject.yml for Azure Pipelines

* Update publishSqlCoreProject.yml for Azure Pipelines

* Update publishSqlCoreProject.yml for Azure Pipelines

* Update publishSqlCoreProject.yml for Azure Pipelines

* Updating json rpc target framework

* Fixing packages to pack

* fixing pattern

* Fixing project pattern

* adding versioning schema

* fixing versioning scheme

* fixing nuget package name

* adding name

* removing var

* Fixing stuff

* Fixing stuff

* Fixing stuff

* Fixing build name

* removing build name

* fixing name

* fixing stuff

* fix pattern

* Fixing stuff

* Fixing feed

* Fix stuff

* Fixing feed

* fixing proj name

* Fixing stuff

* Fixing netframework version

* Fixing target framework

* Adding target framework to dependency

* Fixing frameworks

* adding net7.0

* adding flag

* Fixing target frameworks and making code compatible with lang version

* fixed flag

* Fixing assembly name

* Adding hosting in nuget package

* Fixing tests

* Moving steps to its main pipeline

* only releasing when release is true

* Fixing build scripts

* Adding version to csproj for packaging

* adding version

* Fix dirs

* Adding version number to right prop group

* Adding necessary dis

* Fixing build number

* fixing datatype

* Using different var

* Removing unused yml

* Adding back nullables to hosting

* Adding back more nullables

* adding back more nullables

* moving some props to dir level

* Fixing tests

* Removing dup properties

* Supporting different target frameworks in hosting

* Removing additional setting in csproj

* signing sql core dll in publish

* Fixing version setting

* Adding to build

* Added signing and packaging flag

* Fixing file pattern
2023-08-22 23:15:20 -07:00
Alex Ma
4ae9534ac8 Added retry policy for sleeping serverless error for SqlConnections (#2155) 2023-08-16 13:17:40 -07:00
Alex Ma
65a7406063 [Loc] add newly generated sr.cs files (#2164) 2023-08-03 16:23:08 -07:00
Charles Gagnon
969ac0ed8c Use Logger overloads (#2163) 2023-08-02 13:25:21 -07:00
Charles Gagnon
2496e17515 Use correct version number for ManagedBatchParser nuget package (#2024)
* Pass in patch version from pipeline

* Correct patch version

* Fix packaging

* Fix nuget version

* Revert nuget package changes

* Only use build ID for ManagedBatchParser

* Add back assembly version

* fix package nuspec
2023-04-20 16:38:27 -07:00
Cheena Malhotra
648d7dbd3c Address warnings and (some) nullables (#2013) 2023-04-18 20:57:13 -07:00
Charles Gagnon
d56f2309da Use major + minor from pipeline for assembly versioning (#2012) 2023-04-18 16:34:36 -07:00
Charles Gagnon
9d53e1dd3e Add SourceLink to build + fix assembly versioning (#2007)
* Add github source link

* more

* Move to common

* fix multiple dep copy

* Fix doc comment

* cleanup props

* Use GlobalPackageReference

* Set CI build property on pipelines

* Add comment
2023-04-17 09:51:30 -07:00
Matteo Taveggia
ffed8313d9 Exposing a DisableVariableSubstitution on the Parser object (#1941)
* Cleaning up a few tests; fixing one

* Exposing DisableVariableSubstitution in Parser; fixing NRE; adding tests

* Added another test

* Addressing CR feedback; added tests
2023-03-13 22:04:04 -07:00
Cheena Malhotra
187b6ecc14 Introduce AAD interactive auth mode (#1860) 2023-03-02 09:39:54 -08:00
Cheena Malhotra
74dd15c868 Address error IDE0270 after MsBuild update (#1865) 2023-02-16 16:15:30 -08:00
Cheena Malhotra
8d119876d9 Update to .NET 7 SDK (#1792) 2023-02-07 17:53:36 -08:00
Alex Ma
07e4225259 [Loc] cleanup localization related files and add localization to migration (#1840) 2023-02-01 12:06:17 -08:00
Cory Rivera
6122a5dbcb Remove big data cluster references from connections. (#1775) 2022-12-09 10:25:28 -08:00
Karl Burtram
3a5935df99 Revert "Update to latest .Net SDK 7.0 (#1760)" (#1763)
This reverts commit 71cda5bbdc.
2022-11-15 11:29:41 -08:00
Karl Burtram
71cda5bbdc Update to latest .Net SDK 7.0 (#1760)
* Bump to SDK 7.0 and related updates

* More net 7 updates

* Install SDK 2.0 for ESRP

* Fix typo

* Address comment and update integration test script

* Disable new warnings from SDK update
2022-11-14 20:24:25 -08:00
Cheena Malhotra
d33c97c079 Build Managed Batch Parser NuGet package (#1747) 2022-11-07 10:03:32 -08:00
Cheena Malhotra
5e167239c5 Update dependencies (#1733) 2022-10-26 16:23:00 -07:00
Cheena Malhotra
c0f8482e26 Update Microsoft.Data.SqlClient to v5.0.1 (#1708) 2022-10-24 20:10:04 -07:00
Cheena Malhotra
7c5d48b111 Fix dependencies, leading to compile time warnings (#1713)
* Fix dependencies, leading to compile time warnings

* Some more cleanup

* Fix spacing
2022-09-28 20:32:40 -07:00
Alex Ma
13a689b164 Now forces the use of latestmajorversion. (#1654) 2022-08-26 09:40:13 -07:00
Alex Ma
1789fd1233 Update to srgen to remove strict dependency to netcore 3.1 (#1618)
* first changes

* added roll forward major to fix 3.1 dependency issue.
2022-08-04 12:08:20 -07:00
Alan Ren
bfa40e86e4 handle null ref exceptions in managed parser (#1606)
* handle null ref exceptions

* add comment
2022-07-27 18:35:54 -07:00
Alex Ma
ae90a06026 [Loc] Xlf update 7-11-22 (#1572) 2022-07-11 18:27:21 -07:00
Alex Hsu
a6e9f1a6cf LEGO: Merge pull request 1570
LEGO: Merge pull request 1570
2022-07-09 08:36:10 -07:00
Alex Hsu
2d90b472b2 LEGO: Merge pull request 1568
LEGO: Merge pull request 1568
2022-07-08 08:35:27 -07:00
Charles Gagnon
ac9f88266c BatchParser target netstandard2.0 and remove Hosting dependency (#1564)
* Remove Hosting dependency from BatchParser, wip for logging replacement

* netstandard2.0 and fixes

* comment + cleanup

* comment

* fix build

* Update newtonsoft

* localize errors
2022-07-06 15:26:06 -07:00
Charles Gagnon
dd11be3d38 Consolidate to net6.0 (#1547)
* Add SqlClient event listener

* comments

* ensure not disposed early

* initial

* net6.0

* undo
2022-06-21 08:53:23 -07:00
Charles Gagnon
b182e9fe53 Bump SMO to 161.47021.0 (#1538) 2022-06-10 13:02:49 -07:00
Karl Burtram
a70402fe60 Revert SMO bump (#1492) 2022-05-11 15:34:15 -07:00
Charles Gagnon
fb1a12c6d2 Don't query for unsupported properties (#1471)
* Don't query for unsupported properties

* add using
2022-05-06 12:53:04 -07:00
Charles Gagnon
6c97f41f7b Bump SMO + SqlClient (#1478) 2022-04-26 16:01:55 -07:00
Charles Gagnon
c248400a6c Add linting for copyright and unused usings (#1416)
* Add linting for copyright and unused usings

* Add one more + comment

* Enforce in build and fix errors

* Fix build
2022-03-04 15:17:29 -08:00
Alex Ma
a98c266791 Use old dotnet embedded resource convention (#1374)
* use old dotnet embedded resource convention flag

* fixed positioning

* another tab fix
2022-01-27 13:48:11 -08:00
Alex Ma
faaf062f0f [Loc] Update to xlfs and resx files (#1332) 2021-12-06 19:05:58 -08:00
csigs
ec5d5c86bf LEGO: Merge pull request 1331
LEGO: Merge pull request 1331
2021-12-04 08:33:27 -08:00
csigs
f9080a6e12 LEGO: Merge pull request 1329
LEGO: Merge pull request 1329
2021-12-03 08:33:32 -08:00
csigs
ec9294202e LEGO: Merge pull request 1328
LEGO: Merge pull request 1328
2021-12-02 11:06:09 -08:00
Alex Ma
f9e7b22697 Consolidate Loc Files to one (#1325)
* Added locproject to defaultimpl

* added resourceprovider core

* added more locprojects for rest of projects

* moved LocProject to src

* Added consolidated locproject

* deleted old locprojects

* fix tab to better match ADS

* Revert "fix tab to better match ADS"

This reverts commit e3e3370ac9eb647b94b908e0432fbc52a9874b41.
2021-12-01 09:49:27 -08:00
Alex Ma
1bae482a8d Loc for other projects. (#1323)
* Added locproject to defaultimpl

* added resourceprovider core

* added more locprojects for rest of projects
2021-11-29 12:50:52 -08:00
Sai Avishkar Sreerama
1ab2edea94 Updating ManagedBatchParser project target framework to netstandard2.1 as the… (#1303)
* Updating ManagedBatchParser target framework to netstandard2.1 as the DacFx is changes to 2.1 with 160 vbump.

* moving TargetFramework tag to the props file

* Updated the managed batch parser framework tag name.
2021-11-15 11:45:39 -06:00
Alan Ren
e305d30004 load the schema information (#1274)
* load the schema information

* pr comments
2021-10-20 12:54:54 -07:00
Aasim Khan
f8664641cf Fixing GetServerSystemInfo for Azure DBs (#1231)
* Not throwing errors when we try to fetch SQL server properties like server count and physical mem.

* Fixed comment

* Renaming get server cpu count

* Adding more detailed comment over here

* Making properties cpu count and physical memory to nullable<int> so they are defaulted to null.

* Fixing rest of the properties to nullable.
2021-08-09 17:24:04 -07:00
Aasim Khan
539e47b40f Adding cpu count and ram size to server info (#1220)
* adding network file validator contract

* Adding additional properties to serverInfo

* Renaming to serversysinfo

* fixing var name

* Changed to smo to get the properties

* Fixing casting error

* renaming to sysinfo

* Removing unused sql scripts

* Throwing an error and renaming classes

* Changing Physicalmemory prop name from kb to mb

* pushing prop name change

* fixing comment
2021-07-13 12:57:53 -07:00
Alex Ma
993b094db9 Localization added to sqlservicetools (#1216)
* added other languages to ServiceLayer

* fixed travis and appveyor yaml, added other languages for localization

* added spanish and german strings to credentialslocalization, also WIP for coreservices test

* added WIP localization test for CoreServices

* Removed unit test for coreservices, need to work on those later.

* restored travis and appveyor

* added kusto string resource localization test

* added localization test and locale change for SqlToolsCredentials

* added locale command options to ResourceProvider

* revert resourceprovider test

* Localized SqlTools.Credentials

* added hosting localization

* replaced new with translation to be consistent with main service layer

* reverted external changes as it is unnecessary

* Translated ManagedBatchParser

* test culture value

* test culture change

* temporarily comment out service layer command options

* returned sr.cs

* temporarily remove bad tests

* restored tests and allowed for SR culture to change for dependencies (for future testing)

* localization for resourceprovider components added.

* Set LocaleSetter to public and also removed InternalsVisible for Kusto, Credentials and ResourceProvider

* removed unnecessary changes

* Removed CredentialsCommandOptions

* renamed pt-BR to pt-br

* Rename sr.pt-BR.xlf.template to sr.pt-br.xlf.template

* Rename src/Microsoft.SqlTools.ServiceLayer/Localization/LCL/pt-BR/sr.resx.lcl to src/Microsoft.SqlTools.ServiceLayer/Localization/LCL/pt-br/sr.resx.lcl

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* Rename sr.pt-BR.xlf to sr.pt-br.xlf

* Rename sr.pt-BR.resx to sr.pt-br.resx

* restored newlines

* Update sr.pt-br.xlf.template

Removed newline

* removed newline

* fixing newlines for consistency

* removed unnecessary newline
2021-06-10 15:50:53 -07:00
Christopher Suh
2badd8e728 Fix Sql Auth for Migration Assessments (#1182)
* pass connection string to dma engine

* cleanup

* remove optional parameter

* modified query
2021-03-26 15:59:07 -07:00
Alex Ma
fefcab1c04 Added new String Resource Tool to fix issue (#1129) 2020-12-01 11:49:31 -08:00
BranislavGrbicMDCS
3e98a2f17b [brgrbic] SqlOD changes for cloud Server Type and minor bug fixes (#1092)
* The ServerType of SQL OD in SMO is being changed to cloud. This is a minimal set of changes needed in sqltoolservice in order to keep everything working within ADS.

* SMO version update
2020-10-23 18:48:33 +02:00
Charles Gagnon
d6ff73d510 Add fallback to query server property when getting BDC endpoints (#1083) 2020-09-28 09:19:21 -07:00