|
1 | | -# SmoSamples |
2 | | - |
3 | | -This unit test project is meant to demonstrate features of the Sql Management Objects framework and to help developers optimize performance of their SMO-based applications. |
4 | | - |
5 | | - |
6 | | -### Contents |
7 | | - |
8 | | -[About this sample](#about-this-sample)<br/> |
9 | | -[Before you begin](#before-you-begin)<br/> |
10 | | -[Run this sample](#run-this-sample)<br/> |
11 | | -[Sample details](#sample-details)<br/> |
12 | | -[Disclaimers](#disclaimers)<br/> |
13 | | -[Related links](#related-links)<br/> |
14 | | - |
15 | | - |
16 | | -<a name=about-this-sample></a> |
17 | | - |
18 | | -## About this sample |
19 | | - |
20 | | -<!-- Delete the ones that don't apply --> |
21 | | -- **Applies to:** SQL Server 2016 (or higher), Azure SQL Database, Azure SQL Data Warehouse |
22 | | -- **Key features:** |
23 | | -- Unit tests and a docker file that demonstrate proper use of SMO features against a working SQL Server instance. |
24 | | -- **Programming Language:** |
25 | | -- C# |
26 | | - |
27 | | -<a name=before-you-begin></a> |
28 | | - |
29 | | -## Before you begin |
30 | | - |
31 | | -To run this sample, you need the following prerequisites. |
32 | | - |
33 | | -**Software prerequisites:** |
34 | | - |
35 | | -1. SQL Server 2016 (or higher) or an Azure SQL Database with the full WideWorldImporters sample database, or |
36 | | -2. Docker |
37 | | -3. At minimum the dotnet 2.2 SDK, or Visual Studio 2017 |
38 | | - |
39 | | -<a name=run-this-sample></a> |
40 | | - |
41 | | -## Run this sample |
42 | | - |
43 | | - |
44 | | -<a name=sample-details></a> |
45 | | - |
46 | | -## Sample details |
47 | | - |
48 | | -Each unit test demonstrates a specific aspect of SMO-based application development, either in isolation or in conjunction with other SMO components. <br/> |
49 | | -Feature areas tested include: |
50 | | -1. Efficient use of collections |
51 | | -2. Sql query capture |
52 | | -3. Events |
53 | | -4. URNs |
54 | | -5. Script generation |
55 | | - |
56 | | - |
57 | | -<a name=related-links></a> |
58 | | - |
59 | | -## Related Links |
60 | | -The SMO NuGet package is at https://www.nuget.org/packages/Microsoft.SqlServer.SqlManagementObjects/ <br/> |
61 | | -Documentation for the APIs is at https://docs.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/overview-smo<br/> |
| 1 | +# SmoSamples |
| 2 | + |
| 3 | +This unit test project is meant to demonstrate features of the Sql Management Objects framework and to help developers optimize performance of their SMO-based applications. |
| 4 | + |
| 5 | + |
| 6 | +### Contents |
| 7 | + |
| 8 | +[About this sample](#about-this-sample)<br/> |
| 9 | +[Before you begin](#before-you-begin)<br/> |
| 10 | +[Run this sample](#run-this-sample)<br/> |
| 11 | +[Sample details](#sample-details)<br/> |
| 12 | +[Disclaimers](#disclaimers)<br/> |
| 13 | +[Related links](#related-links)<br/> |
| 14 | + |
| 15 | + |
| 16 | +<a name=about-this-sample></a> |
| 17 | + |
| 18 | +## About this sample |
| 19 | + |
| 20 | +<!-- Delete the ones that don't apply --> |
| 21 | +- **Applies to:** SQL Server 2016 (or higher), Azure SQL Database, Azure SQL Data Warehouse |
| 22 | +- **Key features:** |
| 23 | +- Unit tests and a docker file that demonstrate proper use of SMO features against a working SQL Server instance. |
| 24 | +- **Programming Language:** |
| 25 | +- C# |
| 26 | + |
| 27 | +<a name=before-you-begin></a> |
| 28 | + |
| 29 | +## Before you begin |
| 30 | + |
| 31 | +To run this sample, you need the following prerequisites. |
| 32 | + |
| 33 | +**Software prerequisites:** |
| 34 | + |
| 35 | +1. SQL Server 2016 (or higher) or an Azure SQL Database with the full WideWorldImporters sample database, or |
| 36 | +2. Docker |
| 37 | +3. At minimum the dotnet 2.2 SDK, or Visual Studio 2017 |
| 38 | + |
| 39 | +<a name=run-this-sample></a> |
| 40 | + |
| 41 | +## Run this sample |
| 42 | +If using Docker, use runtests.sh or runtests.cmd as appropriate. If using a separate instance of SQL Server or Azure SQL Database, create a .runsettings file and run the unit tests using Visual Studio or "dotnet vstest". |
| 43 | + |
| 44 | +<a name=sample-details></a> |
| 45 | + |
| 46 | +## Sample details |
| 47 | + |
| 48 | +Each unit test demonstrates a specific aspect of SMO-based application development, either in isolation or in conjunction with other SMO components. <br/> |
| 49 | +Feature areas tested include: |
| 50 | +1. Efficient use of collections |
| 51 | +2. Sql query capture |
| 52 | +3. Events |
| 53 | +4. URNs |
| 54 | +5. Script generation |
| 55 | + |
| 56 | + |
| 57 | +<a name=related-links></a> |
| 58 | + |
| 59 | +## Related Links |
| 60 | +The SMO NuGet package is at https://www.nuget.org/packages/Microsoft.SqlServer.SqlManagementObjects/ <br/> |
| 61 | +Documentation for the APIs is at https://docs.microsoft.com/sql/relational-databases/server-management-objects-smo/overview-smo<br/> |
62 | 62 | The WideWorldImporters sample database can be found at https://github.com/Microsoft/sql-server-samples/releases/download/wide-world-importers-v1.0/WideWorldImporters-Full.bak <br/> |
0 commit comments