Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
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 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 22:52 |
|
||
|
|

start [/forum/topic.php?fid=20&msg=32317654&tid=1439858]: |
0ms |
get settings: |
11ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
139ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
1ms |
| others: | 280ms |
| total: | 522ms |

| 0 / 0 |
