|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<MockQueryResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 3 | + <MockQueryResult> |
| 4 | + <MockId>SqlAuthv12MockTests</MockId> |
| 5 | + <DatabaseName>master</DatabaseName> |
| 6 | + <CommandText> |
| 7 | + SELECT |
| 8 | + [db].[name], |
| 9 | + [db].[database_id], |
| 10 | + [db].[create_date], |
| 11 | + [db].[collation_name], |
| 12 | + [db].[is_read_only], |
| 13 | + [db].[is_query_store_on], |
| 14 | + [db].[is_recursive_triggers_on], |
| 15 | + [db].[is_federation_member], |
| 16 | + CONVERT (bit, CASE WHEN [db].[name] in ('master') THEN 1 ELSE [db].[is_distributor] END) AS [is_system_object], |
| 17 | + CONVERT (int, |
| 18 | + CASE |
| 19 | + WHEN [db].[is_in_standby] = 1 THEN 0x0040 |
| 20 | + ELSE 0 |
| 21 | + END | |
| 22 | + CASE |
| 23 | + WHEN [db].[is_cleanly_shutdown] = 1 THEN 0x0080 |
| 24 | + ELSE 0 |
| 25 | + END | |
| 26 | + CASE [db].[state] |
| 27 | + WHEN 0 THEN 0x0001 -- NORMAL |
| 28 | + WHEN 1 THEN 0x0002 -- RESTORING |
| 29 | + WHEN 2 THEN 0x0008 -- RECOVERING |
| 30 | + WHEN 3 THEN 0x0004 -- RECOVERY_PENDING |
| 31 | + WHEN 4 THEN 0x0010 -- SUSPECT |
| 32 | + WHEN 5 THEN 0x0100 -- EMERGENCY |
| 33 | + WHEN 6 THEN 0x0020 -- OFFLINE |
| 34 | + WHEN 7 THEN 0x0400 -- COPYING |
| 35 | + WHEN 9 THEN 0x0800 -- CREATING |
| 36 | + WHEN 10 THEN 0x1000 -- OFFLINE_SECONDARY |
| 37 | + ELSE 0x0010 -- SUSPECT |
| 38 | + END) AS [status] |
| 39 | + FROM [sys].[databases] AS [db] |
| 40 | + WHERE ([db].[name] = testdb4 OR testdb4 IS NULL)</CommandText> |
| 41 | + <DataSetResult> |
| 42 | + <NewDataSet> |
| 43 | + <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| 44 | + <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> |
| 45 | + <xs:complexType> |
| 46 | + <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 47 | + <xs:element name="Table"> |
| 48 | + <xs:complexType> |
| 49 | + <xs:sequence> |
| 50 | + <xs:element name="name" type="xs:string" minOccurs="0" /> |
| 51 | + <xs:element name="database_id" type="xs:int" minOccurs="0" /> |
| 52 | + <xs:element name="create_date" type="xs:dateTime" minOccurs="0" /> |
| 53 | + <xs:element name="collation_name" type="xs:string" minOccurs="0" /> |
| 54 | + <xs:element name="is_read_only" type="xs:boolean" minOccurs="0" /> |
| 55 | + <xs:element name="is_query_store_on" type="xs:boolean" minOccurs="0" /> |
| 56 | + <xs:element name="is_recursive_triggers_on" type="xs:boolean" minOccurs="0" /> |
| 57 | + <xs:element name="is_federation_member" type="xs:boolean" minOccurs="0" /> |
| 58 | + <xs:element name="is_system_object" type="xs:boolean" minOccurs="0" /> |
| 59 | + <xs:element name="status" type="xs:int" minOccurs="0" /> |
| 60 | + </xs:sequence> |
| 61 | + </xs:complexType> |
| 62 | + </xs:element> |
| 63 | + </xs:choice> |
| 64 | + </xs:complexType> |
| 65 | + </xs:element> |
| 66 | + </xs:schema> |
| 67 | + <Table> |
| 68 | + <name>testdb4</name> |
| 69 | + <database_id>8</database_id> |
| 70 | + <create_date>2014-12-05T15:57:43.137-08:00</create_date> |
| 71 | + <collation_name>SQL_Latin1_General_CP1_CI_AS</collation_name> |
| 72 | + <is_read_only>false</is_read_only> |
| 73 | + <is_query_store_on>false</is_query_store_on> |
| 74 | + <is_recursive_triggers_on>false</is_recursive_triggers_on> |
| 75 | + <is_federation_member>false</is_federation_member> |
| 76 | + <is_system_object>false</is_system_object> |
| 77 | + <status>1</status> |
| 78 | + </Table> |
| 79 | + </NewDataSet> |
| 80 | + </DataSetResult> |
| 81 | + </MockQueryResult> |
| 82 | + <MockQueryResult> |
| 83 | + <MockId>SqlAuthv12MockTests</MockId> |
| 84 | + <DatabaseName>testdb4</DatabaseName> |
| 85 | + <CommandText>SELECT DatabasePropertyEx(testdb4, 'Edition') as edition, DatabasePropertyEx(testdb4, 'MaxSizeInBytes') as maxSizeBytes</CommandText> |
| 86 | + <DataSetResult> |
| 87 | + <NewDataSet> |
| 88 | + <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| 89 | + <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> |
| 90 | + <xs:complexType> |
| 91 | + <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 92 | + <xs:element name="Table"> |
| 93 | + <xs:complexType> |
| 94 | + <xs:sequence> |
| 95 | + <xs:element name="edition" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0" /> |
| 96 | + <xs:element name="maxSizeBytes" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0" /> |
| 97 | + </xs:sequence> |
| 98 | + </xs:complexType> |
| 99 | + </xs:element> |
| 100 | + </xs:choice> |
| 101 | + </xs:complexType> |
| 102 | + </xs:element> |
| 103 | + </xs:schema> |
| 104 | + <Table> |
| 105 | + <edition xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Standard</edition> |
| 106 | + <maxSizeBytes xsi:type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema">268435456000</maxSizeBytes> |
| 107 | + </Table> |
| 108 | + </NewDataSet> |
| 109 | + </DataSetResult> |
| 110 | + </MockQueryResult> |
| 111 | +</MockQueryResultSet> |
0 commit comments