|
|
Регистрация Восстановить пароль |
Повторная активизация e-mail |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
10.06.2012, 14:18 | #1 |
Новичок
Джуниор
Регистрация: 10.06.2012
Сообщений: 1
|
XML input file
Здраствуйте!!! очень нужна помощь. есть тестовое задание на английском,
7. To get performance tuning recommendations, you are using an Extensible Markup Language (XML) input file in conjunction with the dta command-line utility. In the current setup, the Transact-SQL (T-SQL) workload file and the XML input file are two separate files. You want to combine both files by using the inline workload feature of the XML input file. Here is the current XML input file: <?xml version="1.0" encoding="utf-16" ?> <DTAXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/dta"> <DTAInput> <Server> <Name>MyServerName</Name> <!-- To tune multiplate databases, list them and their associated tables in the following section. --> <Database> <Name>MyDatabaseName</Name> <Schema> <Name>MyDatabaseSchemaName</Name> <!-- You can list as many tables as necessary in the following section. --> <Table> <Name>MyTableName1</Name> </Table> <Table> <Name>MyTableName2</Name> </Table> </Schema> </Database> </Server> <Workload> <!-- The following element specifies a workload file, which can be a trace file or a Transact-SQL script file. --> <File>c:\Test.sql</File> </Workload> <TuningOptions> <TuningTimeInMin>60</TuningTimeInMin> <FeatureSet>IDX_IV</FeatureSet> <Partitioning>NONE</Partitioning> <KeepExisting>NONE</KeepExisting> <OnlineIndexOperation>OFF</OnlineIndexOperation> </TuningOptions> </DTAInput> </DTAXML> Here is the current workload file (Test.sql): SELECT * FROM MyTableName2 WHERE MyColumnName2 BETWEEN 2 AND 25000 ORDER BY ColumnName2 What changes should you make to the XML input file? Ответы: • Add the following code at the of the line: <EventString> SELECT * FROM MyTableName2 WHERE MyColumnName2 BETWEEN 2 AND 25000 ORDER BY ColumnName2 </EventString> • * Change the Workload element to the following: <Workload> <EventString> SELECT * FROM MyTableName2 WHERE MyColumnName2 BETWEEN 2 AND 25000 ORDER BY ColumnName2 </EventString> </Workload> в чем разница в этих ответах? что изменять элемент, что добавлять. результат же один и тот же |
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
input type file | s24t | JavaScript, Ajax | 1 | 04.07.2011 17:29 |
Внешний вид input (type=file) | Arassir | HTML и CSS | 1 | 25.06.2011 13:26 |
Парсинг xml file | Jakethefish | C# (си шарп) | 2 | 17.04.2011 14:31 |
Input FILE | Pedro | HTML и CSS | 6 | 02.04.2010 15:02 |