mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Allow 'ApplicationName' to be specified for MSSQL connections (#22890)
This commit is contained in:
@@ -143,6 +143,20 @@
|
||||
"isRequired": true,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
"name": "applicationName",
|
||||
"displayName": "%cms.connectionOptions.applicationName.displayName%",
|
||||
"description": "%cms.connectionOptions.applicationName.description%",
|
||||
"groupName": "%cms.connectionOptions.groupName.initialization%",
|
||||
"valueType": "string",
|
||||
"defaultValue": null,
|
||||
"objectType": null,
|
||||
"categoryValues": null,
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
@@ -466,20 +480,6 @@
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": "appName",
|
||||
"isIdentity": false,
|
||||
"name": "applicationName",
|
||||
"displayName": "%cms.connectionOptions.applicationName.displayName%",
|
||||
"description": "%cms.connectionOptions.applicationName.description%",
|
||||
"groupName": "%cms.connectionOptions.groupName.context%",
|
||||
"valueType": "string",
|
||||
"defaultValue": null,
|
||||
"objectType": null,
|
||||
"categoryValues": null,
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
|
||||
"version": "4.7.0.22",
|
||||
"version": "4.7.0.23",
|
||||
"downloadFileNames": {
|
||||
"Windows_86": "win-x86-net7.0.zip",
|
||||
"Windows_64": "win-x64-net7.0.zip",
|
||||
@@ -10,7 +10,10 @@
|
||||
"Linux": "rhel-x64-net7.0.tar.gz"
|
||||
},
|
||||
"installDirectory": "./sqltoolsservice/{#platform#}/{#version#}",
|
||||
"executableFiles": ["MicrosoftSqlToolsServiceLayer.exe", "MicrosoftSqlToolsServiceLayer"],
|
||||
"executableFiles": [
|
||||
"MicrosoftSqlToolsServiceLayer.exe",
|
||||
"MicrosoftSqlToolsServiceLayer"
|
||||
],
|
||||
"retry": {
|
||||
"retries": 15,
|
||||
"factor": 2,
|
||||
|
||||
@@ -900,6 +900,20 @@
|
||||
"isRequired": true,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
"name": "applicationName",
|
||||
"displayName": "%mssql.connectionOptions.applicationName.displayName%",
|
||||
"description": "%mssql.connectionOptions.applicationName.description%",
|
||||
"groupName": "%mssql.connectionOptions.groupName.initialization%",
|
||||
"valueType": "string",
|
||||
"defaultValue": null,
|
||||
"objectType": null,
|
||||
"categoryValues": null,
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
@@ -1236,20 +1250,6 @@
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": "appName",
|
||||
"isIdentity": false,
|
||||
"name": "applicationName",
|
||||
"displayName": "%mssql.connectionOptions.applicationName.displayName%",
|
||||
"description": "%mssql.connectionOptions.applicationName.description%",
|
||||
"groupName": "%mssql.connectionOptions.groupName.context%",
|
||||
"valueType": "string",
|
||||
"defaultValue": null,
|
||||
"objectType": null,
|
||||
"categoryValues": null,
|
||||
"isRequired": false,
|
||||
"isArray": false
|
||||
},
|
||||
{
|
||||
"specialValueType": null,
|
||||
"isIdentity": false,
|
||||
|
||||
@@ -184,7 +184,7 @@ function getSqlDbConnectionProfile(
|
||||
savePassword: false,
|
||||
saveProfile: false,
|
||||
options: {
|
||||
conectionName: '',
|
||||
connectionName: '',
|
||||
server: serverName,
|
||||
database: databaseName,
|
||||
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
|
||||
@@ -197,7 +197,7 @@ function getSqlDbConnectionProfile(
|
||||
trustServerCertificate: false,
|
||||
connectRetryCount: '1',
|
||||
connectRetryInterval: '10',
|
||||
applicationName: 'azdata',
|
||||
applicationName: 'azdata-sqlMigration',
|
||||
azureTenantId: tenantId,
|
||||
originalDatabase: databaseName,
|
||||
databaseDisplayName: databaseName,
|
||||
@@ -228,7 +228,7 @@ export function getTargetConnectionProfile(
|
||||
providerName: 'MSSQL',
|
||||
saveProfile: false,
|
||||
options: {
|
||||
conectionName: connectId,
|
||||
connectionName: connectId,
|
||||
server: serverName,
|
||||
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
|
||||
user: userName,
|
||||
@@ -239,9 +239,9 @@ export function getTargetConnectionProfile(
|
||||
trustServerCertificate: trustServerCert,
|
||||
connectRetryCount: '1',
|
||||
connectRetryInterval: '10',
|
||||
applicationName: 'azdata',
|
||||
applicationName: 'azdata-sqlMigration',
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function getSourceConnectionString(): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user