Исходный код вики Сценарии
Редактировал(а) Alexandr Fokin 2022/11/02 19:48
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | Параметры Timeout | ||
| 2 | |||
| 3 | Есть 2 значения timeout: | ||
| 4 | |||
| 5 | 1. Connection timeout. Можно указать на уровне строки подключения. Отвечает за время подключения к серверу БД. | ||
| 6 | 1. Query timeout. Нельзя задать через строку подключения. Отвечает за время выполнения запроса. | ||
| 7 | |||
| 8 | How to catch SQLServer timeout exceptions | ||
| 9 | [[https:~~/~~/stackoverflow.com/questions/29664/how-to-catch-sqlserver-timeout-exceptions>>url:https://stackoverflow.com/questions/29664/how-to-catch-sqlserver-timeout-exceptions]] | ||
| 10 | |||
| 11 | ---- | ||
| 12 | |||
| 13 | Ошибка | ||
| 14 | |||
| 15 | SqlParameter уже содержится другим SqlParameterCollection | ||
| 16 | |||
| 17 | The SqlParameter is already contained by another SqlParameterCollection - Does using() {} cheat? | ||
| 18 | [[https:~~/~~/stackoverflow.com/questions/7837762/the-sqlparameter-is-already-contained-by-another-sqlparametercollection-does-u>>https://stackoverflow.com/questions/7837762/the-sqlparameter-is-already-contained-by-another-sqlparametercollection-does-u]] | ||
| 19 | |||
| 20 | Вызвать для команды, в которой использовались параметры | ||
| 21 | {{code language="c#"}}cmd.Parameters.Clear();{{/code}} | ||
| 22 | |||
| 23 | ---- | ||
| 24 | |||
| 25 | DataTable.Select | ||
| 26 | Выполнение выборки данных из DataTable на основе строчного выражения | ||
| 27 | |||
| 28 | Datatable select with multiple conditions | ||
| 29 | [[https:~~/~~/stackoverflow.com/questions/1990946/datatable-select-with-multiple-conditions>>url:https://stackoverflow.com/questions/1990946/datatable-select-with-multiple-conditions]] | ||
| 30 | |||
| 31 | ---- | ||
| 32 | |||
| 33 | Выполнения скрипта, содержащего команду GO. | ||
| 34 | |||
| 35 | Handling "GO" Separators in SQL Scripts - the easy way | ||
| 36 | [[https:~~/~~/weblogs.asp.net/jongalloway/Handling-_2200_GO_2200_-Separators-in-SQL-Scripts-_2D00_-the-easy-way>>url:https://weblogs.asp.net/jongalloway/Handling-_2200_GO_2200_-Separators-in-SQL-Scripts-_2D00_-the-easy-way]] | ||
| 37 | |||
| 38 | Microsoft.SqlServer.SqlManagementObjects | ||
| 39 | [[https:~~/~~/www.nuget.org/packages/Microsoft.SqlServer.SqlManagementObjects>>url:https://www.nuget.org/packages/Microsoft.SqlServer.SqlManagementObjects]] | ||
| 40 | |||
| 41 | Execute a large SQL script (with GO commands) | ||
| 42 | [[https:~~/~~/stackoverflow.com/questions/40814/execute-a-large-sql-script-with-go-commands>>url:https://stackoverflow.com/questions/40814/execute-a-large-sql-script-with-go-commands]] |