| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > MS SQL Server > CLR SQL vs native T-SQL |
| Автор: Larrr 25.4.2007, 11:54 |
| Не подскажете - насколько CLR программирование для MS SQL Server 2005 отличается по скорости и эффективности от native T-SQL? Быстрее, медленнее? Ощутимо? PS. Похоже, по-русски это называется "внешние функции": SQL CLR is a new SQL Server feature that allows you to embed logic written in C#, VB.Net, and other managed code into the body of T-SQL objects like stored procedures, functions, triggers, aggregates and types. Client applications interact with these resulting routines like they are written in native T-SQL. |
| Автор: SergKO 26.4.2007, 05:53 |
| На форумах были сравнения. Поищите на vingrad, www.sql.ru, www.gotdotnet.ru, www.osp.ru. "CLR" в поиск и много чего найдете. Например http://www.osp.ru/win2000/2005/08/380188/ http://www.sql.ru/forum/actualthread.aspx?tid=401730&hl=clr |
| Автор: Larrr 26.4.2007, 13:27 | ||
Спасибо большое |
| Автор: Larrr 28.4.2007, 21:32 |
| Ответ нашелся: Speed, mainly. SQL CLR runs faster in a number of ways: string handling, for one, is much speedier than it is in T-SQL, and it has a far more robust way of handling errors. Also, any stored procedures that have to interact with something outside of the database -- the file system, for instance, or a Web service -- work best as a CLR SP, since the framework for doing that kind of thing is provided more elegantly by CLR. С таблицами непосредственно лучше работать в T-SQL. |