Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности

Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
06.11.2003, 22:52
|
|||
|---|---|---|---|
|
|||
What does VS.NET use to initialize the SQLCommand parameters if no values supplied? |
|||
|
#18+
Hi all: There is no Cyrillic on this machine again, so please bear with my English. I am wrinting a cimple C# application and one of the things should allow me to supply the date range to a query. Initially the parameters should be blank and I thought of the following construct: Код: plaintext 1. This works fine in SQL 2000 and gives me back entire table, but the result set in VS.NET query builder is empty. I tried to trace, but this bastard uses xp_execsql to run the queries, so I do not see the parameter values that it passes. I compiled a small proc: Код: plaintext When called from VS.NET with empty parameters it displays 12:00 AM. How do I use this information now? What SQL string do I need to use in order to allow the user to pass certain date range or to skip and provide empty values? TIA, Gobzo ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=20&mobile=1&tid=1439858]: |
0ms |
get settings: |
7ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
155ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 273ms |
| total: | 485ms |

| 0 / 0 |
