
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
18.11.2002, 21:41:20
|
|||
|---|---|---|---|
update полей ntext |
|||
|
#18+
hi многоуважаемый all! 1.Имеем процедуру create procedure UpdateNewsletterEx @Title nvarchar(1024), @Description ntext='', @Header ntext='', @HTMLHeader ntext='', @RoleID int, as update NewsletterEx set Title=@Title , [Description]=@Description , Header=@Header , HTMLHeader=@HTMLHeader , where RoleID=@RoleID 2. Выполняем ее на MSDE2000 (8.00.194RTM ) все прекрасно работает 3. Выполняем на продуктивном сервере MSSQLServer 2000 Standard (8.00.534SP2) говорит [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()). General network error. Check your network documentation. 4. Выяснем что все дело в нежелании сервера обновлят' поля ntext "напрямую" 5. Пытемся выполнит' тот же update (без процедуры) в QueryAnalyzer'e (на продуктивном сервере) работает :) 6. Лечим все это испол'зованием WRITETEXT Внимание вопорос: Как обяснит' такое поведение SQLServer'a и лечится ли оно, очен' не хочется в каждой процедуре играт' с writetext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
18.11.2002, 21:42:37
|
|||
|---|---|---|---|
update полей ntext |
|||
|
#18+
А забыл, структуры баз абсолютно идентичны ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
19.11.2002, 10:46:13
|
|||
|---|---|---|---|
update полей ntext |
|||
|
#18+
BOL - Accessing and Changing Relational Data - Advanced Query Concepts - Managing ntext, text, and image Data "If an ntext, text, and image data value is no longer than a Unicode, character, or binary string (4,000 characters, 8,000 characters, 8,000 bytes respectively), the value can be referenced in SELECT, UPDATE, and INSERT statements much the same way as the smaller data types. For example, an ntext column with a short value can be referenced in a SELECT statement select list the same way an nvarchar column is referenced. When the ntext, text, and image data values get larger, however, they must be handled on a block-by-block basis. " ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=46&tablet=1&tid=1818702]: |
0ms |
get settings: |
5ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
59ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
24ms |
get tp. blocked users: |
1ms |
| others: | 217ms |
| total: | 332ms |

| 0 / 0 |
