DatabaseToConnect Element (DTA)


Applies To: SQL Server 2016

Specifies the first database to which Database Engine Tuning Advisor connects when tuning a workload.

...code removed here...  

Data type and lengthstring, unlimited length.
Default valueNone.
OccurrenceOptional. Can use once for each TuningOptions element.
Parent elementTuningOptions Element (DTA)
Child elementsNone

Use DatabaseToConnect to specify the name of the first database to which you want Database Engine Tuning Advisor to connect when it starts the tuning session. You can specify only one database with this element. If multiple database names are specified, Database Engine Tuning Advisor returns an error.

For a usage example, see the XML Input File Sample with Inline Workload (DTA).

XML Input File Reference (Database Engine Tuning Advisor)

Community Additions