Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Стоит ли переходить с MSSQL7.0 на MSSQL 2000 (чего выигрываем?)
|
|||
|---|---|---|---|
|
#18+
Стоит ли переходить с MSSQL7.0 на MSSQL 2000 ? Если у кого подобный опыт? Правда ли что в MSSQL2000 можно использовать хранимые функции и затем их использовать в селектах, какие при этом налагаются ограничения ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.06.2001, 06:14 |
|
||
|
Стоит ли переходить с MSSQL7.0 на MSSQL 2000 (чего выигрываем?)
|
|||
|---|---|---|---|
|
#18+
Стоит. Есть. Можно, ограничения такие: The statements in a BEGIN...END block cannot have any side effects. Function side effects are any permanent changes to the state of a resource that has a scope outside the function such as a modification to a database table. The only changes that can be made by the statements in the function are changes to objects local to the function, such as local cursors or variables. Modifications to database tables, operations on cursors that are not local to the function, sending e-mail, attempting a catalog modification, and generating a result set that is returned to the user are examples of actions that cannot be performed in a function. The types of statements that are valid in a function include: DECLARE statements can be used to define data variables and cursors that are local to the function. Assignments of values to objects local to the function, such as using SET to assign values to scalar and table local variables. Cursor operations that reference local cursors that are declared, opened, closed, and deallocated in the function. FETCH statements that return data to the client are not allowed. Only FETCH statements that assign values to local variables using the INTO clause are allowed. Control-of-flow statements. SELECT statements containing select lists with expressions that assign values to variables that are local to the function. UPDATE, INSERT, and DELETE statements modifying table variables that are local to the function. EXECUTE statements calling an extended stored procedure. The number of times that a function specified in a query is actually executed can vary between execution plans built by the optimizer. An example is a function invoked by a subquery in a WHERE clause. The number of times the subquery and its function is executed can vary with different access paths chosen by the optimizer. Built-in functions that can return different data on each call are not allowed in user-defined functions. The built-in functions not allowed in user-defined functions are: @@CONNECTIONS @@PACK_SENT GETDATE @@CPU_BUSY @@PACKET_ERRORS GetUTCDate @@IDLE @@TIMETICKS NEWID @@IO_BUSY @@TOTAL_ERRORS RAND @@MAX_CONNECTIONS @@TOTAL_READ TEXTPTR @@PACK_RECEIVED @@TOTAL_WRITE ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.06.2001, 07:06 |
|
||
|
Стоит ли переходить с MSSQL7.0 на MSSQL 2000 (чего выигрываем?)
|
|||
|---|---|---|---|
|
#18+
Стоит - это точно! Вы правильно услышали про использование в SELECT, но неправильно обозвали. В SQL 2000 можно лабать UDF - user defined functions, т.е. создавать хранимые функции написанные прямо на SQL. Эти же штуки и можно использовать в SELECT, UPDATE, DELETE, INSERT. Необычайно полезная вещь, жаль только, что микрософт так долго эволюционировал до этого. Замечен и прирост производительности (по правде, а не из журналов). Есть и опыт перехода на этот продукт. Лично я шёл по спирали развития вместе с микрософтом и переделывал с 6.5->7.0->2000. Если надо чего спросить намыль мне: spmail@newmail.ru ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.06.2001, 09:18 |
|
||
|
Стоит ли переходить с MSSQL7.0 на MSSQL 2000 (чего выигрываем?)
|
|||
|---|---|---|---|
|
#18+
Ребята спасибо за ответы, я после Oracle перешел на MSSQL7 и с тех пор без функций пишу серверную часть как будто одной рукой :о) PS: кстати такие же ограничения на использование функций есть и в Oracle (нельзя модифицировать таблицы)внутри функций ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.06.2001, 13:03 |
|
||
|
|

start [/forum/topic.php?fid=46&fpage=3568&tid=1826461]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
22ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
| others: | 223ms |
| total: | 333ms |

| 0 / 0 |
